Class TaskContentServiceAbstract

Acts as a communication interface between the Component that renders Task content and it's parent Component. Also provides some general functionality that is needed when working with task content.

Notable example of a parent Component is the AbstractTaskPanelComponent.

Notable example of a task content renderer is the AbstractTaskContentComponent.

Hierarchy (view full)

Implements

  • OnDestroy

Constructors

Properties

_fieldConverterService: FieldConverterService
_isExpanding$: BehaviorSubject<boolean>
_logger: LoggerService
_referencedTaskAndCaseIds: {
    [caseId: string]: string[];
} = {}
_snackBarService: SnackBarService
_task: Task
_taskDataReloadRequest$: Subject<Change>
_taskFieldsIndex: {
    [taskId: string]: TaskFields;
} = {}
_translate: TranslateService
$shouldCreate: ReplaySubject<DataGroup[]>
$shouldCreateCounter: BehaviorSubject<number>
ACTION: "action" = 'action'
FRONTEND_ACTIONS_KEY: "_frontend_actions" = '_frontend_actions'

Accessors

Methods

  • Checks the validity of all data fields in the managed Task.

    If some of the fields are invalid touches them so their validation errors will appear (if set). A snackbar will also be displayed to the user, informing them of the fact that the fields are invalid.

    Parameters

    • OptionaltaskId: string

    Returns boolean

    whether the task is valid or not