Class TeamPlugin
- All Implemented Interfaces:
org.imixs.workflow.Plugin
- Direct Known Subclasses:
TeamPlugin
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:
- space.team
- space.Manager
- space.Assist
- space.Name
- space.ref
- process.Team
- process.Manager
- process.Assist
- process.name
- process.ref
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:
- namSpaceTeam
- namSpaceManager
- namSpaceAssist
- namSpaceName
- namProcessTeam
- namProcessManager
- namProcessAssist
- txtSpaceName
- txtProcessName
- Version:
- 2.0
- Author:
- rsoika
-
Field Summary
FieldsFields inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
INVALID_ITEMVALUE_FORMAT, INVALID_PROPERTYVALUE_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.imixs.workflow.ItemCollectionfindEntity(String id) Helper method to lookup an entity in internal cache or load it from databasevoidinit(org.imixs.workflow.WorkflowContext actx) Fetch workflowService and entityService from WorkflowContextorg.imixs.workflow.ItemCollectionrun(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.Methods inherited from class org.imixs.workflow.engine.plugins.AbstractPlugin
close, getCtx, getWorkflowService, mergeFieldList, uniqueList
-
Field Details
-
INVALID_REFERENCE_ASSIGNED_BY_MODEL
- See Also:
-
NO_PROCESS_ASSIGNED
- See Also:
-
-
Constructor Details
-
TeamPlugin
public TeamPlugin()
-
-
Method Details
-
init
public void init(org.imixs.workflow.WorkflowContext actx) throws org.imixs.workflow.exceptions.PluginException Fetch workflowService and entityService from WorkflowContext- Specified by:
initin interfaceorg.imixs.workflow.Plugin- Overrides:
initin classorg.imixs.workflow.engine.plugins.AbstractPlugin- Throws:
org.imixs.workflow.exceptions.PluginException
-
run
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection workItem, org.imixs.workflow.ItemCollection documentActivity) throws org.imixs.workflow.exceptions.PluginException 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.
If the workflowresultmessage contains a space entity reference the plugin
will update the reference in the property $uniqueIdRef.
Example:
- ...
- Throws:
org.imixs.workflow.exceptions.PluginException
-
findEntity
Helper method to lookup an entity in internal cache or load it from database- Parameters:
id-- Returns:
- entity or null if not exits
-