feat: add sub worflows run on FuncDSL #1295#1299
feat: add sub worflows run on FuncDSL #1295#1299matheusandre1 wants to merge 1 commit intoserverlessworkflow:mainfrom
Conversation
There was a problem hiding this comment.
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
WorkflowFluentso 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
RunWorkflowstructure andawait(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.
There was a problem hiding this comment.
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.
fjtirado
left a comment
There was a problem hiding this comment.
I think this needs some reworking
|
@matheusandre1 I fixed a problem with the subflow input, which is optiona and was throwing a null pointer |
a4cfabb to
7f053c4
Compare
Signed-off-by: Matheus Andre <matheusandr2@gmail.com>
7f053c4 to
8fd32b7
Compare
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):