public abstract class BaseWorkflowExtension extends Object implements com.axemble.vdp.workflow.classes.IWorkflowExtension, Serializable
Modifier and Type | Field and Description |
---|---|
static com.axemble.vdp.utils.Logger |
LOGGER |
Constructor and Description |
---|
BaseWorkflowExtension() |
Modifier and Type | Method and Description |
---|---|
IDirectoryModule |
getDirectoryModule() |
IPortalModule |
getPortalModule() |
IProjectModule |
getProjectModule() |
IResourceDefinition |
getResourceDefinition() |
IWorkflow |
getWorkflow() |
IWorkflowModule |
getWorkflowModule() |
void |
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.
|
List<IUser> |
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() |
public void init(IResourceDefinition resourceDefinition, IWorkflow workflow)
init
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
public void release()
release
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
public List<IUser> onEvaluateOperators(ITaskInstance taskInstance, List<IUser> users)
onEvaluateOperators
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
taskInstance
- The current task instanceusers
- The list of operators to completepublic void onCreateTaskInstance(ITaskInstance taskInstance)
onCreateTaskInstance
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
taskInstance
- The current task instancepublic void onTerminateTaskInstance(ITaskInstance taskInstance, String transitionName)
onTerminateTaskInstance
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
workflowInstance
- The workflow instanceresult
- The result objectpublic com.axemble.vdp.runtime.classes.IResult onAbortWorkflowInstance(IWorkflowInstance workflowInstance, com.axemble.vdp.runtime.classes.IResult result)
onAbortWorkflowInstance
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
workflowInstance
- The workflow instanceresult
- The result objectpublic com.axemble.vdp.runtime.classes.IResult onRemindWorkflowInstance(IWorkflowInstance workflowInstance, IUser fulfiller, com.axemble.vdp.runtime.classes.IResult result)
onRemindWorkflowInstance
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
workflowInstance
- The workflow instancefulfiller
- The user requesting the remindresult
- IResult object allow to specify a custom error code with its associated message.public void onRemoveWorkflowInstance(IStorageKey storageKey)
onRemoveWorkflowInstance
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
storageKey
- The id of the removed workflow instancepublic void onStartRemovingWorkflowInstance(IWorkflowInstance workflowInstance, IUser fulfiller)
onStartRemovingWorkflowInstance
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
workflowInstance
- The workflow instancefulfiller
- The user requesting the removalpublic void onCreateEmbeddedWorkflowInstance(ITaskInstance parentTaskInstance, IWorkflowInstance parentWorkflowInstance, IWorkflowInstance embeddedWorkflowInstance)
onCreateEmbeddedWorkflowInstance
in interface com.axemble.vdp.workflow.classes.IWorkflowExtension
parentTaskInstance
- The current task instanceparentWorkflowInstance
- The current workflow instanceembeddedWorkflowInstance
- The new embedded workflow instancepublic IWorkflowModule getWorkflowModule()
public IPortalModule getPortalModule()
public IDirectoryModule getDirectoryModule()
public IProjectModule getProjectModule()
public IResourceDefinition getResourceDefinition()
public IWorkflow getWorkflow()
Copyright © 2022 Visiativ. All rights reserved.