[jboss-user] [JBoss jBPM] - Re: Assign a generic sub-process task in the parent process?

avbentem do-not-reply at jboss.com
Thu Mar 29 09:57:47 EDT 2007


"kukeltje" wrote : Additional info reagarding the assignment in swimlanes
Thanks!

But so far no luck setting the swimlane to start with; no matter where I try to get my event handler invoked, the injected TaskInstance is always null when invoked from a parent process.

For example:
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="survey">  
  |     : 
  |     <task-node name="survey">
  |         <task name="survey">
  |             <!-- The same results for task-start or task-assign --> 
  |             <event type="task-create">
  |                 <action name=".." expression="#{taskAssigner.setSwimlane}" />
  |             </event>
  |         </task>
  |         :
  |     </task-node>
  | </process-definition>

And likewise when setting the event handler on the task-node:
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="survey">  
  |     : 
  |     <task-node name="survey">
  |         <event type="node-enter">
  |             <action name=".." expression="#{taskAssigner.setSwimlane}" />
  |         </event>
  |         <task name="survey">
  |             :
  |         </task>
  |         :
  |     </task-node>
  | </process-definition>

When starting the sub-process directly (so, not from within some process-state in a parent process) then I do get a TaskInstance injected though...

Like I said: to be continued... I hope!
Arjan. 

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

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



More information about the jboss-user mailing list