Interface MutableVariableState
- All Superinterfaces:
VariableState
- All Known Implementing Classes:
DbVariableState
-
Field Summary
Fields inherited from interface io.camunda.zeebe.engine.state.immutable.VariableState
NO_PARENT -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateScope(long childKey, long parentKey) voidremoveAllVariables(long scopeKey) voidremoveScope(long scopeKey) voidsetVariableLocal(long key, long scopeKey, long processDefinitionKey, org.agrona.DirectBuffer name, int nameOffset, int nameLength, org.agrona.DirectBuffer value, int valueOffset, int valueLength) Creates or updates the variable withnamewithin the given scope withscopeKey, setting its value to the givenvalue.voidsetVariableLocal(long key, long scopeKey, long processDefinitionKey, org.agrona.DirectBuffer name, org.agrona.DirectBuffer value) Creates or updates the variable withnamewithin the given scope withscopeKey, setting its value to the givenvalue.Methods inherited from interface io.camunda.zeebe.engine.state.immutable.VariableState
getParentScopeKey, getVariable, getVariable, getVariableInstanceLocal, getVariableLocal, getVariablesAsDocument, getVariablesAsDocument, getVariablesLocalAsDocument, isEmpty
-
Method Details
-
setVariableLocal
void setVariableLocal(long key, long scopeKey, long processDefinitionKey, org.agrona.DirectBuffer name, org.agrona.DirectBuffer value) Creates or updates the variable withnamewithin the given scope withscopeKey, setting its value to the givenvalue.This method is expected to be called directly ONLY from an
EventApplieror from tests.- Parameters:
key- the variable keyscopeKey- the local scope of the variableprocessDefinitionKey- the associated process key, mostly for monitoring purposesname- the name of the variablevalue- the value of the variable (MsgPack encoded)
-
setVariableLocal
void setVariableLocal(long key, long scopeKey, long processDefinitionKey, org.agrona.DirectBuffer name, int nameOffset, int nameLength, org.agrona.DirectBuffer value, int valueOffset, int valueLength) Creates or updates the variable withnamewithin the given scope withscopeKey, setting its value to the givenvalue.This method is expected to be called directly ONLY from an
EventApplieror from tests.- Parameters:
key- the variable keyscopeKey- the local scope of the variableprocessDefinitionKey- the associated process key, mostly for monitoring purposesname- the name of the variablenameOffset- offset at which the name starts in thenamebuffernameLength- length of the variable name in thenamebuffervalue- the value of the variable (MsgPack encoded)valueOffset- offset at which the value starts in thevaluebuffervalueLength- length of the variable value in thevaluebuffer
-
createScope
void createScope(long childKey, long parentKey) -
removeScope
void removeScope(long scopeKey) -
removeAllVariables
void removeAllVariables(long scopeKey)
-