[ADF-4468] FormCloud - Be able to display the value of a form variables (#4676)

* Fix the value passed as processDefinition
Be sure we fetch the form variables

* * Rename formId to formKey.

* * Reverted form Changes

* * Fixed failing unit test

* Fix the value passed as processDefinition
Be sure we fetch the form variables

* * Fixed failing unit test

* * Rename formId to formKey.

* * Reverted form Changes

* * Fixed failing unit test

* Fix form representation structure

* Refactor form models

* Change tslint config

* Fix lint

* Refactor form models

* Remove duplicated export

* improve variable names

* Update form mock
This commit is contained in:
Maurizio Vitale
2019-06-12 12:50:10 +01:00
committed by Eugenio Romano
parent 051e8df091
commit 63f00e21cf
20 changed files with 916 additions and 924 deletions

View File

@@ -54,8 +54,7 @@ export class FormCloudDemoComponent implements OnInit, OnDestroy {
}
ngOnInit() {
const formDefinitionJSON = this.automationService.forms.getFormCloudDefinition();
this.formConfig = JSON.stringify(formDefinitionJSON);
this.formConfig = JSON.stringify(this.automationService.forms.getFormCloudDefinition());
this.parseForm();
}

View File

@@ -62,8 +62,7 @@ export class FormComponent implements OnInit, OnDestroy {
}
ngOnInit() {
const formDefinitionJSON: any = this.automationService.forms.getFormDefinition();
this.formConfig = JSON.stringify(formDefinitionJSON);
this.formConfig = JSON.stringify(this.automationService.forms.getFormDefinition());
this.parseForm();
}