Class TaskImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.task.AbstractTaskImpl
-
- org.silverpeas.core.workflow.engine.task.TaskImpl
-
- All Implemented Interfaces:
Task
public class TaskImpl extends AbstractTaskImpl
A task object is an activity description built by the workflow engine and sent via the taskManager to an external system which will notify the end user and manage the task realisation. Task objects will be created by the workflow engine when a new task is assigned to a user. Task objects will be created too for the ProcessManager GUI which will be used by the user to do the assigned activity.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getActionNames()
Returns the action names list from which the user must choose to resolve the activity.HistoryStep[]
getBackSteps()
Returns the history steps that user can discussed (ask a question to the actor of that step).Question[]
getPendingQuestions()
Returns the questions that must be answeredProcessInstance
getProcessInstance()
Returns the process instance.Question[]
getRelevantQuestions()
Returns the (non onsolete) questions that have been answeredQuestion[]
getSentQuestions()
Returns the question that have been asked and are waiting for a responseState
getState()
Returns the state to be resolved by the user.void
setProcessInstance(ProcessInstance processInstance)
Set process instance associated with task-
Methods inherited from class org.silverpeas.core.workflow.engine.task.AbstractTaskImpl
buildQuestionEvent, buildResponseEvent, buildTaskDoneEvent, buildTaskSavedEvent, getGroupId, getProcessModel, getUser, getUserRoleName
-
-
-
-
Method Detail
-
setProcessInstance
public void setProcessInstance(ProcessInstance processInstance)
Description copied from interface:Task
Set process instance associated with task
-
getProcessInstance
public ProcessInstance getProcessInstance()
Returns the process instance.
-
getState
public State getState()
Returns the state to be resolved by the user.
-
getBackSteps
public HistoryStep[] getBackSteps()
Returns the history steps that user can discussed (ask a question to the actor of that step).
-
getPendingQuestions
public Question[] getPendingQuestions()
Returns the questions that must be answered
-
getRelevantQuestions
public Question[] getRelevantQuestions()
Returns the (non onsolete) questions that have been answered
-
getSentQuestions
public Question[] getSentQuestions()
Returns the question that have been asked and are waiting for a response
-
getActionNames
public String[] getActionNames()
Returns the action names list from which the user must choose to resolve the activity.
-
-