Skip to content

Refactor catch task executor creation to include position property#1473

Closed
matheusandre1 wants to merge 1 commit into
serverlessworkflow:mainfrom
matheusandre1:issue1472
Closed

Refactor catch task executor creation to include position property#1473
matheusandre1 wants to merge 1 commit into
serverlessworkflow:mainfrom
matheusandre1:issue1472

Conversation

@matheusandre1

Copy link
Copy Markdown
Contributor

Fixes: #1472

@matheusandre1 matheusandre1 marked this pull request as ready for review June 21, 2026 02:51
@matheusandre1 matheusandre1 requested a review from fjtirado as a code owner June 21, 2026 02:51
Copilot AI review requested due to automatic review settings June 21, 2026 02:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aims to fix incorrect task jsonPointer/position generation for tasks executed in a try/catch (specifically, making catch-derived tasks’ positions properly relate back to the try execution), as described in issue #1472.

Changes:

  • Refactors TryExecutor catch-task executor creation to alter how the catch task list position is constructed.
  • Updates RetryTimeoutTest#testRetryDo to assert a new expected position key for the catch “do” task.

Reviewed changes

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

File Description
impl/core/src/main/java/io/serverlessworkflow/impl/executors/TryExecutor.java Changes how the catch task executor list is built (position/prefix handling).
impl/test/src/test/java/io/serverlessworkflow/impl/test/RetryTimeoutTest.java Updates expected jsonPointer for a catch “do” task completion event.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread impl/test/src/test/java/io/serverlessworkflow/impl/test/RetryTimeoutTest.java Outdated
Signed-off-by: Matheus André <matheusandr2@gmail.com>
@fjtirado

Copy link
Copy Markdown
Collaborator

See comment on issue, closing this for now.

@fjtirado fjtirado closed this Jun 22, 2026
@matheusandre1 matheusandre1 deleted the issue1472 branch June 22, 2026 12:35
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.

Try task generates wrong jsonPosition for the nested catch task

3 participants