Consider a process instance variable which currently has some value. I would like to update its value, for instance increment it by one, using the REST API of Activiti / Camunda. How would you do this?
The problem is that the REST API has services for setting variable values and to get them. But incorporating such API could easily lead to race condition.
Also consider that my example is regarding integers while a variable could be a complex JSON object or array!