Skip to main content

Ens.BusinessProcessBPL

persistent class Ens.BusinessProcessBPL extends Ens.BusinessProcess

SQL Table Name: Ens.BusinessProcessBPL

Property Inventory

Method Inventory

Parameters

parameter SETTINGS = RuleLogging:Dev;
Inherited description: List of properties can be set as settings in the configuration file format is a comma separated list of property names

Properties

property %Context as Ens.BP.Context;
This property holds the context object
Property methods: %ContextGet(), %ContextGetObject(), %ContextGetObjectId(), %ContextGetStored(), %ContextGetSwizzled(), %ContextIsValid(), %ContextNewObject(), %ContextSet(), %ContextSetObject(), %ContextSetObjectId(), %ContextUnSwizzle()
property %Counter as %Integer;
This property holds the counter for delays and timeouts
Property methods: %CounterDisplayToLogical(), %CounterGet(), %CounterGetStored(), %CounterIsValid(), %CounterLogicalToDisplay(), %CounterNormalize(), %CounterSet()
property %SynchronizedResponses as array of %String [ SqlFieldName = _SynchronizedResponses ];
This property holds the collection of synchronised responses
Property methods: %SynchronizedResponsesBuildValueArray(), %SynchronizedResponsesCollectionToDisplay(), %SynchronizedResponsesCollectionToOdbc(), %SynchronizedResponsesDisplayToCollection(), %SynchronizedResponsesDisplayToLogical(), %SynchronizedResponsesGet(), %SynchronizedResponsesGetObject(), %SynchronizedResponsesGetObjectId(), %SynchronizedResponsesGetStored(), %SynchronizedResponsesGetSwizzled(), %SynchronizedResponsesIsValid(), %SynchronizedResponsesLogicalToDisplay(), %SynchronizedResponsesLogicalToOdbc(), %SynchronizedResponsesNormalize(), %SynchronizedResponsesOdbcToCollection(), %SynchronizedResponsesSet(), %SynchronizedResponsesSetObject(), %SynchronizedResponsesSetObjectId()
property %Thread as Ens.BP.Thread;
This property holds the instance of the initial thread of this process
Property methods: %ThreadGet(), %ThreadGetObject(), %ThreadGetObjectId(), %ThreadGetStored(), %ThreadGetSwizzled(), %ThreadIsValid(), %ThreadNewObject(), %ThreadSet(), %ThreadSetObject(), %ThreadSetObjectId(), %ThreadUnSwizzle()
property RuleLogging as %String [ InitialExpression = $$$eRuleLogTypeReturn ];
This set of flags controls the logging performed by the rule engine whenever a Rule activity is executed. The following flags are available:
  • 'e' - log errors only. All errors will be logged irrespective of other flags, so setting the value to 'e' or leaving the value empty will only log errors.
  • 'r' - log return values. This is the default value for the setting, and is also automatic whenever the 'd' or 'c' flags are specified.
  • 'd' - log user-defined debug actions in the rule. This will also include 'r'.
  • 'c' - log details of the conditions that are evaluated in the rule. This will also include 'r'.
  • 'a' - log all available information. This is equivalent to 'rcd'.
Property methods: RuleLoggingDisplayToLogical(), RuleLoggingGet(), RuleLoggingGetStored(), RuleLoggingIsValid(), RuleLoggingLogicalToDisplay(), RuleLoggingLogicalToOdbc(), RuleLoggingNormalize()

Methods

classmethod %OnDelete(oid As %ObjectIdentity) as %Status
Inherited description: This callback method is invoked by the %Delete() method to provide notification that the object specified by oid is being deleted.

If this method returns an error then the object will not be deleted.

classmethod GetMessageList() as %String
classmethod GetRequestClassList() as %String
classmethod GetResponseClassList(pRequest As %String = "") as %String
classmethod IsComponent() as %Boolean
method MakeAlarmCall(pThread As Ens.BP.Thread, pPrefix As %String, Output pName As %String, pDuration As %String, pUntil As %String = "", pIsTimer As %Boolean = 0, pDescription As %String = "") as %Status
Deprecated
method MakeTimerCall(pPrefix As %String, Output pName As %String, pTimeout As %String, pCompletionKeyList As %String, Output pAlarmHandle As %String, pDescription As %String = "", pIsTimer As %Boolean = 1) as %Status
classmethod OnCompile()
method OnErroredResponse(pErroredResponseStatus As %Status, request As %Library.Persistent, ByRef response As %Library.Persistent, pCompletionKey As %String) as %Status
We override this method to determine if there is an active error handler and if so to dispatch to it
method OnRequest(request As %Library.Persistent, Output response As %Library.Persistent) as %Status
Handle a 'Request'
method OnResponse(request As %Library.Persistent, ByRef response As %Library.Persistent, callrequest As %Library.Persistent, callresponse As %Library.Persistent, pCompletionKey As %String) as %Status
Handle a 'Response'
classmethod Purge(Output pDeletedCount As %Integer, pDaysToKeep As %Integer, pKeepIntegrity As %Boolean) as %Status
Deprecated - use Ens.BusinessProcess.Purge()
method RuleLoggingSet(pRuleLogging As %String = $$$eRuleLogTypeReturn) as %Status
Ensure that the value of RuleLogging is normalized at the time that it is set.
method UpdateSynchronizedResponses() as %Status
Update the synchronized responses

Triggers

trigger OnDelete (BEFORE event DELETE);

Inherited Members

Inherited Properties

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"pending",n)
=
%MasterPendingResponses(n)

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"received",n)
=
%MessagesReceived(n)

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"sent",n)
=
%MessagesSent(n)

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID)
=
%%CLASSNAME
%ConfigQueueName
%IsCompleted
%MasterPendingResponsesOld
%PrimaryRequestHeader
%PrimaryResponseHeader
%RepliedStatus
%responseId
Adapter
%SessionId
%TimeCompleted
%TimeCreated
%ConfigName
%QuitTask
AlertOnError
%responseClassName
%IsTimerInterrupted
%IsTerminated
%StatusCode
%MessagesReceivedOld
%MessagesSentOld
ReplyCodeActions
RetryInterval
AlertRetryGracePeriod
FailureTimeout
Retry
SuspendMessage
QueueCountAlert
QueueWaitAlert
InactivityTimeout
BusinessPartner
AlertGroups
%SuperSession

Storage Model: Storage (Ens.BusinessProcessBPL)

^Ens.BusinessProcessD(ID,"%SynchronizedResponses",n)
=
%SynchronizedResponses(n)

Storage Model: Storage (Ens.BusinessProcessBPL)

^Ens.BusinessProcessD(ID,"BusinessProcessBPL")
=
%Context
%Thread
%Counter
RuleLogging

Subclasses

FeedbackOpens in a new tab