[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:
Mario Romano
2019-06-11 14:30:43 +01:00
committed by Eugenio Romano
parent 7b191d37eb
commit fb082cdfdc
7 changed files with 67 additions and 45 deletions

View File

@@ -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>
```