org.ow2.bonita.definition
Class VariablePerformerAssign

java.lang.Object
  extended by org.ow2.bonita.definition.VariablePerformerAssign
All Implemented Interfaces:
PerformerAssign

public class VariablePerformerAssign
extends java.lang.Object
implements PerformerAssign

Specific class for Performer Assignment with variable type (used by the engine).

Author:
Guillaume Porcher

Constructor Summary
VariablePerformerAssign()
           
 
Method Summary
 java.lang.String getVariableId()
           
 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.
 void setVariableId(java.lang.String variableId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariablePerformerAssign

public VariablePerformerAssign()
Method Detail

selectUser

public java.lang.String selectUser(QueryAPIAccessor accessor,
                                   ActivityInstance<ActivityBody> activityInstance,
                                   java.util.Set<java.lang.String> candidates)
                            throws java.lang.Exception
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.
activityInstance - the activity.
candidates - The unordered set of user uuid that are candidate to start the task.
Returns:
The user Id that can start the task.
Throws:
java.lang.Exception - If an Exception has occurred.

getVariableId

public java.lang.String getVariableId()

setVariableId

public void setVariableId(java.lang.String variableId)


Copyright © 2008 OW2 Consortium. All Rights Reserved.