Variables getting updated in wrong process

Hi ,
WE are facing a strange issue with flowable in our production instance.

Sometimes we see some of the process variables (those updated from a user task) updates the same variables of another process.
This is not very consistent though.

We update the process variables only using the following apis

  1. taskService.complete(taskID, variables); taskID is passed from the UI
  2. final String executionId = task.getExecutionId();        
     runtimeService.setVariables(executionId,variables);
    

We investigated the tables ACT_RU_EXECUTION and ACT_RU_TASK to see if there is some messing around happening with the execution IDs . but that doesn’t seem to the case.

Any insight to further debug the issue or find a reason why this is happening will help us immensely now.
Once again thank you upfront.

Both api calls don’t put variables on anything besides the execution or the related execution

Sometimes we see some of the process variables (those updated from a user task) updates the same variables of another process.

If it’s not on the side of setting them, maybe it is on retrieving them? How are you fetching the variables?

1 Like

Hi @joram thanks for the quick response.
We realised that this issue has nothing to do with flowable.
I was bit confused about the runtimeService.setVariables(executionId,variables); API call as in someplace in your code base you are using execution id and in some places you are using process instance ID.
I thought it is causing the mess up. But later found that process instance id is also an execution ID.

The issue was fully in over UI. Aplologies for the inconvenience caused.