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

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


org.jbpm.taskmgmt.def
Class Task

java.lang.Object
  extended byorg.jbpm.graph.def.GraphElement
      extended byorg.jbpm.taskmgmt.def.Task
All Implemented Interfaces:
java.io.Serializable

public class Task
extends GraphElement

defines a task and how the actor must be calculated at runtime.

See Also:
Serialized Form

Field Summary
protected  Delegation assignmentDelegation
           
protected  java.lang.String description
           
protected  java.lang.String dueDate
           
protected  boolean isBlocking
           
protected  int priority
           
static int PRIORITY_HIGH
           
static int PRIORITY_HIGHEST
           
static int PRIORITY_LOW
           
static int PRIORITY_LOWEST
           
static int PRIORITY_NORMAL
           
protected  StartState startState
           
protected  Swimlane swimlane
           
protected  TaskController taskController
           
protected  TaskMgmtDefinition taskMgmtDefinition
           
protected  TaskNode taskNode
           
 
Fields inherited from class org.jbpm.graph.def.GraphElement
events, exceptionHandlers, name, processDefinition
 
Constructor Summary
Task()
           
Task(java.lang.String name)
           
 
Method Summary
 Delegation getAssignmentDelegation()
           
 java.lang.String getDescription()
           
 java.lang.String getDueDate()
           
 GraphElement getParent()
           
 int getPriority()
           
 StartState getStartState()
           
 java.lang.String[] getSupportedEventTypes()
          indicative set of event types supported by this graph element.
 Swimlane getSwimlane()
           
 TaskController getTaskController()
           
 TaskMgmtDefinition getTaskMgmtDefinition()
           
 TaskNode getTaskNode()
           
 boolean isBlocking()
           
static int parsePriority(java.lang.String priorityText)
           
 void setAssignmentDelegation(Delegation assignmentDelegation)
          sets the swimlane.
 void setBlocking(boolean isBlocking)
           
 void setDescription(java.lang.String description)
           
 void setDueDate(java.lang.String duedate)
           
 void setPriority(int priority)
           
 void setStartState(StartState startState)
           
 void setSwimlane(Swimlane swimlane)
          sets the swimlane unidirectionally.
 void setTaskController(TaskController taskController)
           
 void setTaskMgmtDefinition(TaskMgmtDefinition taskMgmtDefinition)
          sets the taskMgmtDefinition unidirectionally.
 void setTaskNode(TaskNode taskNode)
          sets the taskNode unidirectionally.
 
Methods inherited from class org.jbpm.graph.def.GraphElement
addEvent, addExceptionHandler, findExceptionHandler, fireAndPropagateEvent, fireEvent, getEvent, getEvents, getExceptionHandlers, getId, getName, getParentChain, getParents, getProcessDefinition, hasEvent, hasEvents, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setName, setProcessDefinition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIORITY_HIGHEST

public static final int PRIORITY_HIGHEST
See Also:
Constant Field Values

PRIORITY_HIGH

public static final int PRIORITY_HIGH
See Also:
Constant Field Values

PRIORITY_NORMAL

public static final int PRIORITY_NORMAL
See Also:
Constant Field Values

PRIORITY_LOW

public static final int PRIORITY_LOW
See Also:
Constant Field Values

PRIORITY_LOWEST

public static final int PRIORITY_LOWEST
See Also:
Constant Field Values

description

protected java.lang.String description

isBlocking

protected boolean isBlocking

dueDate

protected java.lang.String dueDate

priority

protected int priority

taskNode

protected TaskNode taskNode

startState

protected StartState startState

taskMgmtDefinition

protected TaskMgmtDefinition taskMgmtDefinition

swimlane

protected Swimlane swimlane

assignmentDelegation

protected Delegation assignmentDelegation

taskController

protected TaskController taskController
Constructor Detail

Task

public Task()

Task

public Task(java.lang.String name)
Method Detail

parsePriority

public static int parsePriority(java.lang.String priorityText)

getSupportedEventTypes

public java.lang.String[] getSupportedEventTypes()
Description copied from class: GraphElement
indicative set of event types supported by this graph element. this is currently only used by the process designer to know which event types to show on a given graph element. in process definitions and at runtime, there are no contstraints on the event-types.

Specified by:
getSupportedEventTypes in class GraphElement

setSwimlane

public void setSwimlane(Swimlane swimlane)
sets the swimlane unidirectionally. Since a task can have max one of swimlane or assignmentHandler, this method removes the assignmentHandler if it is set. To create a bidirectional relation, use Swimlane.addTask(Task).


setTaskNode

public void setTaskNode(TaskNode taskNode)
sets the taskNode unidirectionally. use TaskNode.addTask(Task) to create a bidirectional relation.


setTaskMgmtDefinition

public void setTaskMgmtDefinition(TaskMgmtDefinition taskMgmtDefinition)
sets the taskMgmtDefinition unidirectionally. use TaskMgmtDefinition.addTask to create a bidirectional relation.


setAssignmentDelegation

public void setAssignmentDelegation(Delegation assignmentDelegation)
sets the swimlane. Since a task can have max one of swimlane or assignmentHandler, this method removes the swimlane if it is set.


getParent

public GraphElement getParent()
Overrides:
getParent in class GraphElement

getTaskMgmtDefinition

public TaskMgmtDefinition getTaskMgmtDefinition()

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getSwimlane

public Swimlane getSwimlane()

isBlocking

public boolean isBlocking()

setBlocking

public void setBlocking(boolean isBlocking)

getTaskNode

public TaskNode getTaskNode()

getAssignmentDelegation

public Delegation getAssignmentDelegation()

getDueDate

public java.lang.String getDueDate()

setDueDate

public void setDueDate(java.lang.String duedate)

getTaskController

public TaskController getTaskController()

setTaskController

public void setTaskController(TaskController taskController)

getPriority

public int getPriority()

setPriority

public void setPriority(int priority)

getStartState

public StartState getStartState()

setStartState

public void setStartState(StartState startState)


Version : jbpm-3.0.4