1 Reply Latest reply: Jan 21, 2011 2:08 AM by leod leod RSS

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

leod leod Newbie

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

 

regards,

 

Leod