Question about Run Actions command

Just wanted to check that there isn't an easier way of doing this.

If I use the 'Run Actions' command within Rule Machine, it ignores any Trigger criteria. If I want to include this, I'm currently including an If statement that duplicates the Trigger criteria but this introduces a maintenance overhead of manually ensuring that the trigger and 'If' statement stay aligned in the future. e.g.


Is there any way of including the trigger criteria when calling the Rule from within another rule without duplicating this logic?

When a rule is called from another, the trigger is indeed ignored. To call it from another rule with a replication of the trigger, there are 2 options that I am aware of:

  1. Add a condition in the other rule before the call command
  2. Add a condition in the called rule (what you did as I understand it)
2 Likes

If that is true, and I expect it is, I'd add to consider the likelihood of calling the target rule from multiple rules and whether conditions are appropriate in the calling rule or in the target rule, i,e, centralising the logic or whether it is enough to specify it once... (without reading much of the earlier thread.. :slight_smile: )

1 Like

Thanks, both. I've revised the called Rule to embed the condition there.

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.