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 TypeMethodDescriptionvoid
createScope
(long childKey, long parentKey) void
removeAllVariables
(long scopeKey) void
removeScope
(long scopeKey) 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 withname
within the given scope withscopeKey
, setting its value to the givenvalue
.void
setVariableLocal
(long key, long scopeKey, long processDefinitionKey, org.agrona.DirectBuffer name, org.agrona.DirectBuffer value) Creates or updates the variable withname
within 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 withname
within the given scope withscopeKey
, setting its value to the givenvalue
.This method is expected to be called directly ONLY from an
EventApplier
or 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 withname
within the given scope withscopeKey
, setting its value to the givenvalue
.This method is expected to be called directly ONLY from an
EventApplier
or 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 thename
buffernameLength
- length of the variable name in thename
buffervalue
- the value of the variable (MsgPack encoded)valueOffset
- offset at which the value starts in thevalue
buffervalueLength
- length of the variable value in thevalue
buffer
-
createScope
void createScope(long childKey, long parentKey) -
removeScope
void removeScope(long scopeKey) -
removeAllVariables
void removeAllVariables(long scopeKey)
-