站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss JBPM 3.1.3 identity management component 英文版文档

ExpressionAssignmentHandler (jbpm-identity-3.1.3) - JBoss JBPM 3.1.3 identity management component 英文版文档


org.jbpm.identity.assignment
Class ExpressionAssignmentHandler

java.lang.Object
  extended by org.jbpm.identity.assignment.ExpressionAssignmentHandler
All Implemented Interfaces:
java.io.Serializable, org.jbpm.taskmgmt.def.AssignmentHandler

public class ExpressionAssignmentHandler
extends java.lang.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

Field Summary
protected  Entity entity
           
protected  org.jbpm.graph.exe.ExecutionContext executionContext
           
protected  java.lang.String expression
           
protected  ExpressionSession expressionSession
           
protected  TermTokenizer tokenizer
           
 
Constructor Summary
ExpressionAssignmentHandler()
           
 
Method Summary
 void assign(org.jbpm.taskmgmt.exe.Assignable assignable, org.jbpm.graph.exe.ExecutionContext executionContext)
           
protected  ExpressionSession getExpressionSession()
          serves as a hook for customizing the way the identity session is retrieved.
protected  Entity getGroupByName(java.lang.String groupName)
           
protected  java.lang.String getSwimlaneActorId(java.lang.String swimlaneName)
           
protected  Entity getUserByName(java.lang.String userName)
           
protected  java.lang.Object getVariable(java.lang.String variableName)
           
protected  Entity resolveFirstTerm(java.lang.String term)
           
protected  Entity resolveNextTerm(java.lang.String term)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expression

protected java.lang.String expression

executionContext

protected org.jbpm.graph.exe.ExecutionContext executionContext

expressionSession

protected ExpressionSession expressionSession

tokenizer

protected TermTokenizer tokenizer

entity

protected Entity entity
Constructor Detail

ExpressionAssignmentHandler

public ExpressionAssignmentHandler()
Method Detail

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(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)


Version : jbpm-identity-3.1.3