Class CreationTaskImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.task.AbstractTaskImpl
-
- org.silverpeas.core.workflow.engine.task.CreationTaskImpl
-
- All Implemented Interfaces:
Task
public class CreationTaskImpl extends AbstractTaskImpl
A creation task is the first task of a creation instance.
-
-
Constructor Summary
Constructors Constructor Description CreationTaskImpl(User user, String roleName, ProcessModel processModel)
Builds a CreationTaskImpl.
-
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()
no back action possible, return null.Question[]
getPendingQuestions()
no question possible, return null.ProcessInstance
getProcessInstance()
Returns the process instance.Question[]
getRelevantQuestions()
no question possible, return null.Question[]
getSentQuestions()
no question possible, return null.State
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
-
-
-
-
Constructor Detail
-
CreationTaskImpl
public CreationTaskImpl(User user, String roleName, ProcessModel processModel) throws WorkflowException
Builds a CreationTaskImpl.- Throws:
WorkflowException
-
-
Method Detail
-
getProcessInstance
public ProcessInstance getProcessInstance()
Description copied from interface:Task
Returns the process instance. The id of this workflow internal information must be stored by the external system to be sent to the workflow engine when the activity is done.
-
setProcessInstance
public void setProcessInstance(ProcessInstance processInstance)
Description copied from interface:Task
Set process instance associated with task
-
getState
public State getState()
Returns the state to be resolved by the user.
-
getActionNames
public String[] getActionNames()
Returns the action names list from which the user must choose to resolve the activity.
-
getBackSteps
public HistoryStep[] getBackSteps()
no back action possible, return null.
-
getPendingQuestions
public Question[] getPendingQuestions()
no question possible, return null.
-
getSentQuestions
public Question[] getSentQuestions()
no question possible, return null.
-
getRelevantQuestions
public Question[] getRelevantQuestions()
no question possible, return null.
-
-