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 &quot;and&quot; to concatenate 2 DSL statements using the same variable name but this error does not appear if I use &quot;or&quot;<br>
<br>For example,<br><br>DSL Statement<br>[when]there is an &quot;{id}&quot;=$node: Node(nodeId==&quot;{id}&quot;)<br><br>Using &quot;and&quot;<br>(there is an &quot;{id}&quot;) and (there is an &quot;{id}&quot;)<br><br>Using &quot;or&quot;<br>

(there is an &quot;{id}&quot;) or (there is an &quot;{id}&quot;)<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>