public interface PluginProvider
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
This method is invoked at the end of the plugin lifecycle to allow implementations to cleanup
after themselves (e.g.
|
PluginResult |
execute()
This method is invoked to perform the plugin operation's implementation.
|
void |
setWorkflowExecutionContext(WorkflowExecutionContext pExecutionContext)
This method is called to set the ExecutionContext for the plugin operation execution.
|
void |
validate()
This method is invoked to validate the preconditions of the plugin operation have been
satisfied.
|
void setWorkflowExecutionContext(WorkflowExecutionContext pExecutionContext)
pExecutionContext - the workflow execution contextPluginResult execute() throws FlexCheckedException
FlexCheckedException - if any exception occurs during the execution of the plugin
operationvoid validate()
throws FlexCheckedException
Implementors should also make an attempt to perform all validations and throw a single exception where possible, and avoid having users track down one validation issue per execution.
FlexCheckedException - if the preconditions of the plugin operation are not met.void cleanup()
Note that this method is invoked in the finally clause surrounding the plugin execution. This allows the implementations to avoid wrapping try/catch/finally around operations for the purpose of cleanup. Since an exception can occur at various points, implementations must take precautions in performing the necessary null checking.
Also note that any exceptions raised during the cleanup will be logged and ignored.