Class DocumentComposerPlugin
- java.lang.Object
-
- org.imixs.workflow.engine.plugins.AbstractPlugin
-
- org.imixs.workflow.engine.plugins.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 Summary
Fields Modifier and Type Field Description static StringINVALID_DATA_OBJECTstatic StringINVALID_XSL_FORMATstatic StringITEM_DOCUMENT_COMPOSER-
Fields inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
INVALID_ITEMVALUE_FORMAT, INVALID_PROPERTYVALUE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description DocumentComposerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(WorkflowContext actx)Initialize Plugin and get an instance of the EJB Session ContextItemCollectionrun(ItemCollection documentContext, ItemCollection event)This method adds the attachments of the blob workitem to the MimeMessageStringtransformXSLTemplate(ItemCollection documentContext, String xslTemplate)This method performs a XSL transformation based on an xslTemplate.-
Methods inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
close, getCtx, getWorkflowService, mergeFieldList, uniqueList
-
-
-
-
Method Detail
-
init
public void init(WorkflowContext actx) throws PluginException
Description copied from class:AbstractPluginInitialize Plugin and get an instance of the EJB Session Context- Specified by:
initin interfacePlugin- Overrides:
initin classAbstractPlugin- Throws:
PluginException
-
run
public ItemCollection run(ItemCollection documentContext, ItemCollection event) throws PluginException
This method adds the attachments of the blob workitem to the MimeMessage- 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
-
-