Question about loading JSON workflow definition
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:12 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

+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.
The LoadDefinition replace the RegisterWorkflow, after load the JSON definition you can call workflowcontroller.StartWorkflow