[jboss-user] [jBPM] - JBPM 3 - It is possible to define many users for a task ?

leod leod do-not-reply at jboss.com
Thu Jan 20 08:42:18 EST 2011


leod leod [http://community.jboss.org/people/leod38] created the discussion

"JBPM 3 - It is possible to define many users for a task ?"

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

--------------------------------------------------------------
Hi all,

it is very important for me to get your assistance.

I want to know if it's possible to assign two or more users to a task ?
     for example : titi or toto approval task2


If it's possible , how to do this ?
I want a complete example because I have reading lot of topic and they are never full
in processDefinition , in java part , in DB part , in jsp part.


for me only this work fine :

     <task-node name="step2">
        <task name="step2">
            <assignment actor-id="toto" />
        </task>
        <transition name="toStep3" to="step3" />
        <transition name="cancel" to="error" />
    </task-node>


or 

     <task-node name="step2">
        <task name="step2">
            <assignment class="com.test.CRWAssignmentHandler" />
        </task>
        <transition name="toStep3" to="step3" />
        <transition name="cancel" to="error" />
    </task-node>


with CRWAssignmentHandler :

public class CrwAssignmentHandler implements AssignmentHandler{
 
    private static final long serialVersionUID = -1101067351863423573L;
 
    public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception {
        assignable.setActorId("toto");
    }
}


I tryed to use swimlane , assignment pooledActors , etc ... none works correctly.

Please help me , is for my job !

Thanks in advance for your replies and sorry for my bad english  :p 

regards,

Leod
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/582098#582098]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110120/78eee9dd/attachment-0001.html 


More information about the jboss-user mailing list