Skip to content

Commit b0d6755

Browse files
author
Luis Fernando Bertucci
committed
Added 'ProceedOnCancel' to WorkflowCore.DSL during load definition on convert steps
1 parent 70e5104 commit b0d6755

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/WorkflowCore.DSL/Models/v1/StepSourceV1.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace WorkflowCore.Models.DefinitionStorage.v1
77
public class StepSourceV1
88
{
99
public string StepType { get; set; }
10-
10+
1111
public string Id { get; set; }
1212

1313
public string Name { get; set; }
@@ -29,8 +29,9 @@ public class StepSourceV1
2929
public ExpandoObject Inputs { get; set; } = new ExpandoObject();
3030

3131
public Dictionary<string, string> Outputs { get; set; } = new Dictionary<string, string>();
32-
32+
3333
public Dictionary<string, string> SelectNextStep { get; set; } = new Dictionary<string, string>();
3434

35+
public bool ProceedOnCancel { get; set; } = false;
3536
}
3637
}

src/WorkflowCore.DSL/Services/DefinitionLoader.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ private WorkflowStepCollection ConvertSteps(ICollection<StepSourceV1> source, Ty
101101
targetStep.ErrorBehavior = nextStep.ErrorBehavior;
102102
targetStep.RetryInterval = nextStep.RetryInterval;
103103
targetStep.ExternalId = $"{nextStep.Id}";
104+
targetStep.ProceedOnCancel = nextStep.ProceedOnCancel;
104105

105106
AttachInputs(nextStep, dataType, stepType, targetStep);
106107
AttachOutputs(nextStep, dataType, stepType, targetStep);

0 commit comments

Comments
 (0)