0
[workflow] - which design pattern is best for it?
hi , I recently want to finish a workflow project .
It's steps can configured by backend adminer.
for example :
[
if condition1 :
then do_something_1
if condition 2 :
then do_something_2
end
]
ps.
do_something_1 and do_something_2 can set in a list of operation, every operation has its own logical . send a mail or send an site message and so on .
which design pattern is the best choice for the workflow?
Thanks
It's steps can configured by backend adminer.
for example :
[
if condition1 :
then do_something_1
if condition 2 :
then do_something_2
end
]
ps.
do_something_1 and do_something_2 can set in a list of operation, every operation has its own logical . send a mail or send an site message and so on .
which design pattern is the best choice for the workflow?
Thanks
Π‘Π΅ΡΠ²ΠΈΡ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠΈ ΠΊΠ»ΠΈΠ΅Π½ΡΠΎΠ² ΡΠ°Π±ΠΎΡΠ°Π΅Ρ Π½Π° ΠΏΠ»Π°ΡΡΠΎΡΠΌΠ΅ UserEcho
is there any overlap in the behavior of the "do somethings"?
if not each condition is implementation of an interface as per strategy pattern perhaps?
thx , I will try it.