Tun Mang [
http://community.jboss.org/people/tunmang] created the discussion
"in jBPM 4.3, can a state node's handler choose its outgoing transition?"
To view the discussion, visit:
http://community.jboss.org/message/549404#549404
--------------------------------------------------------------
Hi there,
For a particular process definition, we would like to add a state node which associates
with an "end" event handler as shown below:
<state name="JobTranscode" >
<on event="end">
<event-listener class="com....components.TranscodeHandler"
/>
</on>
<transition name="Failed" to="UserTask"/>
<transition name="Success" to="end1"/>
</state>
There will be a stand-alone application calling the "signal process" for this
state node so that the TranscodeHandler class (implements EventListener) will receive the
"end event". And the TranscodeHandler class will override the "notify"
function to implement the logic to decide a final outgoing transition for this state
node.
Is this doable in jBPM 4.3 ? If yes, how does the stand-alone application call the
"signal process" ? And how does the (override) "notify" function set
the final outgoing transition ?
Or this is doable in jBPM, but the approach is different from what we thought ?
Any advice is very appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/549404#549404]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]