[jboss-user] [JBoss jBPM] - Re: setting and accessing process variables in jpdl
dslevine
do-not-reply at jboss.com
Tue Mar 27 15:29:06 EDT 2007
i am using 3.1.2 and script works for my use cases.
Can you post the specific code that is having problems? Here is a sample of script code I use, where contractSummary is a variable placed into the workflow context in Java code:
| <decision name="Needs Second Approval?" expression='#{ ( contractSummary.totalAmount > 1000 ) ? "Yes" : "No" }'>
| <transition to="Contract Approval" name="Yes"></transition>
| <transition to="Needs Staff Assignment?" name="No">
| <script>
| <expression>
| approvedAmount = contractSummary.totalAmount;
| </expression>
| <variable name='approvedAmount' access='write' />
| </script>
| </transition>
| </decision>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032177#4032177
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032177
More information about the jboss-user
mailing list