I have two rules
rule "test1" when $cr: MyContext(flag1 == 1) then System.out.println("<---- Test1 start ---->")