cancel
Showing results for 
Search instead for 
Did you mean: 

How to get potentialOwner and humanPerformer?

darshan_hardas
Champ in-the-making
Champ in-the-making
How to get the potentialOwer and humanPerformer from a task?
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
Please … this is a straight rtfm (search the userguide).

humanPerformer = assignee
potential owner = candidate group

darshan_hardas
Champ in-the-making
Champ in-the-making
I can get a assignee/human Performer from Task::getAssignee(..)

But if its a potentialOwner which can be retrieved from Task::getOwner(..), the resulted String can be a group or user. How will we get if an owner to a task is group or only an user????.

jbarrez
Star Contributor
Star Contributor
I didn't say that potentialOwner == task.getOwner.
I said potentialOwner == candidateGroup / candidateUser.

Also, this is straight from the user guide:

<code>
<userTask id='theTask' name='important task' >
    <potentialOwner>
      <resourceAssignmentExpression>
        <formalExpression>user(kermit), group(management)</formalExpression>
      </resourceAssignmentExpression>
    </potentialOwner>
  </userTask>
</code>

Can you please give us the api where we can get the list of candidateGroup and candidateUsers??

jbarrez
Star Contributor
Star Contributor
List<IdentityLink> getIdentityLinksForTask(String taskId)