Interface MutableElementInstanceState

    • Method Detail

      • removeInstance

        void removeInstance​(long key)
      • incrementNumberOfTakenSequenceFlows

        void incrementNumberOfTakenSequenceFlows​(long flowScopeKey,
                                                 org.agrona.DirectBuffer gatewayElementId,
                                                 org.agrona.DirectBuffer sequenceFlowElementId)
        Increments the number that counts how often the given sequence flow has been taken.

        The number helps to determine if a parallel gateway can be activated or not. It should be incremented when one of the incoming sequence flows is taken.

        Parameters:
        flowScopeKey - the key of the flow scope that contains the gateway
        gatewayElementId - the element id of the gateway that is the target of the sequence flow
        sequenceFlowElementId - the element id of the sequence flow that is taken
      • decrementNumberOfTakenSequenceFlows

        void decrementNumberOfTakenSequenceFlows​(long flowScopeKey,
                                                 org.agrona.DirectBuffer gatewayElementId)
        Decrements the numbers that counts how often a sequence flow of the given gateway has been taken.

        The number helps to determine if a parallel gateway can be activated or not. It should be decremented when the gateway is activated.

        Parameters:
        flowScopeKey - the key of the flow scope that contains the gateway
        gatewayElementId - the element id of the gateway