danielgerlag / danielgerlag/workflow-core

How to achieve a better process rollback workflow

Open
#1,246 4 comments 0 reactions 0 assignees View on GitHub
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:

![image](https://github.com/danielgerlag/workflow-core/assets/43753557/ac372e76-1bc5-4d13-b7d6-8cb3e5cc8cbb)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.