Shows a form
for a task.
Shows Cancel, Save, Complete, Claim and Release buttons. Cancel, Save and Complete buttons are always present. Claim and Release buttons are present according to user's permissions and task's condition (Claimed, Completed etc).
The following example shows the buttons that are visible when the task's condition is released and the user has the admin permissions
Save and Complete buttons get disabled when at least one of the form's inputs are invalid.
<adf-cloud-task-form
[appName]="appName"
[taskId]="taskId">
</adf-cloud-task-form>
Name | Type | Default value | Description |
---|---|---|---|
appName | string | "" | App id to fetch corresponding form and values. |
readOnly | boolean | false | Toggle readonly state of the task. |
showCancelButton | boolean | true | Toggle rendering of the Cancel button. |
showCompleteButton | boolean | true | Toggle rendering of the Complete button. |
showRefreshButton | boolean | false | Toggle rendering of the Refresh button. |
showTitle | boolean | true | Toggle rendering of the form title. |
showValidationIcon | boolean | true | Toggle rendering of the Validation icon. |
taskId | string | Task id to fetch corresponding form and values. |
Name | Type | Description |
---|---|---|
cancelClick | EventEmitter <string> | Emitted when the cancel button is clicked. |
error | EventEmitter <any> | Emitted when any error occurs. |
executeOutcome | EventEmitter < FormOutcomeEvent > | Emitted when any outcome is executed. Default behaviour can be prevented via event.preventDefault() . |
formCompleted | EventEmitter < FormModel > | Emitted when the form is submitted with the Complete outcome. |
formContentClicked | EventEmitter < ContentLinkModel > | Emitted when form content is clicked. |
formSaved | EventEmitter < FormModel > | Emitted when the form is saved. |
onTaskLoaded | EventEmitter < TaskDetailsCloudModel > | Emitted when a task is loaded`. |
taskClaimed | EventEmitter <string> | Emitted when the task is claimed. |
taskCompleted | EventEmitter <string> | Emitted when the task is completed. |
taskUnclaimed | EventEmitter <string> | Emitted when the task is unclaimed. |
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.