Maciej Swiderski [
https://community.jboss.org/people/swiderski.maciej] created the
discussion
"Re: Trying to set ActorId in On Entry Action - work item is null"
To view the discussion, visit:
https://community.jboss.org/message/648784#648784
--------------------------------------------------------------
Yes, on onEntry event work item is not yet created - unfortunately.
Just wondering what you are trying to achieve with the code above... since if you use
group id as main assignment criteria and then add actor id (meaning there will be both
group and actor) it wil not assign the task to that actor only. Task will be available for
all of them.
I can see two options here:
* use a XOR gateway and two user tasks (one for manager and one for group)
* use one userTask and make it only group assignable and one of the group will be a
manager's group (with possible only one member) and make GroupId to be set from
process variable that you can modify during process instance flow.
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/648784#648784]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]