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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(IResourceDefinition resourceDefinition, IWorkflow workflow) com.axemble.vdp.runtime.classes.IResultonAbortWorkflowInstance(IWorkflowInstance workflowInstance, com.axemble.vdp.runtime.classes.IResult result) This method is called each time the abort method is used.voidonCreateEmbeddedWorkflowInstance(ITaskInstance parentTaskInstance, IWorkflowInstance parentWorkflowInstance, IWorkflowInstance embeddedWorkflowInstance) This method is called on a parent workflow before creating an embedded workflow instance.voidonCreateTaskInstance(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.IResultonRemindWorkflowInstance(IWorkflowInstance workflowInstance, IUser fulfiller, com.axemble.vdp.runtime.classes.IResult result) This method is called each time a user sends a reminder.voidonRemoveWorkflowInstance(IStorageKey storageKey) This method is called each time a user removes a workflow instance.voidonStartRemovingWorkflowInstance(IWorkflowInstance workflowInstance, IUser fulfiller) This method is called each time a user removes a workflow instance.voidonTerminateTaskInstance(ITaskInstance taskInstance, String transitionName) This method is called each time the abort method is used.voidrelease()
-
Field Details
-
LOGGER
public static final com.axemble.vdp.utils.Logger LOGGER
-
-
Constructor Details
-
BaseWorkflowExtension
public BaseWorkflowExtension()
-
-
Method Details
-
init
- Specified by:
initin interfacecom.axemble.vdp.workflow.classes.IWorkflowExtension
-
release
public void release()- Specified by:
releasein 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:
onEvaluateOperatorsin 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:
onCreateTaskInstancein 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:
onTerminateTaskInstancein 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:
onAbortWorkflowInstancein 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:
onRemindWorkflowInstancein 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:
onRemoveWorkflowInstancein 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:
onStartRemovingWorkflowInstancein 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:
onCreateEmbeddedWorkflowInstancein 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
-