elsa-workflows / elsa-workflows/elsa-core

Workflow graph with handle DefinitionVersionId: not found

Open
#6,809 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

Hello
In version 3.4.0, when calling `_bookmarkResumer.ResumeAsync`, I encounter the error:

> "Workflow graph with handle DefinitionVersionId: not found."

The workflow definition is correctly stored in the Elsa.WorkflowDefinitions table, and I execute the workflow using `_workflowRunner.RunAsync(options).`
One thing I noticed is that in the JSON data of the Elsa.WorkflowInstances table, the definitionVersionId is saved as an empty string.
Where is the issue in my implementation?
Also, I tried using `_workflowRegistry.RegisterAsync`, but this method causes previously created different name workflow to have their information overridden by the newer workflow definition.

```
if (request.AssignedRole == "Manager")
{
await _workflowRunner.RunAsync(options);
}
else
{
await _workflowRunner.RunAsync(options);
}
```

this is Json data:
{
"$id": "1",
"id": "b80f623ad3d8329c",
"definitionId": "SupervisorMissionRequestWorkflowId",
"definitionVersionId": "",
"definitionVersion": 1,
"correlationId": "2340",
"status": "Running",
"subStatus": "Suspended",
"isExecuting": false,
"bookmarks": {
"$id": "2",
"$values": [
{
"$id": "3",
"id": "1a29c47028eac337",
"name": "GAIC.TMS.Application.Services.WorFlowServices.Activities.MissionRequest.ManagerMissionOrderApprovalActivity",
"hash": "3DD8C16BBF7EE09C9415ACC429AE8566E2391675ED004FF4EF9FBAF77B0D19C7",
"payload": {
"$id": "4",
"missionId": "2340",
"formId": "MissionDisplay",
"formName": "نمایش درخواست ماموریت",

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.