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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean rollbackTransaction) getCtx()Returns an instance of the WorkflowService EJB.voidinit(WorkflowContext actx) Initialize Plugin and get an instance of the EJB Session ContextvoidmergeFieldList(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:
initin interfacePlugin- Throws:
PluginException
-
close
- Specified by:
closein interfacePlugin- 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
-