Interface MutableElementInstanceState
- All Superinterfaces:
ElementInstanceState
- All Known Implementing Classes:
DbElementInstanceState
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateInstance(ElementInstance instance) voiddecrementNumberOfTakenSequenceFlows(long flowScopeKey, org.agrona.DirectBuffer gatewayElementId) Decrements the numbers that counts how often a sequence flow of the given gateway has been taken.voidincrementNumberOfTakenSequenceFlows(long flowScopeKey, org.agrona.DirectBuffer gatewayElementId, org.agrona.DirectBuffer sequenceFlowElementId) Increments the number that counts how often the given sequence flow has been taken.newInstance(long key, ProcessInstanceRecord value, ProcessInstanceIntent state) newInstance(ElementInstance parent, long key, ProcessInstanceRecord value, ProcessInstanceIntent state) voidremoveInstance(long key) voidsetAwaitResultRequestMetadata(long processInstanceKey, AwaitProcessInstanceResultMetadata metadata) voidupdateInstance(long key, Consumer<ElementInstance> modifier) voidupdateInstance(ElementInstance scopeInstance) Methods inherited from interface io.camunda.zeebe.engine.state.immutable.ElementInstanceState
getAwaitResultRequestMetadata, getChildren, getInstance, getNumberOfTakenSequenceFlows
-
Method Details
-
newInstance
-
newInstance
ElementInstance newInstance(ElementInstance parent, long key, ProcessInstanceRecord value, ProcessInstanceIntent state) -
removeInstance
void removeInstance(long key) -
createInstance
-
updateInstance
-
updateInstance
-
setAwaitResultRequestMetadata
void setAwaitResultRequestMetadata(long processInstanceKey, AwaitProcessInstanceResultMetadata metadata) -
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 gatewaygatewayElementId- the element id of the gateway that is the target of the sequence flowsequenceFlowElementId- 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 gatewaygatewayElementId- the element id of the gateway
-