I want to implement a code for doing some workflow, but i want to avoid chains with if and else.
So my question is, Which deisgn patter i should use for it? I searched some, but couldnt find one that i should use.
Example of workflow.
A-> if(B) do C, if(!B) do D-> E -> if(F) do G, if(!H) do I-> J-> K and so on..
Aucun commentaire:
Enregistrer un commentaire