public class TeamPlugin
extends org.imixs.workflow.engine.plugins.AbstractPlugin
This plug-in supports also additional workflow properties for further processing. The method computes the team members and the name of the assigned process and space.
The TeamPlugin updates the following properties:
The name properties are used in security and mail plug-ins.
The properties 'process.ref' and 'space.ref' are optional and can provide the current $uniqueIDs for referenced space or process entities. The Plug-in updates the $UniqueIDRef property if these properties are filled.
If the workItem is a child to another workItem (ChildWorkitem) the information is fetched from the parent workItem.
If the workflowresultmessage of the ActivityEntity contains a space or process reference the plug-in will update the reference in the property $uniqueIdRef.
Example:
The Plug-in should run before Access-, Application- and Mail-Plug-in.
Note: the deprecated item names are still supported:
| Modifier and Type | Field and Description |
|---|---|
static String |
INVALID_REFERENCE_ASSIGNED_BY_MODEL |
static String |
NO_PROCESS_ASSIGNED |
| Constructor and Description |
|---|
TeamPlugin() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.ItemCollection |
findEntity(String id)
Helper method to lookup an entity in internal cache or load it from database
|
void |
init(org.imixs.workflow.WorkflowContext actx)
Fetch workflowService and entityService from WorkflowContext
|
org.imixs.workflow.ItemCollection |
run(org.imixs.workflow.ItemCollection workItem,
org.imixs.workflow.ItemCollection documentActivity)
The method updates information from the Process and Space entiy (optional)
stored in the attribute '$uniqueIdref'
process.ref
space.ref
namTeam
namManager
namProcessTeam
namProcessManager
txtSpaceName
txtCoreProcessName
If the workitem is a child to another workitem (ChildWorkitem) the
information is fetched from the parent workitem.
|
public static final String INVALID_REFERENCE_ASSIGNED_BY_MODEL
public static final String NO_PROCESS_ASSIGNED
public void init(org.imixs.workflow.WorkflowContext actx)
throws org.imixs.workflow.exceptions.PluginException
init in interface org.imixs.workflow.Plugininit in class org.imixs.workflow.engine.plugins.AbstractPluginorg.imixs.workflow.exceptions.PluginExceptionpublic org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection workItem,
org.imixs.workflow.ItemCollection documentActivity)
throws org.imixs.workflow.exceptions.PluginException
- ...
org.imixs.workflow.exceptions.PluginExceptionpublic org.imixs.workflow.ItemCollection findEntity(String id)
id - Copyright © 2011–2022 Imixs Software Solutions GmbH. All rights reserved.