Optionaldata: Partial<Activity>Optionalkey: stringOptionalcontextProtected Optional ReadonlykeyProtectedprocessOptionaltokenThe id property of the object.
The
incomingproperty returns an array ofSequenceobjects that are incoming to the currentActivity
An array of Sequence objects.
The function returns the value of the name property of the object that is stored in the $ property of the current object
The name property of the object.
It returns an array of
Sequenceobjects that are outgoing from the current activity
An array of Sequence objects
ProtectedgoThe function handles outgoing transitions for a token in a workflow system.
outgoing is an array of objects of type GoOutInterface. Each object
represents an outgoing transition from a current activity to a new activity.
If the key property of the current node is not null and includes the string 'endEvent', return true
The key of the current node.
If the key property exists and includes the string 'startEvent', return true. Otherwise, return false
A boolean value.
It takes the outgoing sequence flows from the current activity and creates a new token for each one
Optionalidentity: IdentityOptionsIdentityOptions
Optionaloptions: { pause: string | boolean }pause: boolean | string
The outgoing activity
The function takes an array of options, retrieves corresponding activities from an outgoing array, and passes them to another function.
An array of objects with two properties: "identity" and "pause". "identity" is a string representing the identity of the outgoing activity to be taken out, and "pause" is a boolean indicating whether the activity should be paused or not.
If the outgoing property is falsy or an empty array, nothing is returned.
StaticbuildIt creates a new Activity object.
BPMNActivity - the element from the BPMN file
The process that the activity belongs to.
Optionalkey: stringThe key of the element.
A new instance of the Activity class.
The function returns the value of the id property of the object that is stored in the $ property of the current object