Options
All
  • Public
  • Public/Protected
  • All
Menu

Service that handles the logic of delegating a task.

Hierarchy

Index

Constructors

Properties

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

Accessors

  • get _safeTask(): Task

Methods

  • Performs the 'delegate' 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 delegate 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 delegate completes successfully true will be emitted into this Subject, otherwise false will be emitted

    Returns void

  • isTaskPresent(): boolean
  • isTaskRelevant(requestedTaskId: string): boolean
  • performDelegateRequest(afterAction: AfterAction, delegatedTaskId: string, delegatedUserId: any, nextEvent: AfterAction): void

Generated using TypeDoc