org.jbpm.pvm.internal.task
Class TaskImpl
java.lang.Object
org.jbpm.pvm.internal.model.ScopeInstanceImpl
org.jbpm.pvm.internal.task.TaskImpl
- All Implemented Interfaces:
- java.io.Serializable, Assignable, Task, OpenTask
public class TaskImpl
- extends ScopeInstanceImpl
- implements OpenTask, Assignable
is one task instance that can be assigned to an actor (read: put in someone's task list) and that
can trigger the continuation of execution of the token upon completion.
- Author:
- Tom Baeyens, Ronald van Kuijk
- See Also:
- Serialized Form
| Methods inherited from class org.jbpm.pvm.internal.model.ScopeInstanceImpl |
createTimer, createTimer, createVariable, createVariable, createVariableObject, destroyTimers, getDbid, getElContext, getState, getTimerExecution, getVariable, getVariableKeys, getVariableObject, getVariables, hasVariable, hasVariables, initializeTimers, initializeVariables, isActive, isSuspended, newTimer, removeVariable, removeVariables, resume, setElContext, setState, setVariable, setVariables, suspend |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isNew
protected boolean isNew
name
protected java.lang.String name
description
protected java.lang.String description
assignee
protected java.lang.String assignee
participations
protected java.util.Set<ParticipationImpl> participations
formResourceName
protected java.lang.String formResourceName
createTime
protected java.util.Date createTime
duedate
protected java.util.Date duedate
progress
protected java.lang.Integer progress
isSignalling
protected boolean isSignalling
priority
protected int priority
taskDefinitionName
protected java.lang.String taskDefinitionName
taskDefinition
protected TaskDefinitionImpl taskDefinition
execution
protected ExecutionImpl execution
processInstance
protected ExecutionImpl processInstance
executionId
protected java.lang.String executionId
activityName
protected java.lang.String activityName
swimlane
protected SwimlaneImpl swimlane
superTask
protected TaskImpl superTask
subTasks
protected java.util.Set<TaskImpl> subTasks
executionDbid
protected java.lang.Long executionDbid
superTaskDbid
protected java.lang.Long superTaskDbid
TaskImpl
public TaskImpl()
getParentVariableScope
public ScopeInstanceImpl getParentVariableScope()
- Overrides:
getParentVariableScope in class ScopeInstanceImpl
getTask
public TaskImpl getTask()
- Overrides:
getTask in class ScopeInstanceImpl
take
public void take(java.lang.String userId)
setAssignee
public void setAssignee(java.lang.String userId)
- Specified by:
setAssignee in interface Assignable- Specified by:
setAssignee in interface Task
setAssignee
public void setAssignee(java.lang.String assignee,
boolean propagateToSwimlane)
propagateAssigneeToSwimlane
protected void propagateAssigneeToSwimlane()
getParticipations
public java.util.Set<ParticipationImpl> getParticipations()
getAllParticipants
public java.util.Set<ParticipationImpl> getAllParticipants()
addCandidateGroup
public void addCandidateGroup(java.lang.String groupId)
- Specified by:
addCandidateGroup in interface Assignable
addCandidateUser
public void addCandidateUser(java.lang.String userId)
- Specified by:
addCandidateUser in interface Assignable
addParticipation
public Participation addParticipation(java.lang.String userId,
java.lang.String groupId,
java.lang.String type)
removeParticipant
public void removeParticipant(ParticipationImpl participation)
complete
public void complete()
complete
public void complete(java.lang.String outcome)
subTaskComplete
protected void subTaskComplete(TaskImpl subTask,
java.lang.String outcome)
delete
public void delete(java.lang.String reason)
- Specified by:
delete in interface OpenTask
skip
public void skip(java.lang.String outcome)
isCompleted
public boolean isCompleted()
getSubTasks
public java.util.Set<Task> getSubTasks()
createSubTask
public TaskImpl createSubTask()
- Specified by:
createSubTask in interface OpenTask
createSubTask
public TaskImpl createSubTask(java.lang.String name)
- Specified by:
createSubTask in interface OpenTask
addSubTask
public TaskImpl addSubTask(TaskImpl subtask)
removeSubTask
public void removeSubTask(Task subtask)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getLifeCycleResource
public java.lang.String getLifeCycleResource()
setProgress
public void setProgress(java.lang.Integer progress)
- Specified by:
setProgress in interface Task
cancelExecution
public void cancelExecution(java.lang.String signal)
historyTaskDelete
public void historyTaskDelete(java.lang.String reason)
historyTaskComplete
public void historyTaskComplete(java.lang.String outcome)
historyTaskSkip
public void historyTaskSkip(java.lang.String outcome)
signalExecution
public void signalExecution(java.lang.String signalName)
getTaskDefinition
public TaskDefinitionImpl getTaskDefinition()
getId
public java.lang.String getId()
- Specified by:
getId in interface Task
setTaskDefinition
public void setTaskDefinition(TaskDefinitionImpl taskDefinition)
setExecution
public void setExecution(ExecutionImpl execution)
getName
public java.lang.String getName()
- Specified by:
getName in interface Task
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface Task
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface Task
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription in interface Task
getPriority
public int getPriority()
- Specified by:
getPriority in interface Task
setPriority
public void setPriority(int priority)
- Specified by:
setPriority in interface Task
getCreateTime
public java.util.Date getCreateTime()
- Specified by:
getCreateTime in interface Task
setCreateTime
public void setCreateTime(java.util.Date create)
getDuedate
public java.util.Date getDuedate()
- Specified by:
getDuedate in interface Task
setDuedate
public void setDuedate(java.util.Date duedate)
- Specified by:
setDuedate in interface Task
getExecution
public ExecutionImpl getExecution()
- Specified by:
getExecution in interface OpenTask- Overrides:
getExecution in class ScopeInstanceImpl
setExecution
public void setExecution(Execution execution)
getAssignee
public java.lang.String getAssignee()
- Specified by:
getAssignee in interface Task
getSwimlane
public Swimlane getSwimlane()
setSwimlane
public void setSwimlane(SwimlaneImpl swimlane)
getSuperTask
public TaskImpl getSuperTask()
setSuperTask
public void setSuperTask(TaskImpl superTask)
getProgress
public java.lang.Integer getProgress()
- Specified by:
getProgress in interface Task
getExecutionDbid
public java.lang.Long getExecutionDbid()
setExecutionDbid
public void setExecutionDbid(java.lang.Long executionDbid)
getSuperTaskDbid
public java.lang.Long getSuperTaskDbid()
setSuperTaskDbid
public void setSuperTaskDbid(java.lang.Long parentTaskDbid)
setParticipations
public void setParticipations(java.util.Set<ParticipationImpl> participations)
getExecutionId
public java.lang.String getExecutionId()
- Specified by:
getExecutionId in interface Task
getActivityName
public java.lang.String getActivityName()
- Specified by:
getActivityName in interface Task
setActivityName
public void setActivityName(java.lang.String activityName)
setSubTasks
public void setSubTasks(java.util.Set<TaskImpl> subTasks)
getProcessInstance
public ExecutionImpl getProcessInstance()
setProcessInstance
public void setProcessInstance(ExecutionImpl processInstance)
isSignalling
public boolean isSignalling()
- Specified by:
isSignalling in interface OpenTask
setSignalling
public void setSignalling(boolean isSignalling)
- Specified by:
setSignalling in interface OpenTask
getFormResourceName
public java.lang.String getFormResourceName()
- Specified by:
getFormResourceName in interface Task
setFormResourceName
public void setFormResourceName(java.lang.String form)
isNew
public boolean isNew()
setNew
public void setNew(boolean isNew)
setDbid
public void setDbid(long dbid)
Copyright © 2010 JBoss Community. All Rights Reserved.