mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-36335 Handle custom redirects (#11167)
This commit is contained in:
@@ -223,8 +223,8 @@ export abstract class FormBaseComponent {
|
||||
}
|
||||
} else {
|
||||
// Note: Activiti is using NAME field rather than ID for outcomes
|
||||
if (outcome.name) {
|
||||
this.completeTaskForm(outcome.name);
|
||||
if (outcome.name && outcome.id) {
|
||||
this.completeTaskForm(outcome.name, outcome.id);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -243,7 +243,7 @@ export abstract class FormBaseComponent {
|
||||
|
||||
abstract saveTaskForm(): void;
|
||||
|
||||
abstract completeTaskForm(outcome?: string): void;
|
||||
abstract completeTaskForm(outcome?: string, outcomeId?: string): void;
|
||||
|
||||
protected abstract onTaskSaved(form: FormModel): void;
|
||||
|
||||
|
||||
@@ -73,7 +73,6 @@ export class FormModel implements ProcessFormModel {
|
||||
readonly confirmMessage: ConfirmMessage;
|
||||
readonly taskName = FormModel.UNSET_TASK_NAME;
|
||||
readonly processDefinitionId: string;
|
||||
readonly selectedOutcome: string;
|
||||
readonly enableFixedSpace: boolean;
|
||||
readonly displayMode: any;
|
||||
|
||||
@@ -88,6 +87,8 @@ export class FormModel implements ProcessFormModel {
|
||||
fieldValidators: FormFieldValidator[] = [];
|
||||
customFieldTemplates: FormFieldTemplates = {};
|
||||
theme?: ThemeModel;
|
||||
selectedOutcomeId?: string;
|
||||
selectedOutcome: string;
|
||||
|
||||
className: string;
|
||||
readOnly = false;
|
||||
|
||||
Reference in New Issue
Block a user