I am new with Camunda BPM. I Can start my Process and change state of my process instance.
I have to add some variables when another application call a custom Camunda custom endpoint with business key.
How to add a variable at a running instance ? I just have a business key to retrieve process instance.
Here is my codein my custom endpoint
ProcessInstance processInstance = processEngine.getRuntimeService() .createProcessInstanceQuery() .variableValueEquals("businessKey", 657).singleResult();
How to add variable(key and value) in this process instance ?