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

TaskMgmtInstance (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档


org.jbpm.taskmgmt.exe
Class TaskMgmtInstance

java.lang.Object
  extended byorg.jbpm.module.exe.ModuleInstance
      extended byorg.jbpm.taskmgmt.exe.TaskMgmtInstance
All Implemented Interfaces:
java.io.Serializable

public class TaskMgmtInstance
extends ModuleInstance

process instance extension for managing tasks on a process instance.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbpm.module.exe.ModuleInstance
processInstance
 
Constructor Summary
TaskMgmtInstance()
           
TaskMgmtInstance(TaskMgmtDefinition taskMgmtDefinition)
           
 
Method Summary
 void addSwimlaneInstance(SwimlaneInstance swimlaneInstance)
           
 void addTaskInstance(TaskInstance taskInstance)
           
 TaskInstance createStartTaskInstance()
          creates a task instance on the rootToken, and assigns it to the currently authenticated user.
 TaskInstance createTaskInstance()
           
 TaskInstance createTaskInstance(Task task)
           
 TaskInstance createTaskInstance(Task task, ExecutionContext executionContext)
          creates a new task instance on the given task, in the given execution context.
 TaskInstance createTaskInstance(Task task, Token token)
          creates a new task instance on the given token, for the given task.
 TaskInstance createTaskInstance(Token token)
           
 SwimlaneInstance getInitializedSwimlaneInstance(ExecutionContext executionContext, Swimlane swimlane)
           
 java.util.Collection getSignallingTasks(ExecutionContext executionContext)
          is the collection of TaskInstances for the given token that can trigger the token to continue.
 SwimlaneInstance getSwimlaneInstance(java.lang.String swimlaneName)
           
 java.util.Map getSwimlaneInstances()
           
static java.lang.Class getTaskInstanceClass()
           
 java.util.Collection getTaskInstances()
          returns all the taskInstances for the this process instance.
 TaskMgmtDefinition getTaskMgmtDefinition()
           
 java.util.Collection getUnfinishedTasks(Token token)
          is the collection of TaskInstances on the given token that are not ended.
 boolean hasBlockingTaskInstances(Token token)
          is true if the given token has task instances that keep the token from leaving the current node.
 boolean hasSignallingTasks(ExecutionContext executionContext)
          is true if there are TaskInstances on the given token that can trigger the token to continue.
 boolean hasUnfinishedTasks(Token token)
          is true if the given token has task instances that are not yet ended.
 void invokeAssignmentHandler(Delegation assignmentDelegation, Assignable assignable, ExecutionContext executionContext)
           
 void removeTaskInstance(TaskInstance taskInstance)
           
 
Methods inherited from class org.jbpm.module.exe.ModuleInstance
getId, getProcessInstance, setProcessInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskMgmtInstance

public TaskMgmtInstance()

TaskMgmtInstance

public TaskMgmtInstance(TaskMgmtDefinition taskMgmtDefinition)
Method Detail

getTaskInstanceClass

public static java.lang.Class getTaskInstanceClass()

createTaskInstance

public TaskInstance createTaskInstance()

createTaskInstance

public TaskInstance createTaskInstance(Task task)

createTaskInstance

public TaskInstance createTaskInstance(Token token)

createTaskInstance

public TaskInstance createTaskInstance(Task task,
                                       Token token)
creates a new task instance on the given token, for the given task.


createTaskInstance

public TaskInstance createTaskInstance(Task task,
                                       ExecutionContext executionContext)
creates a new task instance on the given task, in the given execution context.


getInitializedSwimlaneInstance

public SwimlaneInstance getInitializedSwimlaneInstance(ExecutionContext executionContext,
                                                       Swimlane swimlane)

invokeAssignmentHandler

public void invokeAssignmentHandler(Delegation assignmentDelegation,
                                    Assignable assignable,
                                    ExecutionContext executionContext)

createStartTaskInstance

public TaskInstance createStartTaskInstance()
creates a task instance on the rootToken, and assigns it to the currently authenticated user.


hasBlockingTaskInstances

public boolean hasBlockingTaskInstances(Token token)
is true if the given token has task instances that keep the token from leaving the current node.


hasUnfinishedTasks

public boolean hasUnfinishedTasks(Token token)
is true if the given token has task instances that are not yet ended.


getUnfinishedTasks

public java.util.Collection getUnfinishedTasks(Token token)
is the collection of TaskInstances on the given token that are not ended.


hasSignallingTasks

public boolean hasSignallingTasks(ExecutionContext executionContext)
is true if there are TaskInstances on the given token that can trigger the token to continue.


getSignallingTasks

public java.util.Collection getSignallingTasks(ExecutionContext executionContext)
is the collection of TaskInstances for the given token that can trigger the token to continue.


getTaskInstances

public java.util.Collection getTaskInstances()
returns all the taskInstances for the this process instance. This includes task instances that have been completed previously.


addTaskInstance

public void addTaskInstance(TaskInstance taskInstance)

removeTaskInstance

public void removeTaskInstance(TaskInstance taskInstance)

getSwimlaneInstances

public java.util.Map getSwimlaneInstances()

addSwimlaneInstance

public void addSwimlaneInstance(SwimlaneInstance swimlaneInstance)

getSwimlaneInstance

public SwimlaneInstance getSwimlaneInstance(java.lang.String swimlaneName)

getTaskMgmtDefinition

public TaskMgmtDefinition getTaskMgmtDefinition()


Version : jbpm-3.0.4