|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PerformerAssign
Performer assignment is dedicated to manual activity (ie. activity with startMode=Manual, aka human task).
Implementing this interface allows to assign the activity to a user of a group.
Within xpdl definition, the performer assignment feature is specified within
external attributes of the Activity element.
There is two parameters to define a performer assignment:
The selectUser()
method to be implemented is called when the execution enters into the node of
the activity after the creation of the human task and after the execution of
the role mapper
if there is one.
This task will be assign to the returned user and only this user can get the task.
In other word, this task is returned by getTaskList() method
(with state=READY) only if executed by the assigned user (being authenticated).
Method Summary | |
---|---|
java.lang.String |
selectUser(QueryAPIAccessor accessor,
ActivityInstance<ActivityBody> activityInstance,
java.util.Set<java.lang.String> candidates)
Selecting one user from the candidates list is the good practice. |
Method Detail |
---|
java.lang.String selectUser(QueryAPIAccessor accessor, ActivityInstance<ActivityBody> activityInstance, java.util.Set<java.lang.String> candidates) throws java.lang.Exception
accessor
- The QueryAPIAccessor interface to access: QueryRuntimeAPI or QueryDefinitionAPI.activityInstance
- the activity.candidates
- The unordered set of user uuid that are candidate to start the task.
java.lang.Exception
- If an Exception has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |