com.silverpeas.workflow.engine.task
Class TaskImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.task.AbstractTaskImpl
      extended by com.silverpeas.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.


Constructor Summary
TaskImpl(User user, String roleName, ProcessInstance processInstance, State state)
          Builds a TaskImpl.
TaskImpl(User user, String roleName, ProcessInstance processInstance, State state, HistoryStep[] backSteps, Question[] sentQuestions, Question[] relevantQuestions, Question[] pendingQuestions)
          Builds a TaskImpl.
TaskImpl(User user, String roleName, String groupId, ProcessInstance processInstance, State state)
           
 
Method Summary
 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 answered
 ProcessInstance getProcessInstance()
          Returns the process instance.
 Question[] getRelevantQuestions()
          Returns the (non onsolete) questions that have been answered
 Question[] getSentQuestions()
          Returns the question that have been asked and are waiting for a response
 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

TaskImpl

public TaskImpl(User user,
                String roleName,
                ProcessInstance processInstance,
                State state)
         throws WorkflowException
Builds a TaskImpl.

Throws:
WorkflowException

TaskImpl

public TaskImpl(User user,
                String roleName,
                String groupId,
                ProcessInstance processInstance,
                State state)
         throws WorkflowException
Throws:
WorkflowException

TaskImpl

public TaskImpl(User user,
                String roleName,
                ProcessInstance processInstance,
                State state,
                HistoryStep[] backSteps,
                Question[] sentQuestions,
                Question[] relevantQuestions,
                Question[] pendingQuestions)
         throws WorkflowException
Builds a TaskImpl.

Throws:
WorkflowException
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.



Copyright © 2016 Silverpeas. All Rights Reserved.