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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
LOGGERpublic static final com.axemble.vdp.utils.Logger LOGGER
 
- 
- 
Constructor Details- 
BaseWorkflowExtensionpublic BaseWorkflowExtension()
 
- 
- 
Method Details- 
init- Specified by:
- initin interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
 
- 
releasepublic void release()- Specified by:
- releasein interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
 
- 
onEvaluateOperatorsThis method is called each time the system requires the operators of the current task instance.- Specified by:
- onEvaluateOperatorsin interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- taskInstance- The current task instance
- users- The list of operators to complete
 
- 
onCreateTaskInstanceThis method is called each time a new task instance is created.- Specified by:
- onCreateTaskInstancein interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- taskInstance- The current task instance
 
- 
onTerminateTaskInstanceThis method is called each time the abort method is used.- Specified by:
- onTerminateTaskInstancein interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- workflowInstance- The workflow instance
- result- The result object
 
- 
onAbortWorkflowInstancepublic 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 interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- workflowInstance- The workflow instance
- result- The result object
 
- 
onRemindWorkflowInstancepublic 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 interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- workflowInstance- The workflow instance
- fulfiller- The user requesting the remind
- result- IResult object allow to specify a custom error code with its associated message.
 
- 
onRemoveWorkflowInstanceThis method is called each time a user removes a workflow instance.- Specified by:
- onRemoveWorkflowInstancein interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- storageKey- The id of the removed workflow instance
 
- 
onStartRemovingWorkflowInstanceThis method is called each time a user removes a workflow instance.- Specified by:
- onStartRemovingWorkflowInstancein interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- workflowInstance- The workflow instance
- fulfiller- The user requesting the removal
 
- 
onCreateEmbeddedWorkflowInstancepublic 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 interface- com.axemble.vdp.workflow.classes.IWorkflowExtension
- Parameters:
- parentTaskInstance- The current task instance
- parentWorkflowInstance- The current workflow instance
- embeddedWorkflowInstance- The new embedded workflow instance
 
- 
getWorkflowModule
- 
getPortalModule
- 
getDirectoryModule
- 
getProjectModule
- 
getResourceDefinition
- 
getWorkflow
 
-