" $m : MyClass( value == $i.toString(), data == \"x\" ) @watch( !value )\n" +
"then \n" +
" modify( $m ) { setValue(\"3\"), setData(\"y\") };\n" +
"end";
KieHelper helper = new KieHelper();
helper.addContent(rule1, ResourceType.DRL);
KieSession ksession = helper.build().newKieSession();
List<String> list = new ArrayList<String>();
ksession.setGlobal("list", list);
MyClass myClass = new MyClass();