Interface CaseEventCreationListener
-
@Experimental public interface CaseEventCreationListener
An interface through which external observers can be notified about case-related events. Used to implement case-related notifications. It is here to avoid a dependency of case-impl (i.e. the producer of change notification events) on notification-impl (where change events are implemented). In the future, the specific events (case, model, resource objects, ...) PROBABLY will be implemented in the respective modules (case-impl, model-impl, provisioning-impl, etc). Then this interface will disappear.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCaseClosing(CaseType aCase, Task task, OperationResult result)
This method is called by cases module when a case is being closed.void
onCaseOpening(CaseType aCase, Task task, OperationResult result)
This method is called by cases module when a case is opened.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
onWorkItemClosing(ObjectReferenceType assignee, @NotNull CaseWorkItemType workItem, @Nullable WorkItemOperationInfo operationInfo, @Nullable WorkItemOperationSourceInfo sourceInfo, CaseType aCase, Task task, OperationResult result)
This method is called by cases module when a work item is being closed (completed or cancelled).void
onWorkItemCreation(ObjectReferenceType assignee, @NotNull CaseWorkItemType workItem, CaseType aCase, Task task, OperationResult result)
This method is called by cases 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)
-
-
-
Method Detail
-
onCaseOpening
void onCaseOpening(CaseType aCase, Task task, OperationResult result)
This method is called by cases module when a case is opened.- Parameters:
result
- implementer should report its result here
-
onCaseClosing
void onCaseClosing(CaseType aCase, Task task, OperationResult result)
This method is called by cases module when a case is being closed. (There is an uncertainty about closing vs closed state.)- 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 cases module when a work item is created.
-
onWorkItemClosing
void onWorkItemClosing(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 cases module when a work item is being closed (completed or cancelled).
-
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)
-
-