[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1881) no-loop attribute not wrking with modify

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Tue Mar 10 09:32:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBRULES-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edson Tirelli updated JBRULES-1881:
-----------------------------------

      Component/s: drools-compiler
                   drools-core
    Fix Version/s: FUTURE


> no-loop attribute not wrking with modify 
> -----------------------------------------
>
>                 Key: JBRULES-1881
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-1881
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler, drools-core
>    Affects Versions: 4.0.7
>            Reporter: Sravanthi Tipirneni
>            Assignee: Mark Proctor
>            Priority: Minor
>             Fix For: FUTURE
>
>
> in the rule given below, the rule is looping when i use 
>   modify( $edi ){
> 		  setSourceable(true)
> 		}
> in RHS. It does not loop when i use $edi.setSourceable(true);
> rule "Generic MSRP Rule"
> 	no-loop true
> 	when
> 		$edi : EdiProduct( $prod  : product  )
> 		Product( classificationCode == null, $prc : pricing ) from $prod
> 		Pricing( $msr : msrp ) from $prc
> 		Money( asBigDecimal > 0) from $msr
> 	then
> 	        modify( $edi ){
> 		  setSourceable(true)
> 		}
> 		//$edi.setSourceable(true);
> 		System.out.println("Rule is successfull");
> end

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

        



More information about the jboss-jira mailing list