on 08-13-2009 2:01 AM
Is it possible to change the role assignment after the process have been already started? I tried to "use an expression" for assigning the role to the task of the process as a potential owner.
1) I tried to write the expression as follows,
getPrincipalByUniqueName(PotentialOwnersInternal/principal/principalId, "approver")
"approver" is the role that I defined in the UME and is included the several users.
But, this expression is wrong, because the prindipalId is the list of xsd:string, this function expects the type of xsd:string.
How should I recorrect the expression?
2) If I can use an expression like above, If I add a new user to "approver" role after the process have been started, can the new user execute the task that are assigned "use an expression" role as a potential owner?
Best regards,
My question was resolved. Thank you very much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Takako,
1)
Using the principal functions is the right direction.
getPrincipalByUniqueName expects the UME unique name as first argument and as second argument the principal type you're looking for. So the call would basically look like this:
getPrincipalByUniqueName("approver", "role")
2)
The prinicpals for a task will be resolved when the task is initiated. If there are changes to the role / group before than they will be reflected. After instantiation of the task the set of users is already determined so that changes to the role / group won't be reflected anymore.
This way the potential owner set reflects which people were assigned to this group / were owning this role at this particular point of time.
Hope this helps,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.