Skip to content

[Experimental] Increase flexibility of posible output classses for outputAs after a listen one #1280

Description

@fjtirado

Support both

 FuncWorkflowBuilder.workflow("listenToOneReviewCol")
            .tasks(
                listen("waitReview", toOne("org.acme.test.review"))
                    .outputAs((Collection node) -> node.iterator().next()))

And

FuncWorkflowBuilder.workflow("listenToOneReviewNode")
           .tasks(
                   listen("waitReview", toOne("org.acme.test.review"))
                       .outputAs((ArrayNode node) -> node.get(0))

Activity

  1. added 3 commits that reference this issue on Mar 30, 2026
    b1e07e8
    e9fe213
    fc20e5d
  2. added a commit that references this issue on Mar 30, 2026
    20873ad
  3. self-assigned this
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions