diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts index ad4e5b74df..c10770e93b 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts +++ b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts @@ -29,6 +29,7 @@ import { AlfrescoTranslationService } from 'ng2-alfresco-core'; import { ActivitiForm } from './activiti-form.component'; import { FormService } from './../services/form.service'; import { WidgetVisibilityService } from './../services/widget-visibility.service'; +import { FormOutcomeModel } from './widgets/core/index'; /** * Displays the start form for a named process definition, which can be used to retrieve values to start a new process. @@ -131,7 +132,17 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked, ); } + /** @override */ + isOutcomeButtonVisible(outcome: FormOutcomeModel): boolean { + if (outcome && outcome.name === FormOutcomeModel.SAVE_ACTION) { + return false; + } + return super.isOutcomeButtonVisible(outcome); + } + + /** @override */ saveTaskForm() { + // do nothing } completeTaskForm(outcome?: string) {