Class DocumentSplitAdapter

  • All Implemented Interfaces:
    org.imixs.workflow.Adapter, org.imixs.workflow.SignalAdapter

    public class DocumentSplitAdapter
    extends Object
    implements org.imixs.workflow.SignalAdapter
    The 1.0.0 100 10 namTeam
    Version:
    1.0
    Author:
    rsoika
    See Also:
    DocumentSplitAdapter
    • Constructor Detail

      • DocumentSplitAdapter

        public DocumentSplitAdapter()
    • 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.PluginException
        This method posts a text from an attachment to the Imixs-ML Analyse service endpoint
        Specified by:
        execute in interface org.imixs.workflow.Adapter
        Throws:
        org.imixs.workflow.exceptions.AdapterException
        org.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 format 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.
        Parameters:
        subProcessDefinitions -
        originWorkitem -
        Throws:
        org.imixs.workflow.exceptions.AccessDeniedException
        org.imixs.workflow.exceptions.ProcessingErrorException
        org.imixs.workflow.exceptions.PluginException
        org.imixs.workflow.exceptions.ModelException
        org.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|newitem2

        Optional also reg expressions are supported. In this case mapping of the item name is not supported.

        Example: (^artikel$|^invoice$),txtTitel|txtNewTitel A 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