Supported Data Types for Data Objects

Handling Information in Your Process Design 8-7

8.5 Working with Activity Instance Attributes

Some process elements support activity instance attributes. You can use these activity instance attributes to control the flow of a process. Generally the Process Engine assigns the values of activity instance attributes, however some of them require you to assign them a value. Table 8–2 Activity Instance Attributes Name Type Description Availability state String Specifies the state of the instance. Possible values are: ■ none ■ ready ■ active ■ canceled ■ aborted ■ completing ■ completed In complex gateways loopCounter Int Specifies the number of times the engine ran this activity. The Process Engine updates this variable each time it runs a new loop. In activities with loop marker. loopCounter Int Specifies the sequence number that identifies each of the activations of this activity. The BPMN Engine assigns this number to each activation when it runs the activity. In activities with multi-instance marker. numberOfInstances Int .Specifies the number of activations created for a multi-instance activity. You can only access this value from the main instance. In activities with multi-instance marker. numberOfActiveInstances Int Specifies the number of active inner instances for a multi-instance activity. You can only access this value from the main instance. For sequential multi-instance activities this value is either 1 or 0. For parallel multi-instance activities this value is smaller or equal to the value specified by the predefined data object numberOfInstances. In activities with multi-instance marker. numberOfCompletedInstances Int Specifies the number of completed inner instances for a a multi-instance activity. You can only access this value from the main instance. In activities with multi-instance marker. numberOfTerminatedInstances Int Specifies the number of terminated inner instances for a a multi-instance activity. You can only access this value from the main instance. In activities with multi-instance marker. activationCount Int Specifies the number of tokens in the incoming sequence flow of the gateway. In complex gateways.