Fix InstanceMode in Create new workflow

This commit is contained in:
Behzad Alizadeh
2026-01-07 18:02:08 +03:30
parent 23cbb88f2d
commit 7ff23561a4
2 changed files with 3 additions and 3 deletions
@@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Caspian.WorkflowFramework</PackageId>
<Version>1.1.0-preview.9</Version>
<Version>1.1.0-preview.10</Version>
<Authors>Digital banking team</Authors>
<Company>Caspian</Company>
<Product>Caspian.WorkflowFramework</Product>
@@ -102,7 +102,7 @@ public class WorkflowService : IWorkflowService, ILoggable
var workflowModel = dictionary.ConvertToWorkflowModel();
workflowModel.InstanceId = workflowClient.WorkflowInstanceId;
workflowModel.UserId = input.UserId;
workflowModel.InstanceMode = "exist";
workflowModel.InstanceMode = "new";
response = new WorkflowResponse<WorkflowModel>()
{
@@ -222,7 +222,7 @@ public class WorkflowService : IWorkflowService, ILoggable
var workflowModel = dictionary.ConvertToWorkflowModel();
workflowModel.InstanceId = workflowInstanceId;
workflowModel.UserId = input.UserId;
workflowModel.InstanceId = runningWorkflowInstance != null ? "exist" : "new";
workflowModel.InstanceMode = runningWorkflowInstance != null ? "exist" : "new";
response = new WorkflowResponse<WorkflowModel>()
{