Interface ElementInstanceState

All Known Subinterfaces:
MutableElementInstanceState
All Known Implementing Classes:
DbElementInstanceState

public interface ElementInstanceState
  • Method Details

    • getInstance

      ElementInstance getInstance(long key)
    • getChildren

      List<ElementInstance> getChildren(long parentKey)
    • getAwaitResultRequestMetadata

      AwaitProcessInstanceResultMetadata getAwaitResultRequestMetadata(long processInstanceKey)
    • 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 gateway
      gatewayElementId - the element id of the gateway
      Returns:
      the number of taken sequence flows of the given gateway