I finally figured out the problem. I didn't know that you couldn't mix mvel
and a DSL in a rule. So by following those 8 steps, essentially that's what
was happening.
tansey wrote:
I've tried this in clean installs of different versions of eclipse and
it's still not recognizing it, so I must be missing a step. The following
is what I did:
1. File -> New -> Drools -> Rule Project -> Finish
2. Added new Domail Specific Language named mylang.dsl to the source
folder src/main/rules
3. Removed all of the template rules except the Log one
4. Added "expander mylang.dsl" after import statement in Sample.drl
5. Uncommented line 45 (Reader dsl = ...) in DroolsTest.java
6. Commented out line 54: builder.addPackageFromDrl( source );
7. Uncommented line 57: builder.addPackageFromDrl( source, dsl );
8. Right-clicked on DroolsTest.java -> Run As -> Java Application
The program throws an exception saying it is unable to expand several
lines. Did I do something wrong? If not, do these steps work for anyone
else?
--
View this message in context:
http://www.nabble.com/Problem-with-DSL-in-Drools-4.0.3-tf4722439.html#a13...
Sent from the drools - user mailing list archive at
Nabble.com.