Class ApproverPlugin
java.lang.Object
org.imixs.workflow.engine.plugins.AbstractPlugin
org.imixs.workflow.engine.plugins.ApproverPlugin
- All Implemented Interfaces:
Plugin
This plug-in is used to manage multiple users involved in a approver
procedure. The list of approvers can be declared within the workflow result:
Example:
<item name='approvedby'>ReviewTeam</item>
The tag value (e.g. 'ReviewTeam') declares the source item holding the users
involved in the approver procedure. The plugin creates the following items to
monitor the approver procedure:
[SOURCEITEMNAME]$Approvers
[SOURCEITEMNAME]$ApprovedBy
If the source item is updated during the approving process, the plugin will
add new userIDs if these new UserIDs are not yet listed in the item
[SOURCEITEMNAME]$ApprovedBy.
If the attribute 'refresh' is set to true, the list [SOURCEITEMNAME]$Approvers will be updated (default is true).
If the attribute 'reset' is set to true, the list [SOURCEITEMNAME]$Approvers will be reseted and the item [SOURCEITEMNAME]$ApprovedBy will be cleared.
- Version:
- 2.0
- 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 TypeMethodDescriptionrun
(ItemCollection workitem, ItemCollection event) computes the approvedBy and appovers name fields.Methods inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
close, getCtx, getWorkflowService, init, mergeFieldList, uniqueList
-
Field Details
-
APPROVEDBY
-
APPROVERS
-
-
Constructor Details
-
ApproverPlugin
public ApproverPlugin()
-
-
Method Details
-
run
computes the approvedBy and appovers name fields.- Parameters:
workitem
- the workitem to be processedevent
- the workflow event containing the processing instructions- Returns:
- updated workitem for further processing
- Throws:
PluginException
-