Class AbstractTaskImpl
- java.lang.Object
-
- org.silverpeas.core.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
Constructors Constructor Description AbstractTaskImpl(User user, String roleName, String groupId, ProcessModel processModel)
AbstractTaskImpl(User user, String roleName, ProcessModel processModel)
Builds a TaskImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 org.silverpeas.core.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
-
getUserRoleName
public String getUserRoleName()
Returns the name of the role which gived the responsability of this task to the user.- Specified by:
getUserRoleName
in interfaceTask
-
getGroupId
public String getGroupId()
- Specified by:
getGroupId
in interfaceTask
-
getProcessModel
public ProcessModel getProcessModel()
Returns the process model.- Specified by:
getProcessModel
in interfaceTask
-
buildTaskDoneEvent
public TaskDoneEvent buildTaskDoneEvent(String actionName, DataRecord data)
Builds a TaskDoneEvent from this Task.- Specified by:
buildTaskDoneEvent
in interfaceTask
-
buildTaskSavedEvent
public TaskSavedEvent buildTaskSavedEvent(String actionName, DataRecord data)
Builds a TaskSavedEvent from this Task.- Specified by:
buildTaskSavedEvent
in interfaceTask
-
buildQuestionEvent
public QuestionEvent buildQuestionEvent(String stepId, DataRecord data)
Builds a QuestionEvent from this Task.- Specified by:
buildQuestionEvent
in interfaceTask
-
buildResponseEvent
public ResponseEvent buildResponseEvent(String questionId, DataRecord data)
Builds a ResponseEvent from this Task.- Specified by:
buildResponseEvent
in interfaceTask
-
-