From 8952f06dded8d73f5a41b5f465aab3317154bc67 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 9 Feb 2025 08:12:12 +0100 Subject: [PATCH] Add missing request properties when starting workflow Added support for `Properties` and `ParentId` when creating workflow instances. This fixes an issue where the Properties were not propagated to the workflow instance being created. --- .../Elsa.Workflows.Runtime/Services/DefaultWorkflowStarter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowStarter.cs b/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowStarter.cs index 3778ee265..db557bbbc 100644 --- a/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowStarter.cs +++ b/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowStarter.cs @@ -31,7 +31,9 @@ public class DefaultWorkflowStarter(IWorkflowDefinitionService workflowDefinitio CorrelationId = request.CorrelationId, Input = request.Input, TriggerActivityId = request.TriggerActivityId, - ActivityHandle = request.ActivityHandle + ActivityHandle = request.ActivityHandle, + Properties = request.Properties, + ParentId = request.ParentId }; var runWorkflowResponse = await workflowClient.CreateAndRunInstanceAsync(createWorkflowInstanceRequest, cancellationToken);