Skip to content

Question about loading JSON workflow definition  #178

@Tizzo1980

Description

@Tizzo1980

Hi,
first of all thanks for the good job!
Though I read many time sthe documentation I still didn't get how to load JSON workflow definition correctly.
If I understood I have to load the definition in the Configure method of the Startup class

        var loader = app.ApplicationServices.GetService<IDefinitionLoader>();

        string jsonString = "json string definition for workflow...";

        loader.LoadDefinition(jsonString);

And now? Can I already use the workflow or I have to bind it to the host entity (like what we do with the code defined workflow)

         host.RegisterWorkflow<SampleWorkflow>();

What's the next move?!?
Thx in advance

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