I have the following coded in my .dsl:
[condition][]- with a medical code of "{medcode}"=medcode ==
"{medcode}"
In the BRMS gui, I write my rule as: - with a medical code of 1045
It gets mapped/converted in the .drl as: medcode == " 1045 "
Why is it adding a space at the beginning and end of the code? Is
something in the way I have it coded causing it to do that? It should
be, and I expected it to be, medcode == "1045".
Also another, separate, question - when I use the BRMS point-and-click
gui to create my rule from the model, it generates the rule and inserts
'Dialect "MVEL"' prior to the "When". Why and what is causing
it to be
inserted? Is it needed? Is that just the default? Just wondering.
Thanks,
Rod
Show replies by thread
Hi,
I just try to answer the first question :
In your DSL you have : - with a medical code of "{medcode}"=medcode ==
"{medcode}"
so normaly you have to write this :
- with a medical code of "1045"
with the double quote...
good luck,
V.
--
View this message in context:
http://www.nabble.com/DSL-syntax-and-mapping-tf4467815.html#a12750994
Sent from the drools - user mailing list archive at
Nabble.com.