Note: repost for readability, sorry, please ignore previous
Hi,
I want to use a decision which takes a particular transition based on a process
variable, and takes a default transition if the variable has not been set. The
decision I am using is
decision name=intelligentState
| transition to=workFlowStart
| condition expression=#contextInstance.variables['tran'] eq
null/
| /transition
|transition to=optionalState1
| condition expression=#contextInstance.variables['tran'] eq
'optionalState1'/
| /transition
| transition to=optionalState2
| condition expression=#contextInstance.variables['tran'] eq
'optionalState2'/
| /transition
| /decision
However I get an exception
org.jbpm.graph.def.DelegationException
...
Caused by: java.lang.NullPointerException
at org.jbpm.graph.node.Decision.execute(Decision.java:70)
Even though I set
contextInstance.setVariable(tran, optionalState1);
Any ideas what could be causing this?
Also how can I check if an instance variable has not been set?
Is #contextInstance.variables['tran'] eq null the correct way?
Thanks
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940904#3940904
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940904
---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user