Hi,<br><br>We are currently using Drools to enable conditional routing for our application. We are using DSLs to make it more user friendly.<br><br>Using Eclipse DSL editor, I noticed that there is an error (Duplicate Declaration of variable) if I use "and" to concatenate 2 DSL statements using the same variable name but this error does not appear if I use "or"<br>
<br>For example,<br><br>DSL Statement<br>[when]there is an "{id}"=$node: Node(nodeId=="{id}")<br><br>Using "and"<br>(there is an "{id}") and (there is an "{id}")<br><br>Using "or"<br>
(there is an "{id}") or (there is an "{id}")<br><br>With the brackets, each DSL statement should be isolated right? But it is kinda tricky as if we need to use 2 or more DSL statements together using the same variable name.<br>
<br>Also, is there any means to create unique variables for use in DSL, especially when joining for 2 or more DSL statements is required. <br><br><br>Best regards<br>Eric<br>