-
1. Re: Always assign to a given actor
pmuir Jun 8, 2007 10:50 AM (in response to limousyf)You want to assign the task correctly in the first place e.g.
<assignment actor-id="#{currentUser.boss.id}" />
-
2. Re: Always assign to a given actor
limousyf Jun 8, 2007 11:06 AM (in response to limousyf)You're right, it's much easier that way.
Just to be sure I understand it well, I can assign to anyone in the xml definition file, and for "my assigned instances" it just have to match actor.id right ?
My next question is: where do the transition look for the EL defined in the process definition ? In all contexts as usual ?
I mean, if I want to assign, not to current user boss but to a variable user managed elsewhere in the application (delegation management for example), I can just outject in the conversation/event context my user to be assigned ?@Out (Scope=ScopetType.EVENT) User supervisor; and in the assignement: #{supervisor.id}
Will this work ? I just load the wanted supervisor and outject it for BP to have it. -
3. Re: Always assign to a given actor
limousyf Jun 8, 2007 11:41 AM (in response to limousyf)Well just to close the post, I wanted to say that my stuff (almost) worked !
I just have to outject a String, and not an int. But everything worked after this.
I don't know maybe this can help someone ...
You know, maybe someone even more n00bish than me ...
(Hey ! Why is everybody laughing ? Stop this !)
Well thanks for the help