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
public class DocumentSplitAdapter extends Object implements org.imixs.workflow.SignalAdapter
The1.0.0 100 10 namTeam - Version:
- 1.0
- Author:
- rsoika
- See Also:
DocumentSplitAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_ERRORstatic StringDOCUMENTSPLITstatic StringFILE_ERRORstatic StringLINK_PROPERTYstatic StringMODEL_ERRORstatic StringSUBPROCESS_CREATE
-
Constructor Summary
Constructors Constructor Description DocumentSplitAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
LINK_PROPERTY
public static final String LINK_PROPERTY
- See Also:
- Constant Field Values
-
SUBPROCESS_CREATE
public static final String SUBPROCESS_CREATE
- See Also:
- Constant Field Values
-
DOCUMENTSPLIT
public static final String DOCUMENTSPLIT
- See Also:
- Constant Field Values
-
MODEL_ERROR
public static final String MODEL_ERROR
- See Also:
- Constant Field Values
-
CONFIG_ERROR
public static final String CONFIG_ERROR
- See Also:
- Constant Field Values
-
FILE_ERROR
public static final String FILE_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.PluginExceptionThis 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
protected void addWorkitemRef(String aUniqueID, org.imixs.workflow.ItemCollection workitem)
This methods adds a new workItem reference into a workitem
-
-