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.
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";
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).