Skip to content

Output operation is missing a context parameter #1143

Open
@cjundt

Description

@cjundt

There is no way to get context information when setting output data on a step setup.
This is especially required in the context of a loop like ForEach step.
For instance :

builder
    .StartWith<SayHello>()
    .ForEach(data => new List<int> { 0, 1, 2, 3, 4 })
        .Do(x => x
            .StartWith<DisplayContext>()
            .Output( (step, data, context) => data.Items[context.Item] = step.Return )
            .Then<DoSomething>())
    .Then<SayGoodbye>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions