Class BaseWorkflowExtension
java.lang.Object
com.axemble.vdoc.sdk.workflow.extensions.BaseWorkflowExtension
- All Implemented Interfaces:
com.axemble.vdp.workflow.classes.IWorkflowExtension
,Serializable
public abstract class BaseWorkflowExtension
extends Object
implements com.axemble.vdp.workflow.classes.IWorkflowExtension, Serializable
- Author:
- kdogbatse
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(IResourceDefinition resourceDefinition, IWorkflow workflow) com.axemble.vdp.runtime.classes.IResult
onAbortWorkflowInstance
(IWorkflowInstance workflowInstance, com.axemble.vdp.runtime.classes.IResult result) This method is called each time the abort method is used.void
onCreateEmbeddedWorkflowInstance
(ITaskInstance parentTaskInstance, IWorkflowInstance parentWorkflowInstance, IWorkflowInstance embeddedWorkflowInstance) This method is called on a parent workflow before creating an embedded workflow instance.void
onCreateTaskInstance
(ITaskInstance taskInstance) This method is called each time a new task instance is created.onEvaluateOperators
(ITaskInstance taskInstance, List<IUser> users) This method is called each time the system requires the operators of the current task instance.com.axemble.vdp.runtime.classes.IResult
onRemindWorkflowInstance
(IWorkflowInstance workflowInstance, IUser fulfiller, com.axemble.vdp.runtime.classes.IResult result) This method is called each time a user sends a reminder.void
onRemoveWorkflowInstance
(IStorageKey storageKey) This method is called each time a user removes a workflow instance.void
onStartRemovingWorkflowInstance
(IWorkflowInstance workflowInstance, IUser fulfiller) This method is called each time a user removes a workflow instance.void
onTerminateTaskInstance
(ITaskInstance taskInstance, String transitionName) This method is called each time the abort method is used.void
release()
-
Field Details
-
LOGGER
public static final com.axemble.vdp.utils.Logger LOGGER
-
-
Constructor Details
-
BaseWorkflowExtension
public BaseWorkflowExtension()
-
-
Method Details
-
init
- Specified by:
init
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
-
release
public void release()- Specified by:
release
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
-
onEvaluateOperators
This method is called each time the system requires the operators of the current task instance.- Specified by:
onEvaluateOperators
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
taskInstance
- The current task instanceusers
- The list of operators to complete
-
onCreateTaskInstance
This method is called each time a new task instance is created.- Specified by:
onCreateTaskInstance
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
taskInstance
- The current task instance
-
onTerminateTaskInstance
This method is called each time the abort method is used.- Specified by:
onTerminateTaskInstance
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
workflowInstance
- The workflow instanceresult
- The result object
-
onAbortWorkflowInstance
public com.axemble.vdp.runtime.classes.IResult onAbortWorkflowInstance(IWorkflowInstance workflowInstance, com.axemble.vdp.runtime.classes.IResult result) This method is called each time the abort method is used.- Specified by:
onAbortWorkflowInstance
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
workflowInstance
- The workflow instanceresult
- The result object
-
onRemindWorkflowInstance
public com.axemble.vdp.runtime.classes.IResult onRemindWorkflowInstance(IWorkflowInstance workflowInstance, IUser fulfiller, com.axemble.vdp.runtime.classes.IResult result) This method is called each time a user sends a reminder. By setting a custom error code (result) different than 0 the reminder will be stopped.- Specified by:
onRemindWorkflowInstance
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
workflowInstance
- The workflow instancefulfiller
- The user requesting the remindresult
- IResult object allow to specify a custom error code with its associated message.
-
onRemoveWorkflowInstance
This method is called each time a user removes a workflow instance.- Specified by:
onRemoveWorkflowInstance
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
storageKey
- The id of the removed workflow instance
-
onStartRemovingWorkflowInstance
This method is called each time a user removes a workflow instance.- Specified by:
onStartRemovingWorkflowInstance
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
workflowInstance
- The workflow instancefulfiller
- The user requesting the removal
-
onCreateEmbeddedWorkflowInstance
public void onCreateEmbeddedWorkflowInstance(ITaskInstance parentTaskInstance, IWorkflowInstance parentWorkflowInstance, IWorkflowInstance embeddedWorkflowInstance) This method is called on a parent workflow before creating an embedded workflow instance.- Specified by:
onCreateEmbeddedWorkflowInstance
in interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
parentTaskInstance
- The current task instanceparentWorkflowInstance
- The current workflow instanceembeddedWorkflowInstance
- The new embedded workflow instance
-
getWorkflowModule
-
getPortalModule
-
getDirectoryModule
-
getProjectModule
-
getResourceDefinition
-
getWorkflow
-