[rules-users] How to define keywords that represent objects(in facts) to be able to use in rules

Wolfgang Laun wolfgang.laun at gmail.com
Thu Aug 9 09:19:08 EDT 2012


It's not clear from your description, what the "keyword" substitution
should achieve. Usually, class and field names should be chosen so
that they
convey a meaning to the rule author.

Note that the DSL translator lets you mix DRL code lines with DSLR lines.

-W


On 09/08/2012, san_drools <pathasantosh at yahoo.co.in> wrote:
> Hello,
>
>        I need to know how to proceed to define keywords that represent
> objects of facts in Drools.
>
>          In detail, i am  using Guvnor editor to write Business and
> technical rules required on a package basis for an application. So, here
> writing rules by using Objects and it's attributes synactically is a
> tedious
> job for client.
>          So, the idea is "to provide some keywords to the client where each
> keyword represents an object/attribute. By using keywords simply, the
> client
> will write a rule. These keywords shall be processed (may be at compile
> time) and the respective object/attribute shall be used/considered in rule
> when the rules are fired"
>
>           To achieve this,
>              1. worked with DSL configurations but it fulfilled our idea
> partially as every #condition and #action needs to be defined in DSL
> configurations to be able to use them in a rule.
>              2. Tried working on guvnor sources for it, but couldn't be
> able
> to do (as i am new to drools; i am a learner)
>
>         Can any one please suggest the way we can proceed to achieve this
> requirement. Is 'working on guvnor sources' only the possible way for this?
> Or is there any option/feature we can proceed with? Please let me know.
> Thanks in advance.
>
> Regards
> San_Drools
>
>
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-define-keywords-that-represent-objects-in-facts-to-be-able-to-use-in-rules-tp4019065.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