Class ReportPlugin

java.lang.Object
org.imixs.workflow.engine.plugins.AbstractPlugin
org.imixs.workflow.engine.plugins.ReportPlugin
All Implemented Interfaces:
Plugin

public class ReportPlugin extends AbstractPlugin
This plug-in executes a Imixs Report definition and stores the result either into the current workitem ($file) or into the file system. The corresponding BPMN event provide the following properties:

  • txtReportName=Name of the Report to be processed
  • txtReportFilePath= optional filename or file path the result will be saved
  • txtReportTarget = where the result is saved (0=workitem, 2= disk)

CHANGES V 2.0

In the current version 2.0, only the processed document will be used as the xml input source for the XSL transformation. A search query will currently not be evaluated.

Version:
2.0
Author:
Ralph Soika
  • Field Details

  • Constructor Details

    • ReportPlugin

      public ReportPlugin()
  • Method Details

    • run

      public ItemCollection run(ItemCollection adocumentContext, ItemCollection adocumentActivity) throws PluginException
      Executes a report defined defined by the event in the attribute 'txtReportName'.

      The XML Source used by this method is the XML representation of the current document. The Query Statement will not be evaluated

      Parameters:
      adocumentContext - the workitem to be processed
      adocumentActivity - the workflow event containing the processing instructions
      Returns:
      updated workitem for further processing
      Throws:
      PluginException
    • close

      public void close(int status) throws PluginException
      Throws:
      PluginException