All ancestor scope keys of the element that will be activated. The property is set in the event only after the modification is applied.
The id of the element to create a new element instance at.
Returns a list of variable instructions (if available), or an empty list.
Generated using TypeDoc
The key of the ancestor scope to create the new element instance in, or -1 if no specific ancestor is selected.
This key is used for ancestor selection:
By default, the new element instance is created within an existing element instance of the flow scope. For example, when activating an element inside an embedded subprocess and the subprocess is already active.
If there is more than one element instance of the flow scope active then the engine can't decide which element instance to create the new element instance in. Instead, the element instance must be selected by its element instance key. The new element instance is created within the selected element instance.
If the selected element instance is not of the flow scope but from a higher scope (e.g. the process instance key instead of the element instance key of the subprocess) then the engine creates a new element instance of the flow scope first and then creates the new element instance within this scope.