I was learning design pattern's to implement it in code and I think I found one that I think will work but with one major flaw.
The pattern I ended up on is Chain Of Responsibility Pattern . From what I understand there is a request passed to a single handler which will either handle the request or pass it down the chain.
The only catch I see is it specifies that once one of the handler handles the request the processing stops. I want something that will keep going in chain and give chance for every handler to process the request.
Problem Statement
I am creating an application which will send a invoice to a company and I want to know who all have looked at the invoice and signed off. The important aspect is just cause 1 person signing it should not end the process which I believe happens in this pattern
It is completely possible that this pattern might not suit me,if that is can you please suggest me a pattern that would. This is not a class project it is just me learning to use pattern's and finding its use it daily life.
Aucun commentaire:
Enregistrer un commentaire