com.silverpeas.workflow.engine.task
Class AbstractTaskImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.task.AbstractTaskImpl
All Implemented Interfaces:
Task
Direct Known Subclasses:
CreationTaskImpl, TaskImpl

public abstract class AbstractTaskImpl
extends Object
implements Task

AbstractTaskImpl implements methods shared by TaskImpl ans CreateTaskImpl.


Constructor Summary
AbstractTaskImpl(User user, String roleName, ProcessModel processModel)
          Builds a TaskImpl.
AbstractTaskImpl(User user, String roleName, String groupId, ProcessModel processModel)
           
 
Method Summary
 QuestionEvent buildQuestionEvent(String stepId, DataRecord data)
          Builds a QuestionEvent from this Task.
 ResponseEvent buildResponseEvent(String questionId, DataRecord data)
          Builds a ResponseEvent from this Task.
 TaskDoneEvent buildTaskDoneEvent(String actionName, DataRecord data)
          Builds a TaskDoneEvent from this Task.
 TaskSavedEvent buildTaskSavedEvent(String actionName, DataRecord data)
          Builds a TaskSavedEvent from this Task.
 String getGroupId()
           
 ProcessModel getProcessModel()
          Returns the process model.
 User getUser()
          Returns the user.
 String getUserRoleName()
          Returns the name of the role which gived the responsability of this task to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.silverpeas.workflow.api.task.Task
getActionNames, getBackSteps, getPendingQuestions, getProcessInstance, getRelevantQuestions, getSentQuestions, getState, setProcessInstance
 

Constructor Detail

AbstractTaskImpl

public AbstractTaskImpl(User user,
                        String roleName,
                        ProcessModel processModel)
Builds a TaskImpl.


AbstractTaskImpl

public AbstractTaskImpl(User user,
                        String roleName,
                        String groupId,
                        ProcessModel processModel)
Method Detail

getUser

public User getUser()
Returns the user.

Specified by:
getUser in interface Task

getUserRoleName

public String getUserRoleName()
Returns the name of the role which gived the responsability of this task to the user.

Specified by:
getUserRoleName in interface Task

getGroupId

public String getGroupId()
Specified by:
getGroupId in interface Task

getProcessModel

public ProcessModel getProcessModel()
Returns the process model.

Specified by:
getProcessModel in interface Task

buildTaskDoneEvent

public TaskDoneEvent buildTaskDoneEvent(String actionName,
                                        DataRecord data)
Builds a TaskDoneEvent from this Task.

Specified by:
buildTaskDoneEvent in interface Task

buildTaskSavedEvent

public TaskSavedEvent buildTaskSavedEvent(String actionName,
                                          DataRecord data)
Builds a TaskSavedEvent from this Task.

Specified by:
buildTaskSavedEvent in interface Task

buildQuestionEvent

public QuestionEvent buildQuestionEvent(String stepId,
                                        DataRecord data)
Builds a QuestionEvent from this Task.

Specified by:
buildQuestionEvent in interface Task

buildResponseEvent

public ResponseEvent buildResponseEvent(String questionId,
                                        DataRecord data)
Builds a ResponseEvent from this Task.

Specified by:
buildResponseEvent in interface Task


Copyright © 2016 Silverpeas. All Rights Reserved.