Class AnalysisPlugin
java.lang.Object
org.imixs.workflow.engine.plugins.AbstractPlugin
org.imixs.workflow.engine.plugins.AnalysisPlugin
- All Implemented Interfaces:
Plugin
This plugin can be used to measure the time of any phase during a workflow.
The plugin can be configured by the activity result :
Example:
- M1
defines a start point named 'M1'
- M2
definens a end point named 'M1'
The result will be stored into the txtWorkflowActivityLog (comments) and also
the Plugin will create the following fields:
- datMeasurePointStart_M1 : contains the start time points (list latest entry
on top!)
- datMeasurePointEnd_M1 : contains the end time points (list)
- numMeasurePoint_M1: contains the total time in milis.
With this logic we can measure any time aspact of a process instance- Author:
- rsoika
-
Field Summary
Fields inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
INVALID_ITEMVALUE_FORMAT, INVALID_PROPERTYVALUE_FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.imixs.workflow.engine.plugins.AnalysisPlugin.MeasurePoint>
evaluate
(String aString, ItemCollection documentContext) This method parses the a string for xml tag- xxx
.run
(ItemCollection documentContext, ItemCollection documentActivity) Methods inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
close, getCtx, getWorkflowService, init, mergeFieldList, uniqueList
-
Field Details
-
INVALID_FORMAT
- See Also:
-
-
Constructor Details
-
AnalysisPlugin
public AnalysisPlugin()
-
-
Method Details
-
run
public ItemCollection run(ItemCollection documentContext, ItemCollection documentActivity) throws PluginException - Parameters:
documentContext
- the workitem to be processeddocumentActivity
- the workflow event containing the processing instructions- Returns:
- updated workitem for further processing
- Throws:
PluginException
-
evaluate
public List<org.imixs.workflow.engine.plugins.AnalysisPlugin.MeasurePoint> evaluate(String aString, ItemCollection documentContext) throws PluginException This method parses the a string for xml tag- xxx
. Those tags will result in MeasurePoint- M1
- Returns:
- - a list of measure points
- Throws:
PluginException
-