|
|||||||||
| Home >> All >> org >> jbpm >> workflow >> [ delegation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jbpm.workflow.delegation
Interface AssignmentHandler

- public interface AssignmentHandler
is the delegation interface for selecting the org.jbpm.workflow.organisation.User or org.jbpm.workflow.organisation.Group that will be assigned as actor for an acitivity.
For more information on activity assignment see also the concepts page on the jBpm website
After the assignment of an actor to an activity, the actor is the only user that is able to act upon the activity. An actor of an activity can do one of the following actions :
- perform the activity
- delegate the activity to another user
- cancel the flow
- cancel the process instance
If an activity is assigned to a org.jbpm.workflow.organisation.Group, the members of that group are able to pull the activity to their tasklist. Currently group-members can just perform tasks of their group without pulling the task explicitly to their personal tasklist. This could result in an exception being thrown from the performActivity method if 2 users try to perform the same activity at the same time. It would be a better API design to have members pull tasks to their personal tasklist before allowing them to perform the tasks. That way there can be no conflict so no exception has to be thrown. But this pulling mechanism still has to be implemented.
If the returned id is the id of a org.jbpm.workflow.organisation.User, that org.jbpm.workflow.organisation.User will get this activity in his/her tasklist. The org.jbpm.workflow.organisation.User is then assigned to the activity as described above.
If the returned id is the id of org.jbpm.workflow.organisation.Group, the
org.jbpm.workflow.organisation.Group will be assigned to the activity.
Nobody is able to perform an org.jbpm.workflow.definition.Activity that is
assigned to a org.jbpm.workflow.organisation.Group directly.
First, the wanne-be-actor has to pull the org.jbpm.workflow.definition.Activity
from his org.jbpm.workflow.organisation.Group in his own
tasklist. People are only able to pull activities from their own
org.jbpm.workflow.organisation.Group(s).
After someone pulls an org.jbpm.workflow.definition.Activity, the
org.jbpm.workflow.definition.Activity is assigned to the
org.jbpm.workflow.organisation.User as described above.
| Method Summary | |
java.lang.String |
selectActor(AssignmentContext assignerContext)
performs the assignment of a org.jbpm.workflow.organisation.User or a org.jbpm.workflow.organisation.Group to an org.jbpm.workflow.definition.Activity
in a org.jbpm.workflow.execution.Flow. |
| Method Detail |
selectActor
public java.lang.String selectActor(AssignmentContext assignerContext)
- performs the assignment of a org.jbpm.workflow.organisation.User or a
org.jbpm.workflow.organisation.Group to an
org.jbpm.workflow.definition.Activityin a org.jbpm.workflow.execution.Flow.
|
|||||||||
| Home >> All >> org >> jbpm >> workflow >> [ delegation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC