public interface WorkflowService
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 result) |
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) |
int countWorkItemsRelatedToUser(String userOid, boolean assigned, OperationResult parentResult) throws WorkflowException
userOid
- OID of the userassigned
- whether to count assigned (true) or assignable (false) work itemsparentResult
- WorkflowException
List<WorkItem> listWorkItemsRelatedToUser(String userOid, boolean assigned, int first, int count, OperationResult parentResult) throws WorkflowException
userOid
- OID of the userassigned
- whether to count assigned (true) or assignable (false) work itemsfirst
- count
- parentResult
- WorkflowException
WorkItemDetailed getWorkItemDetailsByTaskId(String taskId, OperationResult parentResult) throws ObjectNotFoundException, WorkflowException
taskId
- parentResult
- ObjectNotFoundException
WorkflowException
int countProcessInstancesRelatedToUser(String userOid, boolean requestedBy, boolean requestedFor, boolean finished, OperationResult parentResult) throws WorkflowException
WorkflowException
List<ProcessInstance> listProcessInstancesRelatedToUser(String userOid, boolean requestedBy, boolean requestedFor, boolean finished, int first, int count, OperationResult parentResult) throws WorkflowException
WorkflowException
ProcessInstance getProcessInstanceByTaskId(String taskId, OperationResult parentResult) throws ObjectNotFoundException, WorkflowException
ProcessInstance getProcessInstanceByInstanceId(String instanceId, boolean historic, boolean getWorkItems, OperationResult parentResult) throws ObjectNotFoundException, WorkflowException
instanceId
- historic
- getWorkItems
- parentResult
- ObjectNotFoundException
WorkflowException
void approveOrRejectWorkItem(String taskId, boolean decision, OperationResult parentResult)
taskId
- identifier of activiti task backing the work itemdecision
- true = approve, false = rejectparentResult
- void approveOrRejectWorkItemWithDetails(String taskId, PrismObject specific, boolean decision, OperationResult result)
void stopProcessInstance(String instanceId, String username, OperationResult parentResult)
void deleteProcessInstance(String instanceId, OperationResult parentResult)
boolean isEnabled()
PrismContext getPrismContext()
String getProcessInstanceDetailsPanelName(ProcessInstance processInstance)
void registerProcessListener(ProcessListener processListener)
void registerWorkItemListener(WorkItemListener workItemListener)
List<? extends ObjectReferenceType> getApprovedBy(Task task, OperationResult result) throws SchemaException
SchemaException
boolean isCurrentUserAuthorizedToSubmit(WorkItem workItem)
Copyright © 2013 evolveum. All rights reserved.