Throws an error if the TaskContentService didn't have the Task object set yet.
the Task object held by TaskContentService.
the Task object held by TaskContentService or undefined
if the Service currently holds no Task.
Completes all the action streams and sends the notification, with the provided result
Reloads the task and emits true
to the afterAction
stream
Performs the 'delegate' operation on the task held by TaskContentService.
Doesn't send any requests if the loading indicator is in it's active state. Otherwise sets the indicator to the active state and disables it once the request response is received.
The argument can be used to chain operations together, or to execute code conditionally based on the success state of the delegate operation.
If the task held within the TaskContentService changes before a response is received, the response will be ignored
and the afterAction
will not be executed.
if delegate completes successfully true
will be emitted into this Subject, otherwise false
will be emitted
true
if a Task instance is set, false
otherwise
Checks 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.
Performs a delegate
request on the task currently stored in the taskContent
service
the action that should be performed after the request is processed
id of the task that is being delegated
id of the user whom the task is being delegated
indicates to the event queue that the next event can be processed
Publishes a delegate notification to the TaskEventService
whether the delegate operation was successful or not
Generated using TypeDoc
Service that handles the logic of delegating a task.