Interface ElementInstanceState
- All Known Subinterfaces:
MutableElementInstanceState
- All Known Implementing Classes:
DbElementInstanceState
public interface ElementInstanceState
-
Method Summary
Modifier and TypeMethodDescriptiongetAwaitResultRequestMetadata
(long processInstanceKey) getChildren
(long parentKey) getInstance
(long key) int
getNumberOfTakenSequenceFlows
(long flowScopeKey, org.agrona.DirectBuffer gatewayElementId) Returns the number of the taken sequence flows that are connected to the given parallel (joining) gateway.
-
Method Details
-
getInstance
-
getChildren
-
getAwaitResultRequestMetadata
-
getNumberOfTakenSequenceFlows
int getNumberOfTakenSequenceFlows(long flowScopeKey, org.agrona.DirectBuffer gatewayElementId) Returns the number of the taken sequence flows that are connected to the given parallel (joining) gateway. Each sequence flow counts only as one, even if it is taken multiple times.The number helps to determine if a parallel gateway can be activated or not.
- Parameters:
flowScopeKey
- the key of the flow scope that contains the gatewaygatewayElementId
- the element id of the gateway- Returns:
- the number of taken sequence flows of the given gateway
-