elsa-workflows / elsa-workflows/elsa-core
Change the value of WorkflowDefinitions with a new entry
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
Hello
In Elsa 3 version 3.4.0 The function `_workflowRegistry.RegisterAsync` overwrites and modifies the previous row in Elsa.WorkflowDefinitions table with each registration, rather than adding a new row, even though I have correctly set the values for Name, DefinitionId, and Version for the two different Workflows.
If I do not use the function `_workflowRegistry.RegisterAsync` after `_workflowRunner.RunAsync<>`, no value is stored in the Elsa.WorkflowDefinitions table, and later the function `_bookmarkResumer.ResumeAsync()` gives the error "Workflow graph with handle DefinitionVersionId: not found."
Additionally, using` elsa.AddWorkflowsFrom<>` correctly stores all Workflow values in Elsa.WorkflowDefinitions table, but the function `_bookmarkResumer.ResumeAsync()` still gives the same error.
Please help. Currently, only one workflow can be used in the system, which is a significant problem.
Contributor guide
Assessment
This issue has not been assessed yet.