Skip to Content
author's profile photo Former Member
Former Member

role assignment

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,

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 13, 2009 at 06:06 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 03:06 PM

    My question was resolved. Thank you very much.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.