None here.<br><br>Longer term, I wonder whether our DSL syntax is too weak?<br><br>Even the ability to declare blocks would be nicer than long lines (and line split markers):-<br><br><span style="font-family: courier new,monospace;">then [Book the customer for the flight]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $f.setAvailable( $f.getAvailable() - 1 );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        update( $f );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        Booking booking = new Booking();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        booking.setCustomer( $r.getCustomer() );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        booking.setFlight( $f );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        insert( booking );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;">
<br><br><div class="gmail_quote">On 4 December 2010 18:33, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Currently each entry must be a single line of text. This results in long lines, especially on the RHS.<br><br>I have experimentally inserted a transformation of the DSL text (in  DSLTokenizedMappingFile)<br>which converts &#39;\&#39;+EOL on the fly to a space. (The passed-in reader is read into a buffer, &#39;\&#39;+EOL<br>

is translated to space, and EOLs are inserted later to readjust the line number.) In a text editor,<br>I can now write, e.g.,<br><br>then][][Bb]ook the customer for the flight=\<br>  $f.setAvailable( $f.getAvailable() - 1 );\<br>

  update( $f );                            \<br>  Booking booking = new Booking();         \<br>  booking.setCustomer( $r.getCustomer() ); \<br>  booking.setFlight( $f );                 \<br>  insert( booking );<br><br>
Of course, the DSL editor will not preserve this, but future development might provide more<br>
convenient editing there, too.<br><br>Any objections?<br><font color="#888888">-W<br>
</font><br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>