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

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