@Component(value="workflowService") public class WorkflowServiceImpl extends Object implements WorkflowService
Constructor and Description |
---|
WorkflowServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
approveOrRejectWorkItem(String taskId,
boolean decision,
OperationResult parentResult)
Approves or rejects a work item (without supplying any further information).
|
void |
approveOrRejectWorkItemWithDetails(String taskId,
PrismObject specific,
boolean decision,
OperationResult parentResult) |
int |
countProcessInstancesRelatedToUser(String userOid,
boolean requestedBy,
boolean requestedFor,
boolean finished,
OperationResult parentResult) |
int |
countWorkItemsRelatedToUser(String userOid,
boolean assigned,
OperationResult parentResult)
Counts Work Items related to a user.
|
void |
deleteProcessInstance(String instanceId,
OperationResult parentResult) |
List<? extends ObjectReferenceType> |
getApprovedBy(Task task,
OperationResult result) |
PrismContext |
getPrismContext() |
ProcessInstance |
getProcessInstanceByInstanceId(String instanceId,
boolean historic,
boolean getWorkItems,
OperationResult parentResult)
Returns information about a process instance.
|
ProcessInstance |
getProcessInstanceByTaskId(String taskId,
OperationResult parentResult) |
String |
getProcessInstanceDetailsPanelName(ProcessInstance processInstance) |
WorkItemDetailed |
getWorkItemDetailsByTaskId(String taskId,
OperationResult parentResult)
Provides detailed information about a given work item (may be inefficient, so use with care).
|
boolean |
isCurrentUserAuthorizedToSubmit(WorkItem workItem) |
boolean |
isEnabled() |
List<ProcessInstance> |
listProcessInstancesRelatedToUser(String userOid,
boolean requestedBy,
boolean requestedFor,
boolean finished,
int first,
int count,
OperationResult parentResult) |
List<WorkItem> |
listWorkItemsRelatedToUser(String userOid,
boolean assigned,
int first,
int count,
OperationResult parentResult)
Lists work items related to a user.
|
void |
registerProcessListener(ProcessListener processListener) |
void |
registerWorkItemListener(WorkItemListener workItemListener) |
void |
stopProcessInstance(String instanceId,
String username,
OperationResult parentResult) |
public int countWorkItemsRelatedToUser(String userOid, boolean assigned, OperationResult parentResult) throws WorkflowException
WorkflowService
countWorkItemsRelatedToUser
in interface WorkflowService
userOid
- OID of the userassigned
- whether to count assigned (true) or assignable (false) work itemsWorkflowException
public List<WorkItem> listWorkItemsRelatedToUser(String userOid, boolean assigned, int first, int count, OperationResult parentResult) throws WorkflowException
WorkflowService
listWorkItemsRelatedToUser
in interface WorkflowService
userOid
- OID of the userassigned
- whether to count assigned (true) or assignable (false) work itemsWorkflowException
public WorkItemDetailed getWorkItemDetailsByTaskId(String taskId, OperationResult parentResult) throws ObjectNotFoundException, WorkflowException
WorkflowService
getWorkItemDetailsByTaskId
in interface WorkflowService
ObjectNotFoundException
WorkflowException
public void approveOrRejectWorkItem(String taskId, boolean decision, OperationResult parentResult)
WorkflowService
approveOrRejectWorkItem
in interface WorkflowService
taskId
- identifier of activiti task backing the work itemdecision
- true = approve, false = rejectpublic void approveOrRejectWorkItemWithDetails(String taskId, PrismObject specific, boolean decision, OperationResult parentResult)
approveOrRejectWorkItemWithDetails
in interface WorkflowService
public int countProcessInstancesRelatedToUser(String userOid, boolean requestedBy, boolean requestedFor, boolean finished, OperationResult parentResult) throws WorkflowException
countProcessInstancesRelatedToUser
in interface WorkflowService
WorkflowException
public List<ProcessInstance> listProcessInstancesRelatedToUser(String userOid, boolean requestedBy, boolean requestedFor, boolean finished, int first, int count, OperationResult parentResult) throws WorkflowException
listProcessInstancesRelatedToUser
in interface WorkflowService
WorkflowException
public ProcessInstance getProcessInstanceByTaskId(String taskId, OperationResult parentResult) throws ObjectNotFoundException, WorkflowException
getProcessInstanceByTaskId
in interface WorkflowService
ObjectNotFoundException
WorkflowException
public ProcessInstance getProcessInstanceByInstanceId(String instanceId, boolean historic, boolean getWorkItems, OperationResult parentResult) throws ObjectNotFoundException, WorkflowException
WorkflowService
getProcessInstanceByInstanceId
in interface WorkflowService
ObjectNotFoundException
WorkflowException
public void stopProcessInstance(String instanceId, String username, OperationResult parentResult)
stopProcessInstance
in interface WorkflowService
public void deleteProcessInstance(String instanceId, OperationResult parentResult)
deleteProcessInstance
in interface WorkflowService
public boolean isEnabled()
isEnabled
in interface WorkflowService
public PrismContext getPrismContext()
getPrismContext
in interface WorkflowService
public String getProcessInstanceDetailsPanelName(ProcessInstance processInstance)
getProcessInstanceDetailsPanelName
in interface WorkflowService
public void registerProcessListener(ProcessListener processListener)
registerProcessListener
in interface WorkflowService
public void registerWorkItemListener(WorkItemListener workItemListener)
registerWorkItemListener
in interface WorkflowService
public List<? extends ObjectReferenceType> getApprovedBy(Task task, OperationResult result) throws SchemaException
getApprovedBy
in interface WorkflowService
SchemaException
public boolean isCurrentUserAuthorizedToSubmit(WorkItem workItem)
isCurrentUserAuthorizedToSubmit
in interface WorkflowService
Copyright © 2013 evolveum. All rights reserved.