Hi,<br><br>I&#39;m fixing a bug in all of Guvnors&#39; guided editors: <a href="https://issues.jboss.org/browse/GUVNOR-1362">https://issues.jboss.org/browse/GUVNOR-1362</a><br><br>The existing problem is if a model Date field is set in one of the guided editors RHS we need to convert the String into a Date for use in the set Method (currently we attempt to pass the String which fails).<br>
<br>I have a working solution however it requires the user to explicitly add a package import for &quot;java.text.SimpleDateFormat&quot; that handles the parsing. This can be accomplished through the UI.<br><br>I have two options to remove the need for the user to do anything:-<br>
<br>(1) Pre-process all rules to be included in the package, check if one uses Date in the RHS and if so add an import into the header. I&#39;d need to pre-process all rules as the package DRL String is built linearly and by the time the package compiler gets to a rule that uses a Date in the RHS the header, including imports, has already been built.<br>
<br>(2) Add (another) implicit import into *all* packages. I assume we already do something like this for the boxed primitives and some others (List? Collection? Map? etc).<br><br>Before I venture into option (1) can any (core) developer advise (1) where can I add an additional implicit import (I assume the compiler somewhere), (2) is this simpler solution acceptable to the (core) developers?<br>
<br>Thanks,<br><br>Mike <br><br>