[jboss-user] [JBoss jBPM] - Signaling Transition from a Java State

waterloo do-not-reply at jboss.com
Mon Aug 3 11:08:24 EDT 2009

Hi all,

    I need to signal a transition from a Java state and I don't know how to gain access to the current process instance. 

    In fact I have a highly specialized Java Class (the CommandHandler class) that handles all states in the process. Each type of state executes a different method in the CommandHandler class, which has a set of specific parameters.
It's like:
- jpdl
	<java class="CommandHandler"
  | 		g="281,211,80,40" method="doSomething" name="0">
  | 		<arg>
  | 			<string value="0" />
  | 		</arg>
  | 		<arg>
  | 			<string value="13" />
  | 		</arg>
  | 		<arg>
  | 			<string value="" />
  | 		</arg>
  | 		<transition g="-46,-18" name="to 1" to="1" />
  | 		<transition g="-46,-18" name="to 13" to="13" />
  | 	</java>


  | 	void doSomething(String curLabel, String gotoLabel, String expr) {
  |               ......
  | 	}

When executing doSomething, I need to signal a transition either to 1 or 13 but I don't know how to do it since I don't have any link with the runtime within a Java state.

Any help will be appreciated.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247635#4247635

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247635

More information about the jboss-user mailing list