public abstract class AbstractPlugin extends Object implements Plugin
WorkflowManager| Modifier and Type | Field and Description |
|---|---|
static String |
INVALID_ITEMVALUE_FORMAT |
static String |
INVALID_PROPERTYVALUE_FORMAT |
| Constructor and Description |
|---|
AbstractPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean rollbackTransaction) |
static String |
formatItemValues(Collection<?> aItem,
String aSeparator,
String sFormat)
this method formats a string object depending of an attribute type.
|
static String |
formatItemValues(Collection<?> aItem,
String aSeparator,
String sFormat,
Locale locale)
this method formats a string object depending of an attribute type.
|
WorkflowContext |
getCtx() |
WorkflowService |
getWorkflowService()
Returns an instance of the WorkflowService EJB.
|
void |
init(WorkflowContext actx)
Initialize Plugin and get an instance of the EJB Session Context
|
void |
mergeFieldList(ItemCollection documentContext,
List valueList,
List<String> fieldList)
This method merges the values of fieldList into valueList and test for
duplicates.
|
void |
mergeValueList(List valueList,
List sourceList)
This method merges the values from a SourceList into a valueList and
removes duplicates.
|
String |
replaceDynamicValues(String aString,
ItemCollection documentContext)
this method parses a string for xml tag
|
List<?> |
uniqueList(List<Object> valueList)
This method removes duplicates and null values from a vector.
|
public static final String INVALID_ITEMVALUE_FORMAT
public static final String INVALID_PROPERTYVALUE_FORMAT
public void init(WorkflowContext actx) throws PluginException
init in interface PluginPluginExceptionpublic void close(boolean rollbackTransaction)
throws PluginException
close in interface PluginPluginExceptionpublic WorkflowContext getCtx()
public WorkflowService getWorkflowService()
public String replaceDynamicValues(String aString, ItemCollection documentContext) throws PluginException
hello namCreator
Item values can also be formated. e.g. for date/time values
Last access Time= $created
If the itemValue is a multiValue object the single values can be
spearated by a separator
Phone List: txtPhones
PluginExceptionpublic static String formatItemValues(Collection<?> aItem, String aSeparator, String sFormat, Locale locale)
public static String formatItemValues(Collection<?> aItem, String aSeparator, String sFormat)
public void mergeValueList(List valueList, List sourceList)
valueList - sourceList - public void mergeFieldList(ItemCollection documentContext, List valueList, List<String> fieldList)
valueList - fieldList - Copyright © 2006–2017 Imixs Software Solutions GmbH. All rights reserved.