[jboss-user] [jBPM] - Task element in jBPM 4.4

Ayusman Dikshit do-not-reply at jboss.com
Fri Feb 11 09:10:13 EST 2011

Ayusman Dikshit [http://community.jboss.org/people/ayusman_dikshit] created the discussion

"Task element in jBPM 4.4"

To view the discussion, visit: http://community.jboss.org/message/586895#586895

Hi All,
i am very new to jbpm.
I am trying to model some business workflows in jbpm (using jpdl).

I wanted to know if the element "task"

basically mean a human task?

I am trying to assign users to a task dynamically. I am using something like this in jpdl:

   <task name="approver1Task" g="445,123,92,52">
   <description>Shows candidate users assigment</description>
      <assignment-handler class="com.ad.assignmenthandler.FindAssignee">
        <description>Used to find the assignee at runtime</description>
        <field name="approverNumber">
            <int value="1"/>
      <transition name="to MergePoint" to="MergePoint" g="-72,-18"/>

the FindAssignee class implements AssignmentHandler and the assign() basically fetches users from database at runtime.
Is this the right approach? When does the assign() called, when the process instance starts or when the workflow reaches the task "approver1Task"?

thanks in advance guys.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110211/62417b93/attachment.html 

More information about the jboss-user mailing list