Package org.imixs.archive.documents
Class DocumentSplitAdapter
java.lang.Object
org.imixs.archive.documents.DocumentSplitAdapter
- All Implemented Interfaces:
org.imixs.workflow.Adapter,org.imixs.workflow.SignalAdapter
The
1.0.0
100
10
namTeam
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddWorkitemRef(String aUniqueID, org.imixs.workflow.ItemCollection workitem) This methods adds a new workItem reference into a workitemprotected voidcopyItemList(String items, org.imixs.workflow.ItemCollection source, org.imixs.workflow.ItemCollection target) This Method copies the fields defined in 'items' into the targetWorkitem.protected voidcreateSubprocesses(List<String> subProcessDefinitions, org.imixs.workflow.ItemCollection originWorkitem) This method expects a list of Subprocess definitions and create for each definition a new subprocess.org.imixs.workflow.ItemCollectionexecute(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection event) This method posts a text from an attachment to the Imixs-ML Analyse service endpoint
-
Field Details
-
LINK_PROPERTY
- See Also:
-
SUBPROCESS_CREATE
- See Also:
-
DOCUMENTSPLIT
- See Also:
-
MODEL_ERROR
- See Also:
-
CONFIG_ERROR
- See Also:
-
FILE_ERROR
- See Also:
-
-
Constructor Details
-
DocumentSplitAdapter
public DocumentSplitAdapter()
-
-
Method Details
-
execute
public org.imixs.workflow.ItemCollection execute(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection event) throws org.imixs.workflow.exceptions.AdapterException, org.imixs.workflow.exceptions.PluginException This method posts a text from an attachment to the Imixs-ML Analyse service endpoint- Specified by:
executein interfaceorg.imixs.workflow.Adapter- Throws:
org.imixs.workflow.exceptions.AdapterExceptionorg.imixs.workflow.exceptions.PluginException
-
createSubprocesses
protected void createSubprocesses(List<String> subProcessDefinitions, org.imixs.workflow.ItemCollection originWorkitem) throws org.imixs.workflow.exceptions.PluginException, org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ProcessingErrorException, org.imixs.workflow.exceptions.ModelException This method expects a list of Subprocess definitions and create for each definition a new subprocess. The reference of the created subprocess will be stored in the property $workitemRef of the origin workitem The definition is expected in the following formatBoth 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.1.0.0 100 20 namTeam,_sub_data home - Parameters:
subProcessDefinitions-originWorkitem-- Throws:
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ProcessingErrorExceptionorg.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.ModelExceptionorg.imixs.workflow.exceptions.AdapterException- See Also:
-
class
-
copyItemList
protected void copyItemList(String items, org.imixs.workflow.ItemCollection source, org.imixs.workflow.ItemCollection target) This Method copies the fields defined in 'items' into the targetWorkitem. Multiple values are separated with comma ','.In case a item name contains '|' the target field name will become the right part of the item name.
Example:
txttitle,txtfirstname txttitle|newitem1,txtfirstname|newitem2Optional also reg expressions are supported. In this case mapping of the item name is not supported.
Example:
(^artikel$|^invoice$),txtTitel|txtNewTitelA reg expression must be includes in brackets. -
addWorkitemRef
This methods adds a new workItem reference into a workitem
-