What is the proper way to query process instance variables in Camunda?
In Activiti there is a getProcessVariables() method available on the org.activiti.engine.runtime.ProcessInstance but it was removed from org.camunda.bpm.engine.runtime.ProcessInstance.
camunda introduced a new, separate query for process instance variables:
VariableInstance v =
runtimeService.createVariableInstanceQuery()
.processInstanceIdIn(pId)
.variableName("myVariable")
.singleResult();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With