AAE-36335 Handle custom redirects (#11167)

This commit is contained in:
Enrico Hilgendorf
2025-09-15 12:05:53 +02:00
committed by GitHub
parent 3a1020ea7b
commit 82f96d9510
11 changed files with 180 additions and 32 deletions
@@ -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;