javrasya / django-river

Django workflow library that supports on the fly changes ⛵
BSD 3-Clause "New" or "Revised" License
741 stars 105 forks source link

how to define a backward workflow #174

Closed xuziheng1002 closed 4 years ago

xuziheng1002 commented 4 years ago

A workflow like A -> B -> C In some scenarios workflow need to backwards like : from C back to B Is it must inset a middle node for backwords?like C -> D -> B

Can't I make it directly like C -> B ,does it make loop or trouble?

javrasya commented 4 years ago

Easy to test @xuziheng1002 , Please check the feature to see if it is the scenario you are describing (https://github.com/javrasya/django-river/commit/72cdd6d148d158eeb4f2e8b36da81b96fd4f1517)

If so, I ran it and it works just fine. You don't need an intermediate step like D to make it work. Feel free to elaborate and add more scenarios with the workflow if you want to see more.

xuziheng1002 commented 4 years ago

Yes, I have do the test, it goes well. issue close.