com.silverpeas.workflow.engine.task
Class CreationTaskImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.task.AbstractTaskImpl
      extended by com.silverpeas.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
CreationTaskImpl(User user, String roleName, ProcessModel processModel)
          Builds a CreationTaskImpl.
 
Method Summary
 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 com.silverpeas.workflow.engine.task.AbstractTaskImpl
buildQuestionEvent, buildResponseEvent, buildTaskDoneEvent, buildTaskSavedEvent, getGroupId, getProcessModel, getUser, getUserRoleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2016 Silverpeas. All Rights Reserved.