[jboss-user] [jBPM] - Re: how to assign assignee to a task at run time

helal jean-noel do-not-reply at jboss.com
Thu Feb 24 06:53:23 EST 2011


helal jean-noel [http://community.jboss.org/people/jnhelal] created the discussion

"Re: how to assign assignee to a task at run time"

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

--------------------------------------------------------------
Please readout the 4.4 user guide and the task node attribute description

Assuming the user is named "ayusman" You may set <task mame="myTask" assignee="ayusman" ..> into the process définition.
When "myTask" is reached, the task can be queried among others as "assigned to ayusman" with something like 
     TaskService.createQuery().assignee("ayusman").list()

Same holds with "candidate" attribute.

 Same principle again with "candidate-goups" attributes but this time you have to set a group and membership "ayousman" to it

Regards
jnh
--------------------------------------------------------------

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

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/20110224/3fd2a973/attachment-0001.html 


More information about the jboss-user mailing list