[ADF-4651] fix task form cloud (#4843)

* fix task form cloud

* fix form
This commit is contained in:
Eugenio Romano
2019-06-12 20:16:04 +01:00
committed by GitHub
parent ecb8410d1b
commit b04b717296

View File

@@ -22,7 +22,8 @@ import {
import { Observable, of, forkJoin, Subject } from 'rxjs'; import { Observable, of, forkJoin, Subject } from 'rxjs';
import { switchMap, takeUntil } from 'rxjs/operators'; import { switchMap, takeUntil } from 'rxjs/operators';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { FormBaseComponent, import {
FormBaseComponent,
FormFieldModel, FormFieldModel,
FormOutcomeEvent, FormOutcomeEvent,
FormOutcomeModel, FormOutcomeModel,
@@ -31,7 +32,8 @@ import { FormBaseComponent,
NotificationService, NotificationService,
FormRenderingService, FormRenderingService,
FORM_FIELD_VALIDATORS, FORM_FIELD_VALIDATORS,
FormFieldValidator } from '@alfresco/adf-core'; FormFieldValidator
} from '@alfresco/adf-core';
import { FormCloudService } from '../services/form-cloud.service'; import { FormCloudService } from '../services/form-cloud.service';
import { FormCloud } from '../models/form-cloud.model'; import { FormCloud } from '../models/form-cloud.model';
import { TaskVariableCloud } from '../models/task-variable-cloud.model'; import { TaskVariableCloud } from '../models/task-variable-cloud.model';
@@ -117,6 +119,8 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
if (appName && appName.currentValue) { if (appName && appName.currentValue) {
if (this.taskId && this.processInstanceId) { if (this.taskId && this.processInstanceId) {
this.getFormDefinitionWithFolderTask(this.appName, this.taskId, this.processInstanceId); this.getFormDefinitionWithFolderTask(this.appName, this.taskId, this.processInstanceId);
} else if (this.taskId) {
this.getFormByTaskId(this.appName, this.taskId);
} else if (this.formId) { } else if (this.formId) {
this.getFormById(appName.currentValue, this.formId); this.getFormById(appName.currentValue, this.formId);
} }