-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workflow pattern issue (circular not working) #188
Comments
Hi @JohnieBraaf, thanks for reporting this. Does it mean that the simplified version is something you can go with? Regardless, I will look into the first flow and try to reproduce it as soon as possible. |
Hi @javrasya, yes for now I have worked around this issue by using the second workflow. |
I have not yet found the time to create a sample project. But I do suspect this piece of code to be the culprit: https://github.com/javrasya/django-river/blob/master/river/core/instanceworkflowobject.py#L57-L59 |
@javrasya, it seems that you are initializing the complete workflow upon creation of an workflow instance object. I'm measuring database read/write and those are huge. Like about 100 per single case creation. |
I have created a commit that:
JohnieBraaf@84159da These changes alone slashed the total number of database operations in half. But still there are a lot of database calls going on. |
Hi @JohnieBraaf , thanks for giving a thought to this. The thing with that is that it allows customizing the workflow for a specific object. So it is like that by design. I don't think we should change the behavior unless it still supports this. The only way to make django-river work that way would be to introduce something like overriding rules as part of the workflow which I have been thinking about but never had the time to invest in that. Then you use a workflow template and never have to re-create the entire workflow on and on but customize it for a specific object by defining overriding rules. |
You don't need a full-fledged project to re-produce it btw. Here is an example of reproducing a scenario in a human-readable cucumber test; |
Thanks for your reply and pointers on creating the test scenario for this. I do not fully understand what you mean with the current design allowing customization of a a specific object. The proposed solution increases flexibility and allows for ad-hoc workflow changes, I guess that you try to achieve the opposite. |
Facing the same issue, I have the following patterns: Reviewing -> Reverted -> Reviewing -> Reverted... The Reverted state after 1 round of circulation was disappeared in Available Approvals list |
I'm running into strange issues with a particular workflow design.
As soon as I go back a step, the transition in the opposite direction does not re-enable.
Say, I move from bewerken to 4 ogen controle and then back to bewerken, I cannot move to 4 ogen controle afterwards.
Any thoughts?
The text was updated successfully, but these errors were encountered: