A task instance is created by jBPM when you reach a task node. That is what 
happens with our default process. When a token reach a task node, there is 
always a VirtualTaskInstance variable with the name participant. We provide a 
controller:
{code}
    <task name="validate">
      <event type="task-create">
        <action
          
class="org.nuxeo.ecm.platform.jbpm.core.helper.TaskNotificationHandler" />
      </event>
      <controller
        
class="org.nuxeo.ecm.platform.jbpm.core.node.VirtualTaskInstanceController" />
      <assignment pooled-actors="#{participant.actors}" />
    </task>
{code}
to tell jBPM how to create the task using the value in the VirtualTaskInstance.

You can do whatever you want in action place in <event>, so creation of role 
shouldn't be a problem.
--
Posted by "arussel" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3255#9990>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to