Workflow Foundation is designed for lengthy processes (days, weeks, months) that can "sleep" on one computer and "wake up" on another. An example is the query system, where the workflow starts at the workstation of the person reporting the problem, can wake up inside the server somewhere that decides which department processes it, wakes up again in this department system and can be additionally processed by managers, quality departments, billing departments, etc.
Without additional information about your problem, what you are looking for is not like what WWF is for, and if you try to use WWF, you will probably find yourself in a system too complex to maintain.
The problem of writing code in such a way that it remains supported is old, and that is what most CS keywords try to solve: top-down programming, object-oriented programming, CASE, UML, dependency injection and soon.
In your case, it may happen that you just need a combination of programming from top to bottom (start with your flowchart, then write it as pseudo-code, and then convert it to executable code) plus Refactoring.
In other words, write it in the first way that comes to you, and then go to the code to find opportunities to improve it, combine duplicate code in abstraction and libraries, delete lost code, etc. Regular refactoring can contain a code base in a form that is easy to maintain without requiring a lot of abstraction, such as WWF and all the difficulties they bring with them.
source share