public class SplitAndJoinPlugin extends AbstractPlugin
http://www.imixs.org/doc/engine/plugins/splitandjoinplugin.html| Modifier and Type | Field and Description |
|---|---|
static String |
INVALID_FORMAT |
static String |
LINK_PROPERTY |
static String |
ORIGIN_UPDATE |
static String |
SUBPROCESS_CREATE |
static String |
SUBPROCESS_UPDATE |
INVALID_ITEMVALUE_FORMAT, INVALID_PROPERTYVALUE_FORMAT| Constructor and Description |
|---|
SplitAndJoinPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addWorkitemRef(String aUniqueID,
ItemCollection workitem)
This methods adds a new workItem reference into a workitem
|
protected void |
copyItemList(String items,
ItemCollection source,
ItemCollection target)
This Method copies the fields defined in 'items' into the targetWorkitem.
|
protected void |
createSubprocesses(List<String> subProcessDefinitions,
ItemCollection originWorkitem)
This method expects a list of Subprocess definitions and create for each
definition a new subprocess.
|
ItemCollection |
run(ItemCollection adocumentContext,
ItemCollection adocumentActivity)
The method evaluates the workflow activity result for items with name:
subprocess_create
subprocess_update
origin_update
For each item a corresponding processing cycle will be started.
|
protected void |
updateOrigin(String originProcessDefinition,
ItemCollection subprocessWorkitem)
This method expects a single process definitions to update the origin
process for a subprocess.
|
protected void |
updateSubprocesses(List<String> subProcessDefinitions,
ItemCollection originWorkitem)
This method expects a list of Subprocess definitions and updates each
matching existing subprocess.
|
close, getCtx, getWorkflowService, init, mergeFieldList, uniqueListpublic static final String LINK_PROPERTY
public static final String INVALID_FORMAT
public static final String SUBPROCESS_CREATE
public static final String SUBPROCESS_UPDATE
public static final String ORIGIN_UPDATE
public ItemCollection run(ItemCollection adocumentContext, ItemCollection adocumentActivity) throws PluginException, AccessDeniedException, ProcessingErrorException
@throws - ProcessingErrorExceptionAccessDeniedExceptionPluginExceptionProcessingErrorExceptionprotected void createSubprocesses(List<String> subProcessDefinitions, ItemCollection originWorkitem) throws AccessDeniedException, ProcessingErrorException, PluginException, ModelException
1.0.0
100
20
namTeam,_sub_data
home
Both workitems are connected to each other. The subprocess will contain
the $UniqueID of the origin process stored in the property $uniqueidRef.
The origin process will contain a link to the subprocess stored in the
property txtworkitemRef.
The tag 'action' is optional and allows to overwrite the action result evaluated by the ResultPlugin.subProcessDefinitions - originWorkitem - AccessDeniedExceptionProcessingErrorExceptionPluginExceptionModelExceptionprotected void updateSubprocesses(List<String> subProcessDefinitions, ItemCollection originWorkitem) throws AccessDeniedException, ProcessingErrorException, PluginException, ModelException
1.0.0
100
20
namTeam,_sub_data
Subprocesses and the origin process are connected to each other. The
subprocess will contain the $UniqueID of the origin process stored in the
property $uniqueidRef. The origin process will contain a link to the
subprocess stored in the property txtworkitemRef.subProcessDefinitions - originWorkitem - AccessDeniedExceptionProcessingErrorExceptionPluginExceptionModelExceptionprotected void updateOrigin(String originProcessDefinition, ItemCollection subprocessWorkitem) throws AccessDeniedException, ProcessingErrorException, PluginException, ModelException
20
namTeam,_sub_data
originProcessDefinition - subprocessWorkitem - AccessDeniedExceptionProcessingErrorExceptionPluginExceptionModelExceptionprotected void copyItemList(String items, ItemCollection source, ItemCollection target)
protected void addWorkitemRef(String aUniqueID, ItemCollection workitem)
Copyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.