org.ow2.bonita.definition
Class PropertyPerformerAssign
java.lang.Object
org.ow2.bonita.definition.PropertyPerformerAssign
- All Implemented Interfaces:
- PerformerAssign
public class PropertyPerformerAssign
- extends java.lang.Object
- implements PerformerAssign
- Author:
- Guillaume Porcher
Method Summary |
java.lang.String |
getVariableId()
|
java.lang.String |
selectUser(QueryAPIAccessor accessor,
org.ow2.bonita.facade.uuid.ProcessInstanceUUID instanceUUID,
java.lang.String activityId,
java.lang.String iterationId,
java.util.Set<java.lang.String> candidates)
Selecting one user from the candidates list is the good practice. |
void |
setVariableId(java.lang.String variableId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyPerformerAssign
public PropertyPerformerAssign()
selectUser
public java.lang.String selectUser(QueryAPIAccessor accessor,
org.ow2.bonita.facade.uuid.ProcessInstanceUUID instanceUUID,
java.lang.String activityId,
java.lang.String iterationId,
java.util.Set<java.lang.String> candidates)
- Description copied from interface:
PerformerAssign
- Selecting one user from the candidates list is the good practice.
Candidates list results from the execution of a role mapper.
- Specified by:
selectUser
in interface PerformerAssign
- Parameters:
accessor
- The QueryAPIAccessor interface to access: QueryRuntimeAPI or QueryDefinitionAPI.instanceUUID
- Id of the instance.activityId
- Id of the activity.iterationId
- Id of the iteration.candidates
- The unordered set of user uuid that are candidate to start the task.
- Returns:
- The user Id that can start the task.
getVariableId
public java.lang.String getVariableId()
setVariableId
public void setVariableId(java.lang.String variableId)