[jboss-jira] [JBoss JIRA] Closed: (JBRULES-653) Allow "this" to be used as a Field Constraint

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Tue Feb 27 17:03:35 EST 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-653?page=all ]

Edson Tirelli closed JBRULES-653.
---------------------------------

    Resolution: Done

Added support to self references using the "this" keyword.

Unit tests and Integration tests added.


> Allow "this" to be used as a Field Constraint
> ---------------------------------------------
>
>                 Key: JBRULES-653
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-653
>             Project: JBoss Rules
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Drl Parser/Builder, Reteoo
>    Affects Versions: 3.0.5
>            Reporter: Edson Tirelli
>         Assigned To: Edson Tirelli
>             Fix For: 3.1-m2
>
>
> Allows a special field "this" to be used. The idea is support cases like:
> rule "keeps consistency"
> when
>     $r : Relationship( $s: source, $t: target )
>     not( Source( this == $s ) or Target( this == $t ) )
> then
>     retract( $r );
> end

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list