Class DocumentComposerPlugin

  • All Implemented Interfaces:
    Plugin

    public class DocumentComposerPlugin
    extends AbstractPlugin
    This DocumentComposer Plugin creates html output stored in a item. The DocumentComposer is based on BPMN DataObjects assigned to the target task.
      
     
     
        	<item name="document-composer" data-object="template1">htmloutput</item>
     
     
     
    Version:
    2.0
    Author:
    rsoika
    • Field Detail

      • ITEM_DOCUMENT_COMPOSER

        public static String ITEM_DOCUMENT_COMPOSER
      • INVALID_DATA_OBJECT

        public static String INVALID_DATA_OBJECT
      • INVALID_XSL_FORMAT

        public static String INVALID_XSL_FORMAT
    • Constructor Detail

      • DocumentComposerPlugin

        public DocumentComposerPlugin()
    • Method Detail

      • run

        public ItemCollection run​(ItemCollection documentContext,
                                  ItemCollection event)
                           throws PluginException
        This method adds the attachments of the blob workitem to the MimeMessage
        Parameters:
        documentContext - the workitem to be processed
        event - the workflow event containing the processing instructions
        Returns:
        updated workitem for further processing
        Throws:
        PluginException
      • transformXSLTemplate

        public String transformXSLTemplate​(ItemCollection documentContext,
                                           String xslTemplate)
                                    throws PluginException
        This method performs a XSL transformation based on an xslTemplate. The xml source is generated form the current document context. encoding is set to UTF-8
        Returns:
        translated email body
        Throws:
        PluginException