Protected_selectedan optional service, that holds the currently selected case.
It should be injected with the @Optional() annotation, since it might not be always provided.
Protected_taskthe service that holds the currently selected task, that is handled by the implementation of this class
Protected_taskProtected_safeThrows an error if the TaskContentService didn't have the Task object set yet.
the Task object held by TaskContentService.
Protected_taskthe Task object held by TaskContentService or undefined if the Service currently holds no Task.
Provides information about results of events executed on the managed Task
Protectedistrue if a Task instance is set, false otherwise
ProtectedisChecks whether the current state of the TaskContentService and optionally if the SelectedCaseService, is still relevant to the task that was requested.
This method is useful if you use UnlimitedTaskContentService, or a similar implementation. It is possible for the currently "selected" task to change in-between a backend request was sent and the response was received. In that case the response is no longer relevant and should be discarded, otherwise an illegal task state could be achieved on frontend.
the stringId of the requested task
true if the requested task is still relevant to the state of the frontend. Returns false otherwise.
Emits a new TaskEventNotification into the notifications stream
the event information that will be pushed into the stream
Holds logic about the available operations on a Task object based on it's state.
Beware that it gets the Task from (@link TaskContentService) instance and thus the task might not be always initialized. If the task is not initialized this class cannot work properly.