Automation on element condition change fires excessively

  • 7006534
  • 29-Jul-2010
  • 26-Jun-2012


Business Service Manager 4.0
Business Service Manager 4.5
Business Service Manager 4.6
Business Service Manager 4.7


An automation defined on an element high in the Elements branch and set to fire on condition changes, fires many more times that the condition of the element changes. 


A condition change automation fires when the condition of an element or any of its children changes.  To filter out children changes that don't affect the parent, changes will have to be made to what the automation calls.  It's assumed here that the automation is calling a custom script, but if not, these instructions can be easily modified. 

Add the following line at the start of the custom automation script:

if (event.priorCondition == event.eventCondition) return;

This line will exit the script if no change has happened to the parent element.