Interface MutableElementInstanceState
- All Superinterfaces:
ElementInstanceState
- All Known Implementing Classes:
DbElementInstanceState
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createInstance
(ElementInstance instance) 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.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.newInstance
(long key, ProcessInstanceRecord value, ProcessInstanceIntent state) newInstance
(ElementInstance parent, long key, ProcessInstanceRecord value, ProcessInstanceIntent state) void
removeInstance
(long key) void
setAwaitResultRequestMetadata
(long processInstanceKey, AwaitProcessInstanceResultMetadata metadata) void
updateInstance
(long key, Consumer<ElementInstance> modifier) void
updateInstance
(ElementInstance scopeInstance) Methods inherited from interface io.camunda.zeebe.engine.state.immutable.ElementInstanceState
forEachChild, getAwaitResultRequestMetadata, getChildren, getInstance, getNumberOfTakenSequenceFlows, getProcessInstanceKeysByDefinitionKey, hasActiveProcessInstances
-
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
-