Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TaskHandlingService Abstract

Holds the common functionality for all Services that work with a single Task object.

Hierarchy

Index

Constructors

Properties

_selectedCaseService: SelectedCaseService = null
_taskContentService: TaskContentService

Accessors

  • get _safeTask(): Task

Methods

  • isTaskPresent(): boolean
  • isTaskRelevant(requestedTaskId: string): boolean
  • 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.

    Parameters

    • requestedTaskId: string

      the stringId of the requested task

    Returns boolean

    true if the requested task is still relevant to the state of the frontend. Returns false otherwise.

Generated using TypeDoc