@alfresco/adf-process-services 9.2.0-36738918757 → 9.2.0-36863340488

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2552,6 +2552,9 @@ class FormComponent extends FormBaseComponent {
2552
2552
  this.destroyRef = inject(DestroyRef);
2553
2553
  }
2554
2554
  ngOnInit() {
2555
+ this.formService.outcomeRequested
2556
+ .pipe(filter((request) => request.form === this.form), takeUntilDestroyed(this.destroyRef))
2557
+ .subscribe((request) => this.onOutcomeRequested(request.outcomeId));
2555
2558
  this.formService.formContentClicked.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((content) => this.formContentClicked.emit(content));
2556
2559
  this.formService.validateForm.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((validateFormEvent) => {
2557
2560
  if (validateFormEvent.errorsField.length > 0) {
@@ -2912,7 +2915,7 @@ class StartFormComponent extends FormComponent {
2912
2915
  return false;
2913
2916
  }
2914
2917
  else if (outcome?.name === FormOutcomeModel.START_PROCESS_ACTION) {
2915
- return true;
2918
+ return outcome.isVisible !== false;
2916
2919
  }
2917
2920
  return super.isOutcomeButtonVisible(outcome, isFormReadOnly);
2918
2921
  }