[rules-users] APIs to create rules

bobbi_80 guruprasad_bobbi at infosys.com
Wed Jan 18 00:58:12 EST 2012


Thanks a ton MarK.
For benefit of others who may read this post here is the code snippet.

		PackageDescr pkg = DescrFactory.newPackage()
	       .name("org.drools.example")
	       .newRule().name("Xyz")
	           .attribute("ruleflow-grou","bla")
	       .lhs()
	           .and()
	               .pattern("Foo").id( "$foo", false
).constraint("bar==baz").constraint("x>y").end()
	               .not().pattern("Bar").constraint("a+b==c").end().end()
	           .end()
	       .end()
	       .rhs( "System.out.println();" ).end()
	       .getDescr();




--
View this message in context: http://drools.46999.n3.nabble.com/APIs-to-create-rules-tp3662689p3668409.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list