[jboss-user] [jBPM] - Re: Null Pointer Exception when Rule is used to change process variable value
Maciej Swiderski
do-not-reply at jboss.com
Fri Dec 7 01:59:08 EST 2012
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: Null Pointer Exception when Rule is used to change process variable value"
To view the discussion, visit: https://community.jboss.org/message/780569#780569
--------------------------------------------------------------
that sounds little bit strange especially when you say that it works ok on clean installation. That could mean that you don't retract process instance from working memory (session) when process is completed. In that case it will try to update variable of a process instance that is not up to date (most likely completed) but still remains in the working memory. Please keep in mind that session including all facts in it is persisted and reloaded on every server restart.
Could you please try using the RuleAwareProcessEventListener as it retracts the process instance automatically when process is completed or retract the process instance manually when you don't need it any more. Before doing this remove the session id file stored in jboss_home/standalone/tmp to enforce jbpm to create new session instead of loading one that was previously persisted.
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780569#780569]
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/20121207/2c9c3028/attachment.html
More information about the jboss-user
mailing list