[windup-dev] .when( new True() )

Ondrej Zizka ozizka at redhat.com
Thu Jul 31 13:59:44 EDT 2014


Hi,

I found this rule being invoked many many times.
Since there's just .when( new True() ) and not some iteration, I wonder 
what are the elements that it executes over so many times.
And how do I get this information from the current API?

Thanks,
Ondra


ruleSet("ExampleGroovyRule").setPhase(RulePhase.MIGRATION_RULES)

     .addRule()
     .when(
         new True()
     )
     .perform(
         new GraphOperation  () {
             public void perform(GraphRewrite event, EvaluationContext 
context) {
                 //System.out.println("Performing rewrite operation")
                 Logging.of(this.getClass()).info("Performing rewrite 
operation in ExampleGroovyRule");
             }
         }


More information about the windup-dev mailing list