Hi,
I have a project where I have a ValidationCase object which contains ExceptionEntries collection of ExceptionEntry. I start off with a ValiationCase being populated already and presented on a GUI and the client user works on it:
My question is since the saving of the ValidationCase to a Valid State has a side-effect of running another process, should this behavior of determining when another process is kicked-off the responsibility of the ValidationCase?
I am kind of feeling that this is the ValidationCase's responsibility since it knows it's own state. But then again, this kicking-off of a new process is something like a workflow that can be orchestrated outside the ValidationCase, hence another object should be the one responsible for this workflow processing.
If it is indeed another objects responsibility and not the ValidationCase, how then can I tie a client user clicking a save on the ValidationCase to this workflow process manager. Any patterns you can suggest?
Please provide some thoughts.
Thank you.
Copyright (c) Marimer LLC