Service that handles the logic of delegating a task.

Hierarchy (view full)

Constructors

Properties

_changedFieldsService: ChangedFieldsService
_eventQueue: EventQueueService
_eventService: EventService
_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.

_sideMenuService: SideMenuService
_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
_taskOperations: TaskOperations
_taskResourceService: TaskResourceService
_translate: TranslateService
_userAssignComponent: any

Accessors

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

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

    Parameters

    • afterAction: AfterAction

      the action that should be performed after the request is processed

    • delegatedTaskId: string

      id of the task that is being delegated

    • delegatedUserId: any

      id of the user whom the task is being delegated

    • nextEvent: AfterAction

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

    Returns void