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.
Contains information about the success or failure of backend calls in [updateTaskDataFields]{@link TaskDataService#updateTaskDataFields} method.
Compares the values that are in the backend compatible format as given by the FieldConverterService and determines whether they are the same value, or not.
the current value (can also be called value1 or left)
the new value (can also be called value2 or right)
true if the values are the same and false otherwise
Loads the Data Fields of an uninitialized Task from backend and populates the Task managed by TaskContentService with the appropriate objects.
Beware that if the Task has some data already loaded this function does nothing
and only passes true to the afterAction argument.
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 the request completes successfully emits true into the Subject, otherwise false will be emitted
set to true if you need force reload of all task data
Checks whether the request could still be performed by the logged user
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 getData request on the task currently stored in the taskContent service
the action that should be performed after the request is processed
set to true if you need force reload of all task data
indicates to the event queue that the next event can be processed
Performs a setData request on the task currently stored in the taskContent service
ID of the task
context of the setData request
the action that should be performed after the request is processed
indicates to the event queue that the next event can be processed
Processes an erroneous outcome of a getData request
the ID of the task whose data was requested
the returned error
the action that should be performed after the request is processed
indicates to the event queue that the next event can be processed
Processes an erroneous outcome of a setData request
the ID of the task whose data was set
the returned error
the action that should be performed after the request is processed
indicates to the event queue that the next event can be processed
Processes a successful outcome of a getData request
the ID of the task whose data was requested
the returned data groups of the task
the action that should be performed after the request is processed
indicates to the event queue that the next event can be processed
Processes a successful outcome of a setData request
the ID of the task whose data was set
the resulting Event outcome of the set data request
the action that should be performed after the request is processed
indicates to the event queue that the next event can be processed
hold the data that was sent in request
Processes an unsuccessful outcome of a setData request
the ID of the task whose data was set
the resulting Event outcome of the set data request
the action that should be performed after the request is processed
indicates to the event queue that the next event can be processed
Reverts the effects of a failed setData request, so that the user sees current values.
the context of the failed request
Publishes a get/set data notification to the TaskEventService
the event that occurred to the task
whether the get/set data operation was successful or not
Collects all changed data fields and notifies the backend of the changes.
If the request is successful clears the [changed]{@link DataField#changed} flag on all data fields that were a part of the request and emits a ChangedFields object into this object's [changedFields$]{@link TaskDataService#changedFields$} stream.
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 the request completes successfully emits true into the Subject, otherwise false will be emitted
the checked field
whether the field was updated on frontend and thus the backend should be notified
Generated using TypeDoc
Handles the loading and updating of data fields and behaviour of a single Task object managed by a TaskContentService instance.