Package com.evolveum.midpoint.wf.api
Interface WorkflowListener
-
public interface WorkflowListener
An interface through which external observers can be notified about workflow related events. Used e.g. for implementing workflow-related notifications. EXPERIMENTAL. This interface may change in near future.- Author:
- mederly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onProcessInstanceEnd(CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a process instance ends.void
onProcessInstanceStart(CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a process instance successfully starts.void
onWorkItemAllocationChangeCurrentActors(@NotNull CaseWorkItemType workItem, @NotNull WorkItemAllocationChangeOperationInfo operationInfo, @Nullable WorkItemOperationSourceInfo sourceInfo, Duration timeBefore, CaseType aCase, Task task, OperationResult result)
EXPERIMENTALvoid
onWorkItemAllocationChangeNewActors(@NotNull CaseWorkItemType workItem, @NotNull WorkItemAllocationChangeOperationInfo operationInfo, @Nullable WorkItemOperationSourceInfo sourceInfo, CaseType aCase, Task task, OperationResult result)
void
onWorkItemCreation(ObjectReferenceType assignee, @NotNull CaseWorkItemType workItem, CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a work item is created.void
onWorkItemCustomEvent(ObjectReferenceType assignee, @NotNull CaseWorkItemType workItem, @NotNull WorkItemNotificationActionType notificationAction, @Nullable WorkItemEventCauseInformationType cause, CaseType aCase, Task task, OperationResult result)
void
onWorkItemDeletion(ObjectReferenceType assignee, @NotNull CaseWorkItemType workItem, @Nullable WorkItemOperationInfo operationInfo, @Nullable WorkItemOperationSourceInfo sourceInfo, CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a work item is completed.
-
-
-
Method Detail
-
onProcessInstanceStart
void onProcessInstanceStart(CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a process instance successfully starts.- Parameters:
result
- implementer should report its result here
-
onProcessInstanceEnd
void onProcessInstanceEnd(CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a process instance ends.- Parameters:
result
- implementer should report its result here
-
onWorkItemCreation
void onWorkItemCreation(ObjectReferenceType assignee, @NotNull @NotNull CaseWorkItemType workItem, CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a work item is created.
-
onWorkItemDeletion
void onWorkItemDeletion(ObjectReferenceType assignee, @NotNull @NotNull CaseWorkItemType workItem, @Nullable @Nullable WorkItemOperationInfo operationInfo, @Nullable @Nullable WorkItemOperationSourceInfo sourceInfo, CaseType aCase, Task task, OperationResult result)
This method is called by wf module when a work item is completed.
-
onWorkItemCustomEvent
void onWorkItemCustomEvent(ObjectReferenceType assignee, @NotNull @NotNull CaseWorkItemType workItem, @NotNull @NotNull WorkItemNotificationActionType notificationAction, @Nullable @Nullable WorkItemEventCauseInformationType cause, CaseType aCase, Task task, OperationResult result)
-
onWorkItemAllocationChangeCurrentActors
void onWorkItemAllocationChangeCurrentActors(@NotNull @NotNull CaseWorkItemType workItem, @NotNull @NotNull WorkItemAllocationChangeOperationInfo operationInfo, @Nullable @Nullable WorkItemOperationSourceInfo sourceInfo, Duration timeBefore, CaseType aCase, Task task, OperationResult result)
EXPERIMENTAL
-
onWorkItemAllocationChangeNewActors
void onWorkItemAllocationChangeNewActors(@NotNull @NotNull CaseWorkItemType workItem, @NotNull @NotNull WorkItemAllocationChangeOperationInfo operationInfo, @Nullable @Nullable WorkItemOperationSourceInfo sourceInfo, CaseType aCase, Task task, OperationResult result)
-
-