|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.context.exe.VariableContainer org.jbpm.taskmgmt.exe.TaskInstance
public class TaskInstance
is one task instance that can be assigned to an actor (read: put in someones task list) and that can trigger the coninuation of execution of the token upon completion.
Field Summary | |
---|---|
protected java.lang.String |
actorId
|
protected java.util.List |
comments
|
protected java.util.Date |
create
|
protected java.lang.String |
description
|
protected java.util.Date |
dueDate
|
protected java.util.Date |
end
|
protected boolean |
isBlocking
|
protected boolean |
isCancelled
|
protected boolean |
isOpen
|
protected boolean |
isSignalling
|
protected boolean |
isSuspended
|
protected java.lang.String |
name
|
protected java.util.Set |
pooledActors
|
protected java.lang.String |
previousActorId
|
protected int |
priority
|
protected java.util.Date |
start
|
protected SwimlaneInstance |
swimlaneInstance
|
protected Task |
task
|
protected TaskMgmtInstance |
taskMgmtInstance
|
protected Token |
token
|
Fields inherited from class org.jbpm.context.exe.VariableContainer |
---|
variableInstances |
Constructor Summary | |
---|---|
TaskInstance()
|
|
TaskInstance(java.lang.String taskName)
|
|
TaskInstance(java.lang.String taskName,
java.lang.String actorId)
|
Method Summary | |
---|---|
void |
addComment(Comment comment)
|
void |
addComment(java.lang.String message)
|
void |
assign(ExecutionContext executionContext)
|
void |
cancel()
cancels this task. |
void |
copySwimlaneInstanceAssignment(SwimlaneInstance swimlaneInstance)
copies the assignment (that includes both the swimlaneActorId and the set of pooledActors) of the given swimlane into this taskInstance. |
void |
create()
|
void |
create(ExecutionContext executionContext)
|
void |
end()
marks this task as done. |
void |
end(java.lang.String transitionName)
marks this task as done and specifies the name of a transition leaving the task-node for the case that the completion of this task instances triggers a signal on the token. |
void |
end(Transition transition)
marks this task as done and specifies a transition leaving the task-node for the case that the completion of this task instances triggers a signal on the token. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getActorId()
|
java.util.List |
getAvailableTransitions()
is the list of transitions that can be used in the end method and it is null in case this is not the last task instance. |
java.util.List |
getComments()
|
java.util.Date |
getCreate()
|
java.lang.String |
getDescription()
|
java.util.Date |
getDueDate()
|
java.util.Date |
getEnd()
|
long |
getId()
|
java.lang.String |
getName()
|
protected VariableContainer |
getParentVariableContainer()
|
java.util.Set |
getPooledActors()
gets the pool of actors for this task instance. |
java.lang.String |
getPreviousActorId()
|
int |
getPriority()
|
java.util.Date |
getStart()
|
SwimlaneInstance |
getSwimlaneInstance()
|
Task |
getTask()
|
TaskMgmtInstance |
getTaskMgmtInstance()
|
Token |
getToken()
|
boolean |
hasEnded()
|
boolean |
isBlocking()
|
boolean |
isCancelled()
|
boolean |
isLast()
|
boolean |
isOpen()
|
boolean |
isSignalling()
|
boolean |
isStartTaskInstance()
|
void |
resume()
resumes a process execution. |
void |
setActorId(java.lang.String actorId)
(re)assign this task to the given actor. |
void |
setActorId(java.lang.String actorId,
boolean overwriteSwimlane)
(re)assign this task to the given actor. |
void |
setBlocking(boolean isBlocking)
|
void |
setCreate(java.util.Date create)
|
void |
setDescription(java.lang.String description)
|
void |
setDueDate(java.util.Date dueDate)
|
void |
setEnd(java.util.Date end)
|
void |
setId(long id)
|
void |
setName(java.lang.String name)
|
void |
setPooledActors(java.util.Set pooledActors)
|
void |
setPooledActors(java.lang.String[] actorIds)
sets the resource pool for this assignable as a set of PooledActor s. |
void |
setPriority(int priority)
|
void |
setSignalling(boolean isSignalling)
|
void |
setSwimlaneInstance(SwimlaneInstance swimlaneInstance)
|
void |
setTask(Task task)
|
void |
setTaskMgmtInstance(TaskMgmtInstance taskMgmtInstance)
|
void |
setToken(Token token)
|
void |
start()
can optionally be used to indicate that the actor is starting to work on this task instance. |
void |
start(java.lang.String actorId)
convenience method that combines a setActorId(String) and
a start() . |
void |
start(java.lang.String actorId,
boolean overwriteSwimlane)
convenience method that combines a setActorId(String,boolean) and
a start() . |
void |
suspend()
suspends a process execution. |
java.lang.String |
toString()
|
Methods inherited from class org.jbpm.context.exe.VariableContainer |
---|
addVariableInstance, addVariables, deleteVariable, deleteVariableInstance, deleteVariableLocally, getContextInstance, getUpdatedVariableContainers, getVariable, getVariableInstance, getVariableInstances, getVariableLocally, getVariables, getVariablesLocally, hasVariable, hasVariableLocally, setVariable, setVariableLocally |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String description
protected java.lang.String actorId
protected java.util.Date create
protected java.util.Date start
protected java.util.Date end
protected java.util.Date dueDate
protected int priority
protected boolean isCancelled
protected boolean isSuspended
protected boolean isOpen
protected boolean isSignalling
protected boolean isBlocking
protected Task task
protected Token token
protected SwimlaneInstance swimlaneInstance
protected TaskMgmtInstance taskMgmtInstance
protected java.util.Set pooledActors
protected java.util.List comments
protected java.lang.String previousActorId
Constructor Detail |
---|
public TaskInstance()
public TaskInstance(java.lang.String taskName)
public TaskInstance(java.lang.String taskName, java.lang.String actorId)
Method Detail |
---|
public void setTask(Task task)
public void create()
public void create(ExecutionContext executionContext)
public void assign(ExecutionContext executionContext)
public boolean isStartTaskInstance()
public void copySwimlaneInstanceAssignment(SwimlaneInstance swimlaneInstance)
public java.util.Set getPooledActors()
public void setActorId(java.lang.String actorId)
setActorId
in interface Assignable
public void setActorId(java.lang.String actorId, boolean overwriteSwimlane)
actorId
- is reference to the person that is assigned to this task.overwriteSwimlane
- specifies if the related swimlane
should be overwritten with the given swimlaneActorId.public void setPooledActors(java.lang.String[] actorIds)
Assignable
PooledActor
s.
Use this method to offer the task to a group of users. Each user in the group
can then take the task by calling the Assignable.setActorId(String)
.
setPooledActors
in interface Assignable
public void start()
public void start(java.lang.String actorId)
setActorId(String)
and
a start()
.
public void start(java.lang.String actorId, boolean overwriteSwimlane)
setActorId(String,boolean)
and
a start()
.
public void cancel()
public void end()
end(Transition)
public void end(java.lang.String transitionName)
public void end(Transition transition)
public boolean hasEnded()
public void suspend()
public void resume()
public void addComment(java.lang.String message)
public void addComment(Comment comment)
public java.util.List getComments()
public boolean isLast()
public java.util.List getAvailableTransitions()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void setPooledActors(java.util.Set pooledActors)
protected VariableContainer getParentVariableContainer()
getParentVariableContainer
in class VariableContainer
public java.lang.String getActorId()
public java.util.Date getDueDate()
public void setDueDate(java.util.Date dueDate)
public java.util.Date getEnd()
public void setEnd(java.util.Date end)
public void setCreate(java.util.Date create)
public long getId()
public void setId(long id)
public java.util.Date getStart()
public TaskMgmtInstance getTaskMgmtInstance()
public void setTaskMgmtInstance(TaskMgmtInstance taskMgmtInstance)
public Token getToken()
getToken
in class VariableContainer
public void setToken(Token token)
public void setSignalling(boolean isSignalling)
public boolean isSignalling()
public boolean isCancelled()
public java.lang.String getName()
public void setName(java.lang.String name)
public boolean isBlocking()
public void setBlocking(boolean isBlocking)
public java.util.Date getCreate()
public Task getTask()
public SwimlaneInstance getSwimlaneInstance()
public void setSwimlaneInstance(SwimlaneInstance swimlaneInstance)
public java.lang.String getPreviousActorId()
public int getPriority()
public void setPriority(int priority)
public boolean isOpen()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |