If we want to execute post action for a rule, we have to configure them in the rules.yml file. We also need a switch
statement in order to get the actions we want to execute.
Maybe we can improve this pattern, by using multi values for providers in NestJS.
We can create a Runnable interface, with a name property and a run method. Based of this interface, we can also create many implementation. We will first focus on a Logger implementation.
When those actions have to be executed, we will inject the right providers (an array) on which we will do a filter in order to get only the actions configured in the rules.yml file.