If I have 5 commands A,B,C,D,E and they always need to run in that order. There is a good possibility that more commands would get added to that list. But they always need to be run in that order. Also on a failure the execution must stop. The next command is to be invoked only after previous one succeeds.
In a scenario such as above, does it make any sense to use command pattern?
Aucun commentaire:
Enregistrer un commentaire