public class ApproverPlugin extends AbstractPlugin
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
APPROVEDBY |
static String |
APPROVERS |
INVALID_ITEMVALUE_FORMAT, INVALID_PROPERTYVALUE_FORMAT| Constructor and Description |
|---|
ApproverPlugin() |
| Modifier and Type | Method and Description |
|---|---|
ItemCollection |
run(ItemCollection workitem,
ItemCollection documentActivity)
computes the approvedBy and appovers name fields.
|
close, getCtx, getWorkflowService, init, mergeFieldList, uniqueListpublic ItemCollection run(ItemCollection workitem, ItemCollection documentActivity) throws PluginException
PluginExceptionCopyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.