Yongtao You [
http://community.jboss.org/people/yongtao] created the discussion
"Re: ExecutionService.setVariable() Question"
To view the discussion, visit:
http://community.jboss.org/message/564937#564937
--------------------------------------------------------------
Thanks HuiSheng,
Yes I did re-get the process instance. It did not help.
However, I found a workaround. Instead of calling
+ExecutionService.setVariable(executionId, "X", "new value");+
I pass a map of variables (and their new values) to the +TaskService.completeTask()+ call.
This works just fine for me since I only need those new values in the subsequent steps.
Thanks.
Yongtao
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/564937#564937]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]