Class CommonUserTask
java.lang.Object
com.orchestranetworks.workflow.UserTask
com.apgar.common.lib.workflow.usertask.CommonUserTask
- Direct Known Subclasses:
AffectationUserTask
public class CommonUserTask
extends com.orchestranetworks.workflow.UserTask
Represents a user task extension.
This extension handles the creation of the work item by checking the configuration of the User Task. It also handles its completion by propagating the owner and comment of this work item to the next item if the corresponding variables are created in the data context.
lastCommentlastUser
To utilize this user task, the following rule should be added in the work item configuration under Extension:
com.apgar.common.lib.workflow.usertask.CommonUserTask
- Author:
- APGAR Consulting
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orchestranetworks.workflow.UserTask
com.orchestranetworks.workflow.UserTask.CompletionStrategy, com.orchestranetworks.workflow.UserTask.UserTaskMode, com.orchestranetworks.workflow.UserTask.WorkItem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleCreate(com.orchestranetworks.workflow.UserTaskCreationContext context) Executes thehandleCreatemethod of the superclass if profiles are defined in the User Task configuration.voidhandleWorkItemCompletion(com.orchestranetworks.workflow.UserTaskWorkItemCompletionContext context) Executes thehandleWorkItemCompletionmethod of the superclass while passing along the comment and owner of this work item.Methods inherited from class com.orchestranetworks.workflow.UserTask
checkBeforeWorkItemCompletion, getUsersForAllocation
-
Constructor Details
-
CommonUserTask
public CommonUserTask()
-
-
Method Details
-
handleCreate
public void handleCreate(com.orchestranetworks.workflow.UserTaskCreationContext context) throws com.orchestranetworks.service.OperationException Executes thehandleCreatemethod of the superclass if profiles are defined in the User Task configuration.This method ensures that the work items are allocated or offered correctly.
- Overrides:
handleCreatein classcom.orchestranetworks.workflow.UserTask- Parameters:
context- the context for work items creation- Throws:
com.orchestranetworks.service.OperationException- if any problem occurs; in this case, the user task is set to an error state.
-
handleWorkItemCompletion
public void handleWorkItemCompletion(com.orchestranetworks.workflow.UserTaskWorkItemCompletionContext context) throws com.orchestranetworks.service.OperationException Executes thehandleWorkItemCompletionmethod of the superclass while passing along the comment and owner of this work item.This method writes the comment and owner of this work item to the
lastCommentandlastUserdata context variables, respectively, if created.- Overrides:
handleWorkItemCompletionin classcom.orchestranetworks.workflow.UserTask- Parameters:
context- the context for work item completion- Throws:
com.orchestranetworks.service.OperationException- if any problem occurs; in this case, the user task is set to an error state.
-