@PermitAll public class UserTask extends BaseTodoTask implements com.whitestein.lsps.human.task.TodoTask
The content of the to-do will be a TodoEvaluationContent
, the
application is expected to pass marshalled model instance state (see
ModelInstanceMarshaller.storeState(ModelInstance, com.whitestein.lsps.engine.state.MarshallerConfig)
) when submitting
UserTask to-dos. When the to-do is submitted, the task will attach changes
done in the evaluation context and will merge them to the model instance
state.
ExecutableTask.Result
Constructor and Description |
---|
UserTask() |
Modifier and Type | Method and Description |
---|---|
protected Todo |
addTodo(TaskContext context,
String type,
Serializable content)
Creates a to-do (calls
BaseTodoTask.createTodo(TaskContext, String, Serializable) ) and adds the to-do
to the database. |
protected Serializable |
createContent(TaskContext context)
This method should return the todo content, it is called when starting a todo-task.
|
protected String |
getType(TaskContext context)
This method should return the todo-task type.
|
protected void |
processReply(TaskContext context,
Object data)
Process the data submitted by the user.
|
createTodo, escalate, getEscalationDate, getEscalationTimeout, getHumanHolderConverter, getIssuedTodo, getModelInstanceUtilsService, getModelProviderService, getPerformerHolderConverter, getPerformers, getTitle, getTodo, getTodoDao, getTodoId, getTodoImplementationType, processInput, removeTodo, resume, start, suspend, terminate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processInput, start, terminate
escalate, getEscalationDate
resume, suspend
protected String getType(TaskContext context)
BaseTodoTask
getType
in class BaseTodoTask
protected Serializable createContent(TaskContext context)
BaseTodoTask
createContent
in class BaseTodoTask
protected Todo addTodo(TaskContext context, String type, Serializable content) throws ErrorException
BaseTodoTask
BaseTodoTask.createTodo(TaskContext, String, Serializable)
) and adds the to-do
to the database.addTodo
in class BaseTodoTask
ErrorException
protected void processReply(TaskContext context, Object data) throws ErrorException
BaseTodoTask
processReply
in class BaseTodoTask
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.