[rules-users] What does the arrow ("->") mean in a rule file?

Mark Proctor mproctor at codehaus.org
Sun May 3 12:31:43 EDT 2009


lightbulb432 wrote:
> What does the arrow ("->") mean in a rule file? I've searched on Google,
> looked through the Drools documentation, and haven't been able to find out
> what it does.
>   
It's deprecated syntax for a predicate constraint, from drools 3.0.x. 
Just use an embedded eval(....) now.

Mark
> It appears in the autocomplete of my IDE for Drools, and I've seen it in an
> example in the JBoss Seam documentation, but am unable to tell what it does:
>
> rule InsertMemberBlog
>   no-loop
>   activation-group "permissions"
> when
>   principal: Principal()
>   memberBlog: MemberBlog(member : member ->
> (member.getUsername().equals(principal.getName())))
>   check: PermissionCheck(target == memberBlog, action == "insert", granted
> == false)
> then
>   check.grant();
> end;
>   





More information about the rules-users mailing list