danielgerlag / danielgerlag/workflow-core
How to achieve a better process rollback workflow
- Dominant language
- C#
- Stars
- 5.9k
- Forks
- 1.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 5
Description
I use json define workflow like the following picture:

but when the steps nodes become more and more,the decision branch may not be a good solution.I have tyied with this funciton:
At the StepType corresponding method in Run(),use
return ExecutionResult.Branch(new List { context.Item }, "A_NODE") statement
or
return ExecutionResult.Persist("A_NODE") statement
to implements the process of going back from the current process node to A NODE.I konw decision branch can do this ,but I want another way to realize this process. who can give me some advice,ungrateful!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the StepType Run() method and the mentioned ExecutionResult.Branch and ExecutionResult.Persist calls, then compare them with the decision-branch workflow shown in the issue. The issue does not define a concrete API or acceptance criteria, so completion would require clarifying the desired rollback behavior and agreeing on what an alternative workflow should support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100