If you look at the implementation for the interface, you'll see it can be cast. "org.drools.rule.Rule" is considered internal, so you can cast - but beware, it may change later.
Mark On 16 Jul 2013, at 08:46, Sonata <[email protected]> wrote: > Hi, right now I am using this > ((org.drools.impl.KnowledgeBaseImpl)drools.getKnowledgeRuntime().getKnowledgeBase()).getRuleBase().getPackage("pk_name").getRule("rule_name") > to access the actual org.drools.rule.Rule object (instead of the > org.drools.definition.rule.Rule interface) > > Is there any shorter API somewhere in the library I can use to do the same? > > Thank you! > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Simpler-API-to-access-the-Rule-object-in-RHS-tp4024921.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
