-
1. Re: Question about XPathLanguage.dsl
beve Dec 4, 2008 3:30 AM (in response to oleg_p)Hi,
you can extend/modify the .dsl by specifying a different one to meet you requirements:<property name="ruleLanguage" value="CustomXPathLanguage.dsl"/>
Just put your CustomXPahtLanguage.dsl in the root of your .esb archive.
The XPathLanguage.dsl can be found in deploy/jbrules.esb/ directory.
Regards,
/Daniel -
2. Re: Question about XPathLanguage.dsl
oleg_p Dec 5, 2008 10:21 AM (in response to oleg_p)Hi Beve,
Thanks for your comments.
But my question was about DSL file itself - I'm trying to figure out the correct constructs for DSL-DRL language for enabling the match/compare logic for several elements from XML data.
Can you help me with this?
Again, I need to implement a construct xpathEqualMany inside DSL file, which will enable the following code for my DRL file:when xpathEqualMany - "/root/header/val1", "1" - "/root/header/val2", "2" - "/root/header/val3", "3" then Destination : "somedest";
-
3. Re: Question about XPathLanguage.dsl
tfennelly Dec 6, 2008 4:00 AM (in response to oleg_p)Have you done any research on this? Have you looked at Drools and how to write a DSL? What have you done?
Looking at XPathLanguage.dsl it looks like you just need to define a static method that evaluates multiple xpaths and then configure that in your own .dsl and on the action (just like Danny suggested).