Interface MutableElementInstanceState
-
- All Superinterfaces:
ElementInstanceState
- All Known Implementing Classes:
DbElementInstanceState
public interface MutableElementInstanceState extends ElementInstanceState
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.ElementInstance
newInstance(long key, ProcessInstanceRecord value, ProcessInstanceIntent state)
ElementInstance
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
getAwaitResultRequestMetadata, getChildren, getInstance, getNumberOfTakenSequenceFlows
-
-
-
-
Method Detail
-
newInstance
ElementInstance newInstance(long key, ProcessInstanceRecord value, ProcessInstanceIntent state)
-
newInstance
ElementInstance newInstance(ElementInstance parent, long key, ProcessInstanceRecord value, ProcessInstanceIntent state)
-
removeInstance
void removeInstance(long key)
-
updateInstance
void updateInstance(ElementInstance scopeInstance)
-
updateInstance
void updateInstance(long key, Consumer<ElementInstance> modifier)
-
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
-
-