@Component(value="workflowManager") public class WorkflowManagerImpl extends Object implements WorkflowManager, TaskDeletionListener
Constructor and Description |
---|
WorkflowManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
approveOrRejectWorkItem(String taskId,
boolean decision,
String comment,
OperationResult parentResult)
Approves or rejects a work item (without supplying any further information).
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
augmentTaskObject(PrismObject<T> object,
Collection<SelectorOptions<GetOperationOptions>> options,
Task task,
OperationResult result) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
augmentTaskObjectList(SearchResultList<PrismObject<T>> list,
Collection<SelectorOptions<GetOperationOptions>> options,
Task task,
OperationResult result) |
void |
claimWorkItem(String workItemId,
OperationResult result) |
<T extends Containerable> |
countContainers(Class<T> type,
ObjectQuery query,
Collection<SelectorOptions<GetOperationOptions>> options,
OperationResult parentResult) |
List<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> |
getApprovedBy(Task task,
OperationResult result) |
ChangesByState |
getChangesByState(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask,
ModelInteractionService modelInteractionService,
PrismContext prismContext,
OperationResult result) |
ChangesByState |
getChangesByState(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType childTask,
com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask,
ModelInteractionService modelInteractionService,
PrismContext prismContext,
OperationResult result) |
MiscDataUtil |
getMiscDataUtil() |
PrismContext |
getPrismContext() |
WfTaskUtil |
getWfTaskUtil() |
void |
initialize() |
boolean |
isCurrentUserAuthorizedToClaim(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem) |
boolean |
isCurrentUserAuthorizedToSubmit(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem) |
boolean |
isEnabled() |
void |
onTaskDelete(Task task,
OperationResult result)
Called when a given task is to be deleted.
|
void |
registerProcessListener(ProcessListener processListener) |
void |
registerWorkItemListener(WorkItemListener workItemListener) |
void |
releaseWorkItem(String workItemId,
OperationResult result) |
<T extends Containerable> |
searchContainers(Class<T> type,
ObjectQuery query,
Collection<SelectorOptions<GetOperationOptions>> options,
OperationResult parentResult) |
void |
stopProcessInstance(String instanceId,
String username,
OperationResult parentResult) |
void |
synchronizeWorkflowRequests(OperationResult parentResult) |
@PostConstruct public void initialize()
public <T extends Containerable> Integer countContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException
countContainers
in interface WorkflowManager
SchemaException
public <T extends Containerable> SearchResultList<T> searchContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException
searchContainers
in interface WorkflowManager
SchemaException
public void approveOrRejectWorkItem(String taskId, boolean decision, String comment, OperationResult parentResult) throws SecurityViolationException
WorkflowManager
approveOrRejectWorkItem
in interface WorkflowManager
taskId
- identifier of activiti task backing the work itemdecision
- true = approve, false = rejectSecurityViolationException
public void claimWorkItem(String workItemId, OperationResult result) throws ObjectNotFoundException, SecurityViolationException
claimWorkItem
in interface WorkflowManager
ObjectNotFoundException
SecurityViolationException
public void releaseWorkItem(String workItemId, OperationResult result) throws SecurityViolationException, ObjectNotFoundException
releaseWorkItem
in interface WorkflowManager
SecurityViolationException
ObjectNotFoundException
public void stopProcessInstance(String instanceId, String username, OperationResult parentResult)
stopProcessInstance
in interface WorkflowManager
public void synchronizeWorkflowRequests(OperationResult parentResult)
synchronizeWorkflowRequests
in interface WorkflowManager
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void augmentTaskObject(PrismObject<T> object, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result)
augmentTaskObject
in interface WorkflowManager
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void augmentTaskObjectList(SearchResultList<PrismObject<T>> list, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result)
augmentTaskObjectList
in interface WorkflowManager
public void onTaskDelete(Task task, OperationResult result)
TaskDeletionListener
onTaskDelete
in interface TaskDeletionListener
public boolean isEnabled()
isEnabled
in interface WorkflowManager
public PrismContext getPrismContext()
getPrismContext
in interface WorkflowManager
public WfTaskUtil getWfTaskUtil()
public MiscDataUtil getMiscDataUtil()
public void registerProcessListener(ProcessListener processListener)
registerProcessListener
in interface WorkflowManager
public void registerWorkItemListener(WorkItemListener workItemListener)
registerWorkItemListener
in interface WorkflowManager
public List<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> getApprovedBy(Task task, OperationResult result) throws SchemaException
getApprovedBy
in interface WorkflowManager
SchemaException
public boolean isCurrentUserAuthorizedToSubmit(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem)
isCurrentUserAuthorizedToSubmit
in interface WorkflowManager
public boolean isCurrentUserAuthorizedToClaim(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem)
isCurrentUserAuthorizedToClaim
in interface WorkflowManager
public ChangesByState getChangesByState(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask, ModelInteractionService modelInteractionService, PrismContext prismContext, OperationResult result) throws SchemaException, ObjectNotFoundException
getChangesByState
in interface WorkflowManager
SchemaException
ObjectNotFoundException
public ChangesByState getChangesByState(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType childTask, com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask, ModelInteractionService modelInteractionService, PrismContext prismContext, OperationResult result) throws SchemaException, ObjectNotFoundException
getChangesByState
in interface WorkflowManager
SchemaException
ObjectNotFoundException
Copyright © 2016 evolveum. All rights reserved.