[ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked (#2133)

* [ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked.

* Added Start task/process cancel emitter handler to redirect when user clicks on cancel start/process .

* [ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked.

* Changed activiti-start-task to adf-start-task
* Changed onSuccess to success and Updated     document.

* [ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked

* Refactored  start task component unit testcases
This commit is contained in:
siva kumar
2017-07-27 14:24:35 +05:30
committed by Eugenio Romano
parent 32e64339ee
commit ddc32328d8
5 changed files with 33 additions and 18 deletions

View File

@@ -35,7 +35,7 @@ export class StartTaskComponent implements OnInit {
appId: string;
@Output()
onSuccess: EventEmitter<any> = new EventEmitter<any>();
success: EventEmitter<any> = new EventEmitter<any>();
@Output()
cancel: EventEmitter<void> = new EventEmitter<void>();
@@ -75,7 +75,7 @@ export class StartTaskComponent implements OnInit {
this.startTaskmodel.category = this.appId;
this.taskService.createNewTask(new TaskDetailsModel(this.startTaskmodel)).subscribe(
(res: any) => {
this.onSuccess.emit(res);
this.success.emit(res);
this.attachForm(res.id);
this.resetForm();
},