[ADF-4753] - fixed calling for standalone task (#4952)

* [ADF-4753] - fixed calling for standalone task

* [ADF-4753] added unit test

* [ADF-4753] added unit test

* [ADF-4753] improved unit tests

* [ADF-4753] - removed extra parameter not needed
This commit is contained in:
Vito
2019-07-26 12:23:27 +01:00
committed by Maurizio Vitale
parent 05e73a8aa1
commit bb80d2b6d9
4 changed files with 82 additions and 6 deletions

View File

@@ -117,10 +117,8 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
ngOnChanges(changes: SimpleChanges) {
const appName = changes['appName'];
if (appName && appName.currentValue) {
if (this.taskId && this.processInstanceId) {
if (this.taskId) {
this.getFormDefinitionWithFolderTask(this.appName, this.taskId, this.processInstanceId);
} else if (this.taskId) {
this.getFormByTaskId(this.appName, this.taskId);
} else if (this.formId) {
this.getFormById(appName.currentValue, this.formId);
}