JBoss Community

ExecutionService.setVariable() Question

created by Yongtao You in jBPM - View the full discussion

Hi,

 

We are using jBPM 4.3. We start the process execution by

 

ExecutionService.startProcessInstanceByKey(key, variables);

 

Half way through the workflow we want to modify one of the variables, say X, so that the remaining steps will pickup the new value. We tried:

 

ExecutionService.setVariable(executionId, "X", "new value");

 

That didn't work. In the remaining steps of the workflow we still see the old value of X.

 

What did we do wrong? Any advice?

 

Thanks!

Yongtao

Reply to this message by going to Community

Start a new discussion in jBPM at Community