diff --git a/docs/process-services-cloud/components/form-cloud.component.md b/docs/process-services-cloud/components/form-cloud.component.md index a1ed2c1c8c..53fe935c9e 100644 --- a/docs/process-services-cloud/components/form-cloud.component.md +++ b/docs/process-services-cloud/components/form-cloud.component.md @@ -85,11 +85,13 @@ The template defined inside `empty-form` will be shown when no form definition i | fieldValidators | [`FormFieldValidator`](../../../lib/core/src/lib/form/components/widgets/core/form-field-validator.ts)`[]` | | [FormFieldValidator](../../../lib/core/src/lib/form/components/widgets/core/form-field-validator.ts) allow to override the form field validators provided. | | form | [`FormModel`](../../../lib/core/src/lib/form/components/widgets/core/form.model.ts) | | Underlying form model instance. | | formId | `string` | | Task id to fetch corresponding form and values. | +| isNextTaskCheckboxChecked | `boolean` | false | Whether the `Open next task` checkbox is checked by default or not. | | nameNode | `string` | | Name to assign to the new node where the metadata are stored. | | path | `string` | | Path of the folder where the metadata will be stored. | | processInstanceId | `string` | | ProcessInstanceId id to fetch corresponding form and values. | | readOnly | `boolean` | false | Toggle readonly state of the form. Forces all form widgets to render as readonly if enabled. | | showCompleteButton | `boolean` | true | Toggle rendering of the `Complete` outcome button. | +| showNextTaskCheckbox | `boolean` | false | Toggle rendering of the `Open next task` checkbox. | | showRefreshButton | `boolean` | true | Toggle rendering of the `Refresh` button. | | showSaveButton | `boolean` | true | Toggle rendering of the `Save` outcome button. | | showTitle | `boolean` | true | Toggle rendering of the form title. | @@ -111,6 +113,7 @@ The template defined inside `empty-form` will be shown when no form definition i | formSaved | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormModel`](../../../lib/core/src/lib/form/components/widgets/core/form.model.ts)`>` | Emitted when the form is submitted with the `Save` or custom outcomes. | | displayModeOn | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloudDisplayModeConfiguration`](../../../lib/process-services-cloud/src/lib/services/form-fields.interfaces.ts)`>` | Emitted when a display mode configuration is turned on. | | displayModeOff | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloudDisplayModeConfiguration`](../../../lib/process-services-cloud/src/lib/services/form-fields.interfaces.ts)`>` | Emitted when a display mode configuration is turned off. | +| nextTaskCheckboxCheckedChanged | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`MatCheckboxChange`](https://material.angular.io/components/checkbox/api#MatCheckboxChange)`>` | Emitted when the `Open next task` checkbox was toggled. | ## Details diff --git a/docs/process-services-cloud/components/start-process-cloud.component.md b/docs/process-services-cloud/components/start-process-cloud.component.md index cd2052622b..a263be81d0 100644 --- a/docs/process-services-cloud/components/start-process-cloud.component.md +++ b/docs/process-services-cloud/components/start-process-cloud.component.md @@ -37,9 +37,11 @@ Starts a process. | Name | Type | Default value | Description | | ---- | ---- | ------------- | ----------- | | appName | `string` | "" | (required) Name of the app. | +| isNextTaskCheckboxChecked | `boolean` | false | Whether the `Open next task` checkbox is checked by default or not. | | maxNameLength | `number` | MAX_NAME_LENGTH | Maximum length of the process name. | | name | `string` | "" | Name of the process. | | processDefinitionName | `string` | | Name of the process definition. | +| showNextTaskCheckbox | `boolean` | false | Toggle rendering of the `Open next task` checkbox. | | showSelectProcessDropdown | `boolean` | true | Show/hide the process dropdown list. | | showTitle | `boolean` | true | Show/hide title. | | values | [`TaskVariableCloud`](../../../lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts)`[]` | | Parameter to pass form field values in the start form if one is associated. | @@ -52,6 +54,7 @@ Starts a process. | cancel | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`ProcessInstanceCloud`](../../../lib/process-services-cloud/src/lib/process/start-process/models/process-instance-cloud.model.ts)`>` | Emitted when the starting process is cancelled | | error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`ProcessInstanceCloud`](../../../lib/process-services-cloud/src/lib/process/start-process/models/process-instance-cloud.model.ts)`>` | Emitted when an error occurs. | | formContentClicked | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`ContentLinkModel`](../../../lib/core/src/lib/form/components/widgets/core/content-link.model.ts)`>` | Emitted when form content is clicked. | +| nextTaskCheckboxCheckedChanged | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`MatCheckboxChange`](https://material.angular.io/components/checkbox/api#MatCheckboxChange)`>` | Emitted when the `Open next task` checkbox was toggled. | | processDefinitionSelection | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`ProcessDefinitionCloud`](../../../lib/process-services-cloud/src/lib/models/process-definition-cloud.model.ts)`>` | Emitted when process definition selection changes. | | success | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`ProcessInstanceCloud`](../../../lib/process-services-cloud/src/lib/process/start-process/models/process-instance-cloud.model.ts)`>` | Emitted when the process is successfully started. | diff --git a/docs/process-services-cloud/components/task-form-cloud.component.md b/docs/process-services-cloud/components/task-form-cloud.component.md index e8e4776256..765998fad0 100644 --- a/docs/process-services-cloud/components/task-form-cloud.component.md +++ b/docs/process-services-cloud/components/task-form-cloud.component.md @@ -33,34 +33,37 @@ Save and Complete buttons get disabled when at least one of the form's inputs ar ### Properties -| 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. | -| displayModeConfigurations | `FormCloudDisplayModeConfiguration[]` | | The available display configurations for the form | +| Name | Type | Default value | Description | +| ------------------------- | ------------------------------------- | ------------- | ------------------------------------------------------------------- | +| appName | `string` | "" | App id to fetch corresponding form and values. | +| isNextTaskCheckboxChecked | `boolean` | false | Whether the `Open next task` checkbox is checked by default or not. | +| 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. | +| showNextTaskCheckbox | `boolean` | false | Toggle rendering of the `Open next task` checkbox. | +| 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. | +| displayModeConfigurations | `FormCloudDisplayModeConfiguration[]` | | The available display configurations for the form | ### Events -| Name | Type | Description | -|--------------------|---------------------------------------------------|--------------------------------------------------------------------------------------------------------| -| cancelClick | `EventEmitter` | Emitted when the cancel button is clicked. | -| error | `EventEmitter` | Emitted when any error occurs. | -| executeOutcome | `EventEmitter` | Emitted when any outcome is executed. Default behaviour can be prevented via `event.preventDefault()`. | -| formCompleted | `EventEmitter` | Emitted when the form is submitted with the `Complete` outcome. | -| formContentClicked | `EventEmitter` | Emitted when form content is clicked. | -| formSaved | `EventEmitter` | Emitted when the form is saved. | -| onTaskLoaded | `EventEmitter` | Emitted when a task is loaded. | -| taskClaimed | `EventEmitter` | Emitted when the task is claimed. | -| taskCompleted | `EventEmitter` | Emitted when the task is completed. | -| taskUnclaimed | `EventEmitter` | Emitted when the task is unclaimed. | -| displayModeOn | `EventEmitter` | Emitted when a display mode configuration is turned on. | -| displayModeOff | `EventEmitter` | Emitted when a display mode configuration is turned off. | +| Name | Type | Description | +| ------------------------------ | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | +| cancelClick | `EventEmitter` | Emitted when the cancel button is clicked. | +| error | `EventEmitter` | Emitted when any error occurs. | +| executeOutcome | `EventEmitter` | Emitted when any outcome is executed. Default behaviour can be prevented via `event.preventDefault()`. | +| formCompleted | `EventEmitter` | Emitted when the form is submitted with the `Complete` outcome. | +| formContentClicked | `EventEmitter` | Emitted when form content is clicked. | +| formSaved | `EventEmitter` | Emitted when the form is saved. | +| nextTaskCheckboxCheckedChanged | `EventEmitter` | Emitted when the `Open next task` checkbox was toggled. | +| onTaskLoaded | `EventEmitter` | Emitted when a task is loaded. | +| taskClaimed | `EventEmitter` | Emitted when the task is claimed. | +| taskCompleted | `EventEmitter` | Emitted when the task is completed. | +| taskUnclaimed | `EventEmitter` | Emitted when the task is unclaimed. | +| displayModeOn | `EventEmitter` | Emitted when a display mode configuration is turned on. | +| displayModeOff | `EventEmitter` | Emitted when a display mode configuration is turned off. | #### Enabling fullscreen display for the form of the task diff --git a/docs/process-services-cloud/components/user-task-cloud.component.md b/docs/process-services-cloud/components/user-task-cloud.component.md index 7c1c8c79da..2170128d4b 100644 --- a/docs/process-services-cloud/components/user-task-cloud.component.md +++ b/docs/process-services-cloud/components/user-task-cloud.component.md @@ -33,31 +33,33 @@ Based on property taskDetails: TaskDetailsCloudModel shows a form or a screen. ### Properties -| 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. | -| 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. | -| displayModeConfigurations | `FormCloudDisplayModeConfiguration[]` | | The available display configurations for the form | +| Name | Type | Default value | Description | +| ------------------------- | ------------------------------------- | ------------- | ------------------------------------------------------------------- | +| appName | `string` | "" | App id to fetch corresponding form and values. | +| isNextTaskCheckboxChecked | `boolean` | false | Whether the `Open next task` checkbox is checked by default or not. | +| 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. | +| showNextTaskCheckbox | `boolean` | false | Toggle rendering of the `Open next task` checkbox. | +| 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. | +| displayModeConfigurations | `FormCloudDisplayModeConfiguration[]` | | The available display configurations for the form | ### Events -| Name | Type | Description | -|--------------------|---------------------------------------------------|--------------------------------------------------------------------------------------------------------| -| cancelClick | `EventEmitter` | Emitted when the cancel button is clicked. | -| error | `EventEmitter` | Emitted when any error occurs. | -| executeOutcome | `EventEmitter` | Emitted when any outcome is executed. Default behaviour can be prevented via `event.preventDefault()`. | -| formContentClicked | `EventEmitter` | Emitted when form content is clicked. | -| formSaved | `EventEmitter` | Emitted when the form is saved. | -| onTaskLoaded | `EventEmitter` | Emitted when a task is loaded. | -| taskClaimed | `EventEmitter` | Emitted when the task is claimed. | -| taskCompleted | `EventEmitter` | Emitted when the task is completed. | -| taskUnclaimed | `EventEmitter` | Emitted when the task is unclaimed. | - | +| Name | Type | Description | +| ------------------------------ | ------------------------------------- | ------------------------------------------------------------------------------------------------------ | +| cancelClick | `EventEmitter` | Emitted when the cancel button is clicked. | +| error | `EventEmitter` | Emitted when any error occurs. | +| executeOutcome | `EventEmitter` | Emitted when any outcome is executed. Default behaviour can be prevented via `event.preventDefault()`. | +| formContentClicked | `EventEmitter` | Emitted when form content is clicked. | +| formSaved | `EventEmitter` | Emitted when the form is saved. | +| nextTaskCheckboxCheckedChanged | `EventEmitter` | Emitted when the `Open next task` checkbox was toggled. | +| onTaskLoaded | `EventEmitter` | Emitted when a task is loaded. | +| taskClaimed | `EventEmitter` | Emitted when the task is claimed. | +| taskCompleted | `EventEmitter` | Emitted when the task is completed. | +| taskUnclaimed | `EventEmitter` | Emitted when the task is unclaimed. | #### Enabling fullscreen display for the form of the task diff --git a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html index 9dc7ed70a1..c0e9959363 100644 --- a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html +++ b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.html @@ -74,6 +74,8 @@ + {{'ADF_CLOUD_TASK_FORM.OPEN_NEXT_TASK.LABEL' | translate}} +