Repository navigation
Replies: 1 comment
|
Declare the model as a workflow input, then retrieve it from the execution context inside the activity graph. For example: public sealed class MyWorkflow : WorkflowBase
{
protected override void Build(IWorkflowBuilder builder)
{
var order = builder.WithInput<Order>("Order");
builder.Root = new Sequence
{
Activities =
{
new WriteLine(context => context.GetInput<Order>(order).Id.ToString())
}
};
}
}Start the workflow with an input dictionary containing Relevant examples:
If the model crosses a persistence or distributed-dispatch boundary, make sure it is serializable by the serializer configured for your host. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello. Have a question regarding WorkflowBase class

How can I pass my domain model to workflow classes?
All reactions