[ACA-2956] Add event emitter when processDefinition selection changes (for both APS and CLOUD) (#5579)

This commit is contained in:
arditdomi
2020-03-31 09:50:51 +01:00
committed by GitHub
parent f4f46d0c60
commit 6564ef256e
8 changed files with 55 additions and 3 deletions

View File

@@ -91,6 +91,10 @@ export class StartProcessInstanceComponent implements OnChanges, OnInit, OnDestr
@Output()
error: EventEmitter<ProcessInstance> = new EventEmitter<ProcessInstance>();
/** Emitted when process definition selection changes. */
@Output()
processDefinitionSelection: EventEmitter<ProcessDefinitionRepresentation> = new EventEmitter<ProcessDefinitionRepresentation>();
@ViewChild('startForm')
startForm: StartFormComponent;
@@ -320,4 +324,8 @@ export class StartProcessInstanceComponent implements OnChanges, OnInit, OnDestr
get nameController(): AbstractControl {
return this.processNameInput;
}
processDefinitionSelectionChanged(processDefinition) {
this.processDefinitionSelection.emit(processDefinition);
}
}