org.jbpm.taskmgmt.def
Class Task

java.lang.Object
  extended by org.jbpm.graph.def.GraphElement
      extended by org.jbpm.taskmgmt.def.Task
All Implemented Interfaces:
Serializable, Identifiable

public class Task
extends GraphElement

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

See Also:
Serialized Form

Field Summary
protected  String actorIdExpression
           
protected  Delegation assignmentDelegation
           
protected  String condition
           
protected  String dueDate
           
protected  boolean isBlocking
           
protected  boolean isSignalling
           
protected  String pooledActorsExpression
           
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
description, events, exceptionHandlers, name, processDefinition
 
Constructor Summary
Task()
           
Task(String name)
           
 
Method Summary
 String getActorIdExpression()
           
 Delegation getAssignmentDelegation()
           
 String getCondition()
           
 String getDueDate()
           
 GraphElement getParent()
           
 String getPooledActorsExpression()
           
 int getPriority()
           
 StartState getStartState()
           
 String[] getSupportedEventTypes()
          indicative set of event types supported by this graph element.
 Swimlane getSwimlane()
           
 TaskController getTaskController()
           
 TaskMgmtDefinition getTaskMgmtDefinition()
           
 TaskNode getTaskNode()
           
 boolean isBlocking()
           
 boolean isSignalling()
           
static int parsePriority(String priorityText)
           
 void setActorIdExpression(String actorIdExpression)
          sets the actor expression.
 void setAssignmentDelegation(Delegation assignmentDelegation)
          sets the swimlane.
 void setBlocking(boolean isBlocking)
           
 void setCondition(String condition)
           
 void setDueDate(String duedate)
           
 void setPooledActorsExpression(String pooledActorsExpression)
          sets the pooled actors expression.
 void setPriority(int priority)
           
 void setSignalling(boolean isSignalling)
           
 void setStartState(StartState startState)
           
 void setSwimlane(Swimlane swimlane)
          sets the swimlane unidirectionally.
 void setTaskController(TaskController taskController)
           
 void setTaskMgmtDefinition(TaskMgmtDefinition taskMgmtDefinition)
          sets the task management definition unidirectionally.
 void setTaskNode(TaskNode taskNode)
          sets the task node unidirectionally.
 
Methods inherited from class org.jbpm.graph.def.GraphElement
addEvent, addExceptionHandler, createAsyncActionExecutionJob, equals, executeAction, findExceptionHandler, fireAndPropagateEvent, fireEvent, getDescription, getEvent, getEvents, getExceptionHandlers, getId, getName, getParentChain, getParents, getProcessDefinition, hasEvent, hasEvents, hashCode, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setDescription, setName, setProcessDefinition, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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

isBlocking

protected boolean isBlocking

isSignalling

protected boolean isSignalling

condition

protected String condition

dueDate

protected String dueDate

priority

protected int priority

taskNode

protected TaskNode taskNode

startState

protected StartState startState

taskMgmtDefinition

protected TaskMgmtDefinition taskMgmtDefinition

swimlane

protected Swimlane swimlane

actorIdExpression

protected String actorIdExpression

pooledActorsExpression

protected String pooledActorsExpression

assignmentDelegation

protected Delegation assignmentDelegation

taskController

protected TaskController taskController
Constructor Detail

Task

public Task()

Task

public Task(String name)
Method Detail

parsePriority

public static int parsePriority(String priorityText)

getSupportedEventTypes

public 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 constraints on the event-types.

Specified by:
getSupportedEventTypes in class GraphElement

setTaskNode

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


setTaskMgmtDefinition

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


setAssignmentDelegation

public void setAssignmentDelegation(Delegation assignmentDelegation)
sets the swimlane. Since a task can have either a swimlane, an assignment handler or an assignment expression, this method removes the other forms of assignment.


setActorIdExpression

public void setActorIdExpression(String actorIdExpression)
sets the actor expression. The given expression is a JSF-like expression that returns the actor. Since a task can have either a swimlane, an assignment handler or an assignment expression, this method removes the other forms of assignment.


setPooledActorsExpression

public void setPooledActorsExpression(String pooledActorsExpression)
sets the pooled actors expression. The given expression is a JSF-like expression that returns the pooled actors. Since a task can have either a swimlane, an assignment handler or an assignment expression, this method removes the other forms of assignment.


setSwimlane

public void setSwimlane(Swimlane swimlane)
sets the swimlane unidirectionally. To create a bidirectional relation, use Swimlane.addTask(Task). Since a task can have either a swimlane, an assignment handler or an assignment expression, this method removes other forms of assignment.


getParent

public GraphElement getParent()
Overrides:
getParent in class GraphElement

getTaskMgmtDefinition

public TaskMgmtDefinition getTaskMgmtDefinition()

getSwimlane

public Swimlane getSwimlane()

isBlocking

public boolean isBlocking()

setBlocking

public void setBlocking(boolean isBlocking)

getTaskNode

public TaskNode getTaskNode()

getActorIdExpression

public String getActorIdExpression()

getPooledActorsExpression

public String getPooledActorsExpression()

getAssignmentDelegation

public Delegation getAssignmentDelegation()

getDueDate

public String getDueDate()

setDueDate

public void setDueDate(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)

isSignalling

public boolean isSignalling()

setSignalling

public void setSignalling(boolean isSignalling)

getCondition

public String getCondition()

setCondition

public void setCondition(String condition)


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.