Class ReadonlyProcessTask
java.lang.Object
com.aquima.interactions.process.wrapper.ProcessTaskDelegate
com.aquima.interactions.process.wrapper.ReadonlyProcessTask
- All Implemented Interfaces:
IProcessTask
Decorator class that wraps a process case to make it immutable (read-only).
- Since:
- 7.1
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionReadonlyProcessTask
(IProcessTask processTask) Constructs a read-only wrapper for the specified process task. -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort
(IUserData userData, IProcessCaseUpdates updates) Always throws an InvalidStateException: No modifications allowed on a read only process task.void
assign
(IUserData userData, IAssigneeInfo assigneeInfo) Always throws an InvalidStateException: No modifications allowed on a read only process task.void
Always throws an InvalidStateException: No modifications allowed on a read only process task.void
complete
(IUserData userData, IProcessCaseUpdates updates) Always throws an InvalidStateException: No modifications allowed on a read only process task.void
evaluateAfterComplete
(IUserData userData, String taskExit, IProcessCase processCase) Evaluates the case after a task has been completedvoid
setStartDate
(DateTimeValue startDate) Always throws an InvalidStateException: No modifications allowed on a read only process task.void
setTimeoutDate
(IUserData userData, DateTimeValue dueDate) Always throws an InvalidStateException: No modifications allowed on a read only process task.void
start
(IUserData userData, InferenceContext profile) Always throws an InvalidStateException: No modifications allowed on a read only process task.void
unassign()
Always throws an InvalidStateException: No modifications allowed on a read only process task.Methods inherited from class com.aquima.interactions.process.wrapper.ProcessTaskDelegate
assign, complete, evaluateRequiredRoles, getAssigneeInfo, getCustomFieldValue, getDescription, getDisplayName, getDueDate, getExecutedBy, getId, getName, getNodeId, getPriority, getProcessId, getStartDate, getStatus, getTimeoutDate, isUserSet, start, unassign
-
Constructor Details
-
ReadonlyProcessTask
Constructs a read-only wrapper for the specified process task.- Parameters:
processTask
- The process task that should be wrapped in this read-only decorator.
-
-
Method Details
-
abort
Always throws an InvalidStateException: No modifications allowed on a read only process task.- Specified by:
abort
in interfaceIProcessTask
- Overrides:
abort
in classProcessTaskDelegate
- Parameters:
userData
- User that aborts the execution of the task.updates
- Object containing updates that should be applied to the case data.- Throws:
AppException
- This exception is thrown when the task could not be aborted.
-
assign
Always throws an InvalidStateException: No modifications allowed on a read only process task.- Parameters:
userData
- Object containing information about the current user.assigneeInfo
- The AssigneeInfo of who the task should be assigned to.
-
cancel
Always throws an InvalidStateException: No modifications allowed on a read only process task.- Specified by:
cancel
in interfaceIProcessTask
- Overrides:
cancel
in classProcessTaskDelegate
- Parameters:
userData
- User that aborts the execution of the task.- Throws:
AppException
- This exception is thrown when the task could not be canceled.
-
complete
Always throws an InvalidStateException: No modifications allowed on a read only process task.- Parameters:
userData
- User that marks the task as completed.updates
- Object containing updates that should be applied to the case data.- Throws:
AppException
- This exception is thrown when the current task could not be marked as completed.
-
setTimeoutDate
Always throws an InvalidStateException: No modifications allowed on a read only process task.- Specified by:
setTimeoutDate
in interfaceIProcessTask
- Overrides:
setTimeoutDate
in classProcessTaskDelegate
- Parameters:
userData
- Object containing information about the current user.dueDate
- The new due date for the task.
-
setStartDate
Always throws an InvalidStateException: No modifications allowed on a read only process task.- Specified by:
setStartDate
in interfaceIProcessTask
- Overrides:
setStartDate
in classProcessTaskDelegate
- Parameters:
startDate
- The new start date for the task.
-
start
Always throws an InvalidStateException: No modifications allowed on a read only process task.- Parameters:
userData
- User that will start the task.profile
- The inference context.- Throws:
AppException
- always thrown, no modifications allowed
-
unassign
public void unassign()Always throws an InvalidStateException: No modifications allowed on a read only process task. -
evaluateAfterComplete
Description copied from interface:IProcessTask
Evaluates the case after a task has been completed- Parameters:
userData
- user that marks the task as completedtaskExit
- the exit state of the completed taskprocessCase
- the case which is evaluated
-