@Named public class ParticipantAdapter extends Object implements GenericAdapter, Serializable
The read and write access for a workitem can be defined by the BPMN model with the ACL Properties of the Imixs-BPMN modeler.
By defining an CDI alternative an application can overwrite the behavior of this bean.
| Modifier and Type | Field and Description |
|---|---|
protected WorkflowService |
workflowService |
| Constructor and Description |
|---|
ParticipantAdapter()
Default Constructor
|
ParticipantAdapter(WorkflowService workflowService)
CDI Constructor to inject WorkflowService
|
| Modifier and Type | Method and Description |
|---|---|
ItemCollection |
execute(ItemCollection document,
ItemCollection event) |
void |
mergeFieldList(ItemCollection documentContext,
List valueList,
List<String> fieldList)
This method merges the values of fieldList into valueList and test for
duplicates.
|
void |
mergeRoles(List valueList,
List sourceList,
ItemCollection documentContext)
This method merges the role names from a SourceList into a valueList and
removes duplicates.
|
void |
setWorkflowService(WorkflowService workflowService) |
List<?> |
uniqueList(List<Object> valueList)
This method removes duplicates and null values from a vector.
|
ItemCollection |
updateACL(ItemCollection workitem,
ItemCollection event,
ItemCollection nextTask)
This method updates the $readAccess and $writeAccess attributes of a WorkItem
depending to the configuration of a Activity Entity.
|
ItemCollection |
updateOwner(ItemCollection adocumentContext,
ItemCollection adocumentActivity,
ItemCollection nextTask)
changes the $Owner attribute depending to the activityentity or processEntity
The method prevents the field '$owner' of the documentcontext in case that
$owner is part of the
|
ItemCollection |
updateParticipants(ItemCollection workitem)
Update the $PARTICIPANTS.
|
protected WorkflowService workflowService
public ParticipantAdapter()
@Inject public ParticipantAdapter(WorkflowService workflowService)
workflowService - public ItemCollection execute(ItemCollection document, ItemCollection event) throws AdapterException
execute in interface AdapterAdapterExceptionpublic void setWorkflowService(WorkflowService workflowService)
public ItemCollection updateParticipants(ItemCollection workitem)
workitem - public ItemCollection updateACL(ItemCollection workitem, ItemCollection event, ItemCollection nextTask) throws PluginException
PluginExceptionpublic ItemCollection updateOwner(ItemCollection adocumentContext, ItemCollection adocumentActivity, ItemCollection nextTask) throws PluginException
PluginExceptionpublic void mergeFieldList(ItemCollection documentContext, List valueList, List<String> fieldList)
valueList - fieldList - public List<?> uniqueList(List<Object> valueList)
valueList - - list of elementspublic void mergeRoles(List valueList, List sourceList, ItemCollection documentContext) throws PluginException
valueList - sourceList - PluginExceptionCopyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.