Skip to content

AAE-42658 Remove check for outcome.id as name based outcomes are valid#11685

Merged
ehilgendorf merged 1 commit intodevelopfrom
fix/AAE-42658-customoutcome-null
Feb 25, 2026
Merged

AAE-42658 Remove check for outcome.id as name based outcomes are valid#11685
ehilgendorf merged 1 commit intodevelopfrom
fix/AAE-42658-customoutcome-null

Conversation

@ehilgendorf
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)
https://hyland.atlassian.net/browse/AAE-42658

What is the new behaviour?
The removed check is not needed at this place

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@ehilgendorf ehilgendorf requested a review from eromano as a code owner February 24, 2026 11:28
Copilot AI review requested due to automatic review settings February 24, 2026 11:28
@sonarqubecloud
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes an overly restrictive check in the form outcome handling logic. Previously, the code required both outcome.name AND outcome.id to be present for custom (non-system) outcomes. However, according to the existing code comment, Activiti uses the NAME field as the primary identifier for outcomes, making the id check unnecessary and preventing valid name-based outcomes from being processed.

Changes:

  • Removed the outcome.id check from the conditional in form-base.component.ts, allowing outcomes with only a name (and null id) to be processed
  • Added comprehensive test coverage for the new behavior in both process-services and process-services-cloud components

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
lib/core/src/lib/form/components/form-base.component.ts Removed outcome.id check from conditional, allowing name-only outcomes to complete forms
lib/process-services/src/lib/form/form.component.spec.ts Added test verifying forms can be completed with outcomes that have null id but valid name
lib/process-services-cloud/src/lib/form/components/form-cloud.component.spec.ts Added identical test for cloud component to ensure consistent behavior across implementations

@ehilgendorf ehilgendorf merged commit 4cc5642 into develop Feb 25, 2026
30 of 32 checks passed
@ehilgendorf ehilgendorf deleted the fix/AAE-42658-customoutcome-null branch February 25, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants