[jboss-user] [jBPM] - how to setVariable

johennes fan do-not-reply at jboss.com
Tue Nov 13 06:58:23 EST 2012


johennes fan [https://community.jboss.org/people/johennes] created the discussion

"how to setVariable"

To view the discussion, visit: https://community.jboss.org/message/776174#776174

--------------------------------------------------------------
Hello,
After the process was started,I wan't to change the variable.
Then I use this code:
((WorkflowProcessInstanceImpl) ksession.getProcessInstance(processid)).setVariable("aa", "bb")
But it always call "java.lang.NullPointerException",I don't know why.  The code "getVariable()" works well. 


Anyone can help me ?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/776174#776174]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121113/9bc5b7c1/attachment.html 


More information about the jboss-user mailing list