0

[workflow] - which design pattern is best for it?

Wang Mengyu 5 Π»Π΅Ρ‚ Π½Π°Π·Π°Π΄ β€’ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ 5 Π»Π΅Ρ‚ Π½Π°Π·Π°Π΄ β€’ 3
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
 

    

БСрвис ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΈ ΠΊΠ»ΠΈΠ΅Π½Ρ‚ΠΎΠ² Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚ Π½Π° ΠΏΠ»Π°Ρ‚Ρ„ΠΎΡ€ΠΌΠ΅ UserEcho