elsa-workflows / elsa-workflows/elsa-gitbook
Create & Register workflows at runtime
Open
triaged
- Dominant language
- C#
- Stars
- 9
- Forks
- 30
- Avg merge
- 49m
- Merged PRs (30d)
- 32
Description
We need a section about the ability to define a workflow from code and then register it with the runtime. For example:
```csharp
// Define workflow.
var workflow = new Workflow(new Flowchart())
{
Metadata = { DefinitionId = "MyDynamicWorkflow" }
Name = "MyDynamicWorkflow"
};
// Register workflow.
_runtime.register(workflow);
// Execute workflow.
_runtime.StartWorkflow("MyDynamicWorkflow", new StartWorkflowOptions());
```
Contributor guide
Assessment
This issue has not been assessed yet.