Rules with Multiple Actions

Topics: Customizing Orchard
May 18, 2012 at 7:16 PM

Hopefully this is a quick answer - couldn't find the answer in the documentation.


For a rule with multiple actions: 

1. Are the actions executed sequentially?

2. If the actions are executed sequentially, and one of them throws an exception or returns 'false', will the subsequent actions also execute, or will execution halt?


Thank you!

May 18, 2012 at 7:38 PM

I decided to just read the code.  Lesson: Always, just read the code first. :-)

Reading the code indicates that the actions WILL stop executing if one of them returns false.  And there is no try/catch, so I assume they will also halt if one of them throws an exception.