#1411 support 'form refresh' for start forms (#1417)

This commit is contained in:
Denys Vuika
2017-01-09 15:22:52 +00:00
committed by Mario Romano
parent 885e0e85aa
commit 26fb2374d2

View File

@@ -137,6 +137,17 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
// do nothing
}
/** @override */
onRefreshClicked() {
if (this.processDefinitionId) {
this.visibilityService.cleanProcessVariable();
this.getStartFormDefinition(this.processDefinitionId);
} else if (this.processId) {
this.visibilityService.cleanProcessVariable();
this.loadStartForm(this.processId);
}
}
completeTaskForm(outcome?: string) {
this.outcomeClick.emit(outcome);
}