[rules-users] Creating custom selectors using the "category" property for deploying certain rules in guvnor
Jaroslaw Kijanowski
kijanowski at gmail.com
Wed Jul 1 13:03:29 EDT 2009
Hi,
you may vote for this one ;)
https://jira.jboss.org/jira/browse/GUVNOR-109
So far I have successfully used 'stateDescription' and 'creator', for
sample rules look at this:
https://jira.jboss.org/jira/browse/GUVNOR-108
Haven't tried to select by category - how about 'categorySummary'?
Cheers,
Jarek
Premkumar Stephen wrote:
> Hello everyone,
>
> I am trying to create a custom selector, based on certain properties
> such as "categories" (primary property) and others such as status and
> author.
>
> from the examples in selectors.properties, I could not see a way to
> create using categories. In that file, some of the field described are
> statusDescription, lastModified, creator, etc
> I was trying to find the complete list of all fields that could be used
> to filter the rules.
>
> I dug into the code and came across "categoryReference" in
> VersionableItem.java. Is this the variable that stores the category?
> Since a rule can have multiple categories, how does this pan out? Is
> this a Collection?
>
> Also, where does the string "statusDescription" get tied in to the
> status of a rule? This one throws me off, since it is a valid field, but
> I cannot understand how it is being set.
>
> If any of you could share examples where you have done custom selectors
> either in java or in drl, that would be awesome.
>
> Thanks,
> Prem
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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