mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACTIVITI-3234] add processInstanceId to save/submit event, change get folder… (#4833)
* [ACTIVITI-3234] add processId to save/submit event, change get folder rest call api * Update form-cloud.component.md * lint fix * [ACTIVITI-3234] fix tests * [ACTIVITI-3234] fix tests * Fix rename processId in processInstanceId
This commit is contained in:
committed by
Eugenio Romano
parent
7b191d37eb
commit
fb082cdfdc
@@ -29,7 +29,8 @@ Shows a [`form`](../../../lib/process-services-cloud/src/lib/form/models/form-cl
|
||||
```html
|
||||
<adf-cloud-form
|
||||
[appName]="appName"
|
||||
[taskId]="taskId">
|
||||
[taskId]="taskId"
|
||||
[processInstanceId]="processInstanceId">
|
||||
</adf-cloud-form>
|
||||
```
|
||||
|
||||
@@ -92,6 +93,7 @@ The template defined inside `empty-form` will be shown when no form definition i
|
||||
| showTitle | `boolean` | true | Toggle rendering of the form title. |
|
||||
| showValidationIcon | `boolean` | true | Toggle rendering of the validation icon next to the form title. |
|
||||
| taskId | `string` | | Task id to fetch corresponding form and values. |
|
||||
| processInstanceId | `string `| | Process instance id to fetch corresponding form and values.|
|
||||
|
||||
### Events
|
||||
|
||||
@@ -116,6 +118,7 @@ All `formXXX` events receive a [`FormCloudModel`](../../../lib/process-services-
|
||||
<adf-cloud-form
|
||||
[appName]="appName"
|
||||
[taskId]="selectedTask?.id"
|
||||
[processInstanceId]="selectedTask?.processInstanceId"
|
||||
(formSaved)="onFormSaved($event)">
|
||||
</adf-cloud-form>
|
||||
```
|
||||
@@ -132,12 +135,13 @@ onFormSaved(form: FormCloudModel) {
|
||||
|
||||
There are various ways to display a form. The common scenarios are detailed below.
|
||||
|
||||
#### Displaying a form instance by task id
|
||||
#### Displaying a form instance by task id and processInstanceId
|
||||
|
||||
```html
|
||||
<adf-cloud-form
|
||||
[appName]="appName"
|
||||
[taskId]="selectedTask?.id">
|
||||
[taskId]="selectedTask?.id"
|
||||
[processInstanceId]="selectedTask?.processInstanceId">
|
||||
</adf-cloud-form>
|
||||
```
|
||||
|
||||
@@ -172,6 +176,7 @@ of the form validation before it is submitted.
|
||||
<adf-cloud-form
|
||||
[appName]="appName"
|
||||
[taskId]="selectedTask?.id"
|
||||
[processInstanceId]="selectedTask?.processInstanceId"
|
||||
executeOutcome="validateForm($event)">
|
||||
</adf-cloud-form>
|
||||
```
|
||||
|
Reference in New Issue
Block a user