org.jbpm.identity.assignment
Class ExpressionAssignmentHandler
java.lang.Object
org.jbpm.identity.assignment.ExpressionAssignmentHandler
- All Implemented Interfaces:
- Serializable, org.jbpm.taskmgmt.def.AssignmentHandler
public class ExpressionAssignmentHandler
- extends Object
- implements org.jbpm.taskmgmt.def.AssignmentHandler
implements an expression language for assigning actors to tasks based on this identity
component.
syntax : first-term --> next-term --> next-term --> ... --> next-term
first-term ::= previous |
swimlane(swimlane-name) |
variable(variable-name) |
user(user-name) |
group(group-name)
next-term ::= group(group-type) |
member(role-name)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expression
protected String expression
executionContext
protected org.jbpm.graph.exe.ExecutionContext executionContext
expressionSession
protected ExpressionSession expressionSession
tokenizer
protected TermTokenizer tokenizer
entity
protected Entity entity
ExpressionAssignmentHandler
public ExpressionAssignmentHandler()
assign
public void assign(org.jbpm.taskmgmt.exe.Assignable assignable,
org.jbpm.graph.exe.ExecutionContext executionContext)
- Specified by:
assign in interface org.jbpm.taskmgmt.def.AssignmentHandler
getExpressionSession
protected ExpressionSession getExpressionSession()
- serves as a hook for customizing the way the identity session is retrieved. overload this
method to reuse this expression assignment handler for your user data store.
resolveFirstTerm
protected Entity resolveFirstTerm(String term)
resolveNextTerm
protected Entity resolveNextTerm(String term)
getVariable
protected Object getVariable(String variableName)
getGroupByName
protected Entity getGroupByName(String groupName)
getUserByName
protected Entity getUserByName(String userName)
getSwimlaneActorId
protected String getSwimlaneActorId(String swimlaneName)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.