Protected_afterProtected_changedProtected_dataProtected_eventProtected_eventProtected_fieldProtected_frontProtected_logProtected_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_snackProtected_taskthe service that holds the currently selected task, that is handled by the implementation of this class
Protected_taskProtected_taskProtected_taskProtected_taskProtected_translateProtected_updateProtected_userProtected_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.
Contains information about the success or failure of backend calls in [updateTaskDataFields]TaskDataService#updateTaskDataFields method.
ProtectedaddProtectedclearProtectedcompareCompares 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
ProtectedisProtectedisChecks whether the request could still be performed by the logged user
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.
ProtectedperformPerforms 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
ProtectedperformPerforms 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
ProtectedprocessProcesses 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
ProtectedprocessProcesses 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
ProtectedprocessProcesses 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
ProtectedprocessProcesses 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
ProtectedprocessProcesses 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
ProtectedrevertProtectedrevertProtectedsendPublishes a get/set data notification to the TaskEventService
Collects all changed data fields and notifies the backend of the changes.
If the request is successful clears the [changed]DataField#changed flag on all data fields that were a part of the request and emits a ChangedFields object into this object's [changedFields$]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
Protectedwasthe checked field
whether the field was updated on frontend and thus the backend should be notified
Handles the loading and updating of data fields and behaviour of a single Task object managed by a TaskContentService instance.