<%= AppName %> Rule Repository - <%= gw.api.util.DateUtil.currentDate() %>


<% for( var ruleSetGrouping in RuleSetGroupings ) { %>
<%= ruleSetGrouping.TypeName %> Rule Sets

<% for( var ruleSet in ruleSetGrouping.ruleSets ) { %>
<%= ruleSet.ruleNode.displayName %>
<% if( ruleSet.children == null || ruleSet.children.size() == 0 ) { %>
--Empty--
<% } %> <% for( var rule in ruleSet.children ) { printRuleTree( rule as com.guidewire.pl.system.gosu.entity.RuleTree ); } %>
<% } %>
<% } %> <% function printRuleTree( rule : com.guidewire.pl.system.gosu.entity.RuleTree ) { if( rule == null ) { return; } %>
  <%=rule.ruleNode.displayName%>
Conditions:
<%=gw.api.util.StringUtil.trim( rule.ruleNode.getCondition() )%>
Actions:
<%=gw.api.util.StringUtil.trim( rule.ruleNode.getAction() )%>
<% for( var child in rule.children ) { printRuleTree( child as com.guidewire.pl.system.gosu.entity.RuleTree ); } %>
<% } %>