[rules-users] Simpler API to access the Rule object in RHS?
Wolfgang Laun
wolfgang.laun at gmail.com
Tue Jul 16 06:17:31 EDT 2013
I've used an agenda listener to store the rule due to its activation
and provide methods to retrieve whatever. So I can write:
then
... AgendaListener.rulename() ...
end
-W
On 16/07/2013, Sonata <plz.write.to at gmail.com> 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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list