workflow-core icon indicating copy to clipboard operation
workflow-core copied to clipboard

Add ProceedOnCancel to WorkflowCore.DSL definition loader

Open lfbertucci opened this issue 3 years ago • 0 comments

Hi Daniel,

during my research to find a way to create a step with deadline, I found some post that suggest to use a .Parallel() with .WaitFor() on one branch and .Sleep() on another branch, and use .CancelCondition(, true) to the Parallel.

I could simulate my scenario and it works perfectly with FluentAPI, but I'm using the JSON Loader extension on WorkflowCore.DSL, and this loader not have how to pass the property "ProceedOnCancel".

So I added property "ProceedOnCancel" to StepSourceV1 and pass it value to the targetStep on ConvertStep at definitionLoader. And also change some tests to contemple this property.

Thank you for this amazing workflow engine.

lfbertucci avatar Jun 22 '22 16:06 lfbertucci