[jboss-user] [JBoss jBPM] - Knowing which token you are in?
fernando.deleon@gmail.com
do-not-reply at jboss.com
Sun Jun 29 22:15:39 EDT 2008
Ok...am starting to evaluate JBPM and doing some small proof of concepts.
hooked JBPM with Spring + JSF running on Tomcat using an Oracle DB
My simple question is this..
I start a process instance and all is fine.
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="myholidaydefenition">
|
| <start-state>
| <transition to="reqHoliday" name="requestHoliday"/>
| </start-state>
|
| <task-node name="reqHoliday">
| <task name="requestHolidayTask"/>
| <transition to="evaluateLeave" name="evaluateRequest"/>
| </task-node>
|
| <decision name="evaluateLeave">
| <handler class="au.com.qtc.simpleForms.jbpm.decision.EvaluateLeaveDecisionHandler"/>
| <transition to="end" name="yes">
| <action class="au.com.qtc.simpleForms.jbpm.action.NotifyAboutLeaveActionHandler"/>
| </transition>
| <transition to="giveDonuts" name="no"/>
| </decision>
|
| <!--<task-node name="evaluateLeave">
| <task name="evaluateLeaveTask"/>
| <transition to="end" name="giveLeave">
| <action class="au.com.qtc.simpleForms.jbpm.action.NotifyAboutLeaveActionHandler"/>
| </transition>
| <transition to="giveDonuts" name="noLeaveSorry"/>
| </task-node> -->
|
| <task-node name="giveDonuts">
| <task name="donutConsolation"/>
| <transition to="end" name="toEnd"/>
| </task-node>
|
| <end-state name="end"/>
|
| </process-definition>
|
However...as you can see in the evaluateLeave decision i am at this page where the user needs to know whether they'll get leave or not.
however programmatically how do i know at which node is the token at???
getRootToken() gives the the root token..but i want the current token.
so that i can get the name of the token...and say if is in the token 'giveDonuts" then perform a different behavior
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161383#4161383
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161383
More information about the jboss-user
mailing list