Shows a form for a task.

Basic Usage

<adf-task-form 
    [taskId]="taskId">
</adf-task-form>

Class members

Properties

NameTypeDefault valueDescription
fieldValidatorsFormFieldValidator[][]Field validators for use with the form.
readOnlyFormbooleanfalseToggles read-only state of the form. All form widgets render as read-only if enabled.
showCancelButtonbooleantrueToggle rendering of the Cancel button.
showFormCompleteButtonbooleantrueToggles rendering of the Complete outcome button.
showFormRefreshButtonbooleantrueToggles rendering of the Refresh button.
showFormSaveButtonbooleantrueToggles rendering of the Save outcome button.
showFormTitlebooleanfalseToggles rendering of the form title.
showFormValidationIconbooleantrueToggle rendering of the validation icon next to the form title.
taskIdstring(required) The id of the task whose details we are asking for.

Events

NameTypeDescription
cancelEventEmitter<void>Emitted when the "Cancel" button is clicked.
completedEventEmitter<void>Emitted when the form associated with the task is completed.
errorEventEmitter<any>Emitted when an error occurs.
executeOutcomeEventEmitter<FormOutcomeEvent>Emitted when any outcome is executed. Default behaviour can be prevented via event.preventDefault().
formCompletedEventEmitter<FormModel>Emitted when the form is submitted with the Complete outcome.
formContentClickedEventEmitter<ContentLinkModel>Emitted when the form field content is clicked.
formErrorEventEmitter<FormFieldModel[]>Emitted when the supplied form values have a validation error.
formLoadedEventEmitter<FormModel>Emitted when the form is loaded or reloaded.
formSavedEventEmitter<FormModel>Emitted when the form is submitted with the Save or custom outcomes.
showAttachFormEventEmitter<void>Emitted when the form associated with the form task is attached.
taskClaimedEventEmitter<string>Emitted when the task is claimed.
taskUnclaimedEventEmitter<string>Emitted when the task is unclaimed (ie, requeued)..

See also

© 2023 Alfresco Software, Inc. All Rights Reserved.