org.jbpm.identity.assignment
Class ExpressionAssignmentHandler
java.lang.Object
org.jbpm.identity.assignment.ExpressionAssignmentHandler
- All Implemented Interfaces:
- java.io.Serializable, AssignmentHandler
public class ExpressionAssignmentHandler
- extends java.lang.Object
- implements 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 java.lang.String expression
executionContext
protected ExecutionContext executionContext
expressionSession
protected ExpressionSession expressionSession
tokenizer
protected TermTokenizer tokenizer
entity
protected Entity entity
ExpressionAssignmentHandler
public ExpressionAssignmentHandler()
assign
public void assign(Assignable assignable,
ExecutionContext executionContext)
- Specified by:
assign in interface 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(java.lang.String term)
resolveNextTerm
protected Entity resolveNextTerm(java.lang.String term)
getVariable
protected java.lang.Object getVariable(java.lang.String variableName)
getGroupByName
protected Entity getGroupByName(java.lang.String groupName)
getUserByName
protected Entity getUserByName(java.lang.String userName)
getSwimlaneActorId
protected java.lang.String getSwimlaneActorId(java.lang.String swimlaneName)
Copyright © 2010 JBoss Community. All Rights Reserved.