question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about loading JSON workflow definition

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
softwareguy74commented, Jun 3, 2019

+1 for this feature. We’re already doing JSON -> Workflow, but having the option to do Workflow -> JSON would REALLY help out in the situation where we’re struggling to model a particular workflow, such as “When” (I can’t get that to work in JSON) and see how it would be done on a Workflow -> JSON export.

1reaction
germandbcommented, Sep 7, 2018

The LoadDefinition replace the RegisterWorkflow, after load the JSON definition you can call workflowcontroller.StartWorkflow

Read more comments on GitHub >

github_iconTop Results From Across the Web

How will Temporal store the workflow status if we read ...
Hi Team, I am actively exploring temporal and have some questions around reading the workflow definition from json/yaml in code.
Read more >
Workflow Definition Language schema reference - Azure ...
Reference guide to the JSON schema and syntax for the Workflow Definition Language that describes workflows in Azure Logic Apps.
Read more >
Flow with JSON - Microsoft Q&A
I want, when the JSON is received, the flow sends to all the emails found in JSON an email with the subject and...
Read more >
Questions about saving, loading, and json functions
Hi all, I have some questions that came up as I was working on a save/load system for my game based on the...
Read more >
Okta Workflows How-To: Iterate Over a JSON Object (or ...
In this example, the JSON is created using JSON – Parse card. Note that file_content (object) path is defined under the output path....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found