Condition based element matchers

  • 7004238
  • 19-Aug-2009
  • 11-Jul-2012

Environment

Business Service Manager

Situation

You want to create an element matcher, using script or LDAP expression, that bases the match on the element condition.

For instance, you want to match all elements that are critical underneath a service model.

You create a condition matcher but it only matches the correct condition once, it fails to add or remove element that have changed condition after you applied the expression.

BSM does not support dynamic condition matching due to performance, the expression is only evaluated once and save time.

Resolution

Create a job script that touches the match expression on a schedule. Resetting the expression will cause the match to re-evaluate.

Example job script:
var ele = formula.Root.findElement('org=ScriptMatcherTest/root=Organizations')
var expression = ele.getMatchExpression()
ele.setElementMatchExpression(expression)