[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-1191) compilation error when consequence has no space between rule mappings

Christopher Brock (JIRA) jira-events at lists.jboss.org
Mon Sep 24 15:30:41 EDT 2007


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

Christopher Brock resolved JBRULES-1191.
----------------------------------------

    Resolution: Done

> compilation error when consequence has no space between rule mappings
> ---------------------------------------------------------------------
>
>                 Key: JBRULES-1191
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-1191
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.0.1
>         Environment: Windows XP, Eclipse Europa
>            Reporter: Christopher Mathrusse
>         Assigned To: Christopher Brock
>             Fix For: 4.0.2
>
>
> I am using a DRL with a DSL. My DRL has a rule as follows:
> rule "Maximum Order Amount Exceeded"
> salience 9800
> 	when
> 	   	There is an Order
> 	   	- with an amount that exceeds 100000	
> 	then 
> 		Manually release the Order	
> end
> The DSL for this rule is as follows:
> [condition][]There is an Order to release=theOrder : Order ( releasable == true)
> [condition][]- with an amount that exceeds {number}=amount >= {number}
> [consequence][]Manually release the Order=setManualRelease(drools.getRule().getName());retract(theOrder); 
> But this produces a compilation error as follows:
> The method retract(Order) is undefined for the type Rule_Maximum_Order_Amount_Exceeded_0         
> Thanks to the help of Edson we discovered that an embedded space is needed between the ; and the retract statement. 

-- 
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