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.
This commit is contained in:
Sipke Schoorstra 2025-02-09 08:12:12 +01:00
parent 484a126693
commit 8952f06dde

View file

@ -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);