Skip to content

feat: add sub worflows run on FuncDSL #1295#1299

Draft
matheusandre1 wants to merge 1 commit intoserverlessworkflow:mainfrom
matheusandre1:feat-1295
Draft

feat: add sub worflows run on FuncDSL #1295#1299
matheusandre1 wants to merge 1 commit intoserverlessworkflow:mainfrom
matheusandre1:feat-1295

Conversation

@matheusandre1
Copy link
Copy Markdown
Contributor

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it: Closes: #1295

Special notes for reviewers:

Additional information (if needed):

@matheusandre1 matheusandre1 marked this pull request as ready for review April 11, 2026 21:53
@matheusandre1 matheusandre1 requested a review from fjtirado as a code owner April 11, 2026 21:53
Copilot AI review requested due to automatic review settings April 11, 2026 21:53
Copy link
Copy Markdown
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

Note

Copilot was unable to run its full agentic suite in this review.

Adds support for running nested/sub workflows (“run workflow” tasks) from the Func fluent DSL, closing #1295.

Changes:

  • Extend Func FuncDo fluent interfaces/builders to include WorkflowFluent so workflow tasks can be added from Func DSL chains
  • Add FuncDSL.workflow(WorkflowConfigurer) helper to append workflow subflow tasks
  • Add a JUnit test validating the generated RunWorkflow structure and await(false) propagation

Reviewed changes

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

Show a summary per file
File Description
experimental/fluent/func/src/test/java/io/serverlessworkflow/fluent/func/FuncDSLTest.java Adds a test covering building a workflow task via Func DSL and verifying the produced RunWorkflow fields.
experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/spi/FuncDoFluent.java Extends Func DSL fluent surface to include workflow tasks (WorkflowFluent).
experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/dsl/FuncDSL.java Introduces FuncDSL.workflow(WorkflowConfigurer) task configurer entrypoint.
experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/FuncTaskItemListBuilder.java Implements workflow task addition for Func task lists by delegating to spec TaskItemListBuilder.
experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/FuncDoTaskBuilder.java Wires workflow(...) into the Func do task builder.

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

Copilot AI review requested due to automatic review settings April 11, 2026 22:28
Copy link
Copy Markdown
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

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


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

Copy link
Copy Markdown
Collaborator

@fjtirado fjtirado left a comment

Choose a reason for hiding this comment

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

I think this needs some reworking

@matheusandre1 matheusandre1 marked this pull request as draft April 14, 2026 12:14
@fjtirado
Copy link
Copy Markdown
Collaborator

@matheusandre1 I fixed a problem with the subflow input, which is optiona and was throwing a null pointer
see #1316

Signed-off-by: Matheus Andre <matheusandr2@gmail.com>
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.

Feat: add sub workflows run on FuncDSL

3 participants