Skip to content

[Question] Is there a way to use the .UserTask with a custom data structure instead of a plain string? #1350

@dwing73

Description

@dwing73

Is there a way to use the .UserTask with a custom data structure instead of a plain string?

Maybe with a custom StepBody and custom data model or something.

So with reference to:

Image

I need to be able to pass in the username and rejection reason so I can capture that information.

So here, where I call...

await _workflowService.PublishUserAction(actionKey, username, optionValue);

...in my web api controller I can pass more than just the option value and consume that from a step.

Also how do I access the username passed in here in which ever of the StepBodys get called so i can assign this to the workflow data item?

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