org.imixs.workflow.plugins
Class HistoryPlugin
java.lang.Object
org.imixs.workflow.plugins.AbstractPlugin
org.imixs.workflow.plugins.HistoryPlugin
- All Implemented Interfaces:
- Plugin
public class HistoryPlugin
- extends AbstractPlugin
This Pluginmodul implements a Historyfunktion for Workflowactivitys. The
Plugin generates a History Entry which will be appended to an existing
workflowprotokoll. The Protocol will be stored in the Attributes
o txtworkflowhistorylog (descending sort)
o txtworkflowhistorylogrev (ascending sort)
The Plugin generate a History Entry by a set of activityEntity attributes
These attributes are:
o rtfresultlog (String): HistoryLog text
o keylogdateformat (String): Dateformat for Historyentry
o keylogtimeformat (String): Timeformat for Historyentry
Each entry will be Präfixed by a DateTime String representing the time the Entry was generated.
The HistoryLog function pares the rtfresultlog for "attribute"
tags and replaces these tags with the values of the corresponding attributes
of the workitem.
the Attribute numworkflowhistoryLength indicates the maximum number of
entries. if <= 0 no limit is set. Otherwise older entries will be cut off.
- Version:
- 1.2
- Author:
- Ralph Soika
- See Also:
WorkflowManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
documentContext
public ItemCollection documentContext
documentActivity
public ItemCollection documentActivity
HistoryPlugin
public HistoryPlugin()
run
public int run(ItemCollection adocumentContext,
ItemCollection adocumentActivity)
throws java.lang.Exception
- Parameters:
adocumentContext - defines the document to be processedadocumentActivity - defines the activity document which contains the workflowprocessing instructions
- Returns:
- the current status for this plugin
- Throws:
java.lang.Exception
close
public void close(int status)
- store history only if no error has occurred
- Parameters:
status - gives the plugin information about the current status. this parameter is deliverd by the workflowKernel.
Copyright © 2006-2010 Imixs Software Solutions GmbH. All Rights Reserved.