This adjusts emitting action events to align with emitting other events.
When needing to pass params, instead of having to create an Action object, these can just be passed in the run call in the same way that extra parameters for notices, relations, etc are. When using params, the code is about the same size - when there are no parameters it's a little longer than just having a string, but much more consistent, both with the other events, and with using observe.
This adjusts emitting action events to align with emitting other events.
When needing to pass params, instead of having to create an
Action
object, these can just be passed in the run call in the same way that extra parameters for notices, relations, etc are. When using params, the code is about the same size - when there are no parameters it's a little longer than just having a string, but much more consistent, both with the other events, and with using observe.Example: