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....
Sent from the Drools: User forum mailing list archive at
Nabble.com.