Change workflow runtime trigger options record into class

This commit is contained in:
Sipke Schoorstra 2023-05-21 10:16:25 +02:00
parent 577e8fa30d
commit 16452795b0

View file

@ -118,7 +118,19 @@ public record ResumeWorkflowRuntimeOptions(
public record CanStartWorkflowResult(string? InstanceId, bool CanStart);
public record TriggerWorkflowsRuntimeOptions(string? CorrelationId = default, string? WorkflowInstanceId = default, IDictionary<string, object>? Input = default);
public class TriggerWorkflowsRuntimeOptions
{
public TriggerWorkflowsRuntimeOptions(string? CorrelationId = default, string? WorkflowInstanceId = default, IDictionary<string, object>? Input = default)
{
this.CorrelationId = CorrelationId;
this.WorkflowInstanceId = WorkflowInstanceId;
this.Input = Input;
}
public string? CorrelationId { get; set; }
public string? WorkflowInstanceId { get; set; }
public IDictionary<string, object>? Input { get; set; }
}
public record TriggerWorkflowsResult(ICollection<WorkflowExecutionResult> TriggeredWorkflows);