Class ReportPlugin
java.lang.Object
org.imixs.workflow.engine.plugins.AbstractPlugin
org.imixs.workflow.engine.plugins.ReportPlugin
- All Implemented Interfaces:
Plugin
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 Summary
Fields inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
INVALID_ITEMVALUE_FORMAT, INVALID_PROPERTYVALUE_FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(int status) run
(ItemCollection adocumentContext, ItemCollection adocumentActivity) Executes a report defined defined by the event in the attribute 'txtReportName'.Methods inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
close, getCtx, getWorkflowService, init, mergeFieldList, uniqueList
-
Field Details
-
INVALID_CONTEXT
- See Also:
-
REPORT_UNDEFINED
- See Also:
-
INVALID_REPORT_DEFINITION
- See Also:
-
-
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 processedadocumentActivity
- the workflow event containing the processing instructions- Returns:
- updated workitem for further processing
- Throws:
PluginException
-
close
- Throws:
PluginException
-