cancel
Showing results for 
Search instead for 
Did you mean: 

role assignment

Former Member
0 Kudos

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,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

My question was resolved. Thank you very much.

martin_moeller
Contributor
0 Kudos

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