Options
All
  • Public
  • Public/Protected
  • All
Menu

Service that handles the logic of assigning a task.

Hierarchy

Index

Constructors

Properties

_changedFieldsService: ChangedFieldsService
_eventQueue: EventQueueService
_eventService: EventService
_selectedCaseService: SelectedCaseService = null
_snackBar: SnackBarService
_taskContentService: TaskContentService
_taskDataService: TaskDataService
_taskEvent: TaskEventService
_taskOperations: TaskOperations
_taskResourceService: TaskResourceService
_taskViewService: TaskViewService
_translate: TranslateService

Accessors

  • get _safeTask(): Task

Methods

  • 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.

    Parameters

    • afterAction: AfterAction = ...

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

    Returns void

  • assignRequest(afterAction?: AfterAction, assignedTaskId: string, nextEvent?: AfterAction, forceReload: boolean): void
  • Calls the endpoint and processes the possible responses.

    Parameters

    • afterAction: AfterAction = ...

      the action that should be performed after the request is processed

    • assignedTaskId: string

      the id of the task that is being assigned

    • 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 assign. If set to false a regular reload is performed instead.

    Returns void

  • isTaskPresent(): boolean
  • isTaskRelevant(requestedTaskId: string): boolean
  • Performs an assign 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 assign. If set to false a regular reload is performed instead.

    Returns void

Generated using TypeDoc