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.
Performs the 'assign' 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 assign 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 assign completes successfully true
will be emitted into this Subject, otherwise false
will be emitted
Calls the endpoint and processes the possible responses.
the action that should be performed after the request is processed
the id of the task that is being assigned
indicates to the event queue that the next event can be processed
whether a force reload of the task data should be performed after assign.
If set to false
a regular reload is performed instead.
complete all action streams and send notification with selected boolean
Reloads the task and emits true
to the afterAction
stream
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 an assign
request on the task currently stored in the taskContent
service
the action that should be performed after the request is processed
indicates to the event queue that the next event can be processed
whether a force reload of the task data should be performed after assign.
If set to false
a regular reload is performed instead.
Publishes an assign notification to the TaskEventService
whether the assign operation was successful or not
Generated using TypeDoc
Service that handles the logic of assigning a task.