Class HistoryPlugin
java.lang.Object
org.imixs.workflow.engine.plugins.AbstractPlugin
org.imixs.workflow.engine.plugins.HistoryPlugin
- All Implemented Interfaces:
Plugin
This Plugin creates a history log in the property txtWorkflowHistory. The
history log contains a list of history entires. Each entry provides the
following information:
- date of creation (Date)
- comment (String)
- userID (String)
- 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 TypeMethodDescriptionprotected void
This method converts the old StringList format in the new format with a list of separated values: date of creation (Date) comment (String) userID (String)run
(ItemCollection adocumentContext, ItemCollection adocumentActivity) Update the Log entry.Methods inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
close, getCtx, getWorkflowService, init, mergeFieldList, uniqueList
-
Field Details
-
ITEM_HISTORY_LOG
- See Also:
-
-
Constructor Details
-
HistoryPlugin
public HistoryPlugin()
-
-
Method Details
-
run
public ItemCollection run(ItemCollection adocumentContext, ItemCollection adocumentActivity) throws PluginException Update the Log entry. The method tests if the deprecated property 'txtworkflowhistorylogrev' exists. In this case the old log format will be transformed into the new format see method convertOldFormat- Parameters:
adocumentContext
- the workitem to be processedadocumentActivity
- the workflow event containing the processing instructions- Returns:
- updated workitem for further processing
- Throws:
PluginException
-
convertOldFormat
protected void convertOldFormat()This method converts the old StringList format in the new format with a list of separated values:- date of creation (Date)
- comment (String)
- userID (String)
-