Service that handles the logic of canceling a task.

Hierarchy (view full)

Constructors

Properties

_changedFieldsService: ChangedFieldsService
_eventQueue: EventQueueService
_eventService: EventService
_frontActionService: FrontActionService
_selectedCaseService: SelectedCaseService = null

an optional service, that holds the currently selected case. It should be injected with the @Optional() annotation, since it might not be always provided.

_snackBar: SnackBarService
_taskContentService: TaskContentService

the service that holds the currently selected task, that is handled by the implementation of this class

_taskDataService: TaskDataService
_taskEvent: TaskEventService
_taskEventService: TaskEventService
_taskOperations: TaskOperations
_taskResourceService: TaskResourceService
_taskViewService: TaskViewService
_translate: TranslateService
_userComparator: UserComparatorService
permissionService: PermissionService

Accessors

Methods

  • Performs the 'cancel' 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 cancel 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.

    Parameters

    • afterAction: AfterAction = ...

      if cancel completes successfully true will be emitted into this Subject, otherwise false will be emitted

    Returns void

  • Calls the endpoint and processes the possible responses.

    Parameters

    • afterAction: AfterAction = ...

      the action that should be performed after the request is processed

    • canceledTaskId: string

      the id of the task that is being canceled

    • nextEvent: AfterAction = ...

      indicates to the event queue that the next event can be processed

    • forceReload: boolean

      whether a force reload of the task data should be performed after cancel. If set to false a regular reload is performed instead.

    Returns void

  • Performs a cancel request on the task currently stored in the taskContent service

    Parameters

    • afterAction: AfterAction

      the action that should be performed after the request is processed

    • nextEvent: AfterAction

      indicates to the event queue that the next event can be processed

    • forceReload: boolean

      whether a force reload of the task data should be performed after cancel. If set to false a regular reload is performed instead.

    Returns void