Status: Resolved (View Workflow)
Affects Version/s: 4.0.1
Fix Version/s: 4.0.2
Windows XP, Eclipse Europa
I am using a DRL with a DSL. My DRL has a rule as follows:
rule "Maximum Order Amount Exceeded"
There is an Order
- with an amount that exceeds 100000
Manually release the Order
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
[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.