Class AbstractPlugin
java.lang.Object
org.imixs.workflow.engine.plugins.AbstractPlugin
- All Implemented Interfaces:
Plugin
- Direct Known Subclasses:
AccessPlugin
,AnalysisPlugin
,ApplicationPlugin
,ApproverPlugin
,DocumentComposerPlugin
,EventLogPlugin
,HistoryPlugin
,IntervalPlugin
,LogPlugin
,MailPlugin
,OwnerPlugin
,ReportPlugin
,ResultPlugin
,RulePlugin
,SplitAndJoinPlugin
,TaxonomyPlugin
,VersionPlugin
This abstract class implements different helper methods used by subclasses
- Version:
- 1.1
- Author:
- Ralph Soika
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean rollbackTransaction) This method is called after all plugins are executed by the WorkfloKernel.getCtx()
Returns an instance of the WorkflowService EJB.void
init
(WorkflowContext actx) Initialize Plugin and get an instance of the EJB Session Contextvoid
mergeFieldList
(ItemCollection documentContext, List valueList, List<String> fieldList) This method merges the values of fieldList into valueList and test for duplicates.List<?>
uniqueList
(List<Object> valueList) This method removes duplicates and null values from a vector.
-
Field Details
-
INVALID_ITEMVALUE_FORMAT
- See Also:
-
INVALID_PROPERTYVALUE_FORMAT
- See Also:
-
-
Constructor Details
-
AbstractPlugin
public AbstractPlugin()
-
-
Method Details
-
init
Initialize Plugin and get an instance of the EJB Session Context- Specified by:
init
in interfacePlugin
- Parameters:
actx
- defines the context in which the plugin runs. The context can be used to get information about the environment- Throws:
PluginException
-
close
Description copied from interface:Plugin
This method is called after all plugins are executed by the WorkfloKernel. A plugin my tear down external resources.- Specified by:
close
in interfacePlugin
- Parameters:
rollbackTransaction
- indicates if the current transaction will be rolled back.- Throws:
PluginException
-
getCtx
-
getWorkflowService
Returns an instance of the WorkflowService EJB.- Returns:
-
mergeFieldList
This method merges the values of fieldList into valueList and test for duplicates. If an entry of the fieldList is a single key value, than the values to be merged are read from the corresponding documentContext property e.g. 'namTeam' -> maps the values of the documentContext property 'namteam' into the valueList If an entry of the fieldList is in square brackets, than the comma separated elements are mapped into the valueList e.g. '[user1,user2]' - maps the values 'user1' and 'user2' int the valueList. Also Curly brackets are allowed '{user1,user2}'- Parameters:
valueList
-fieldList
-
-
uniqueList
This method removes duplicates and null values from a vector.- Parameters:
valueList
- - list of elements
-