Hi Justin,<br><br>I&#39;ve answered some points you&#39;ve raised below.<br><br>Hopefully others with greater knowledge in the areas in question can help with the blanks.<br><br>With kind regards,<br><br>Mike<br><br>On 6 July 2011 16:15, Justin Case <span dir="ltr">&lt;<a href="mailto:send_lotsa_spam_here@yahoo.com">send_lotsa_spam_here@yahoo.com</a>&gt;</span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi all,<br>
<br>
I played a bit with 5.2.0.Final and I have a couple of more questions, I don&#39;t<br>
know whether I misread the documentation or I just expect too much...<br>
<br>
1. Can I use functions in a web decision table columns? Because if yes, I just<br>
can&#39;t figure out how... Either way would be good, calling a function defined in<br>
Guvnor or calling a static function of some model class (like<br>
ModelClass.getMyParameter(...) ). Anything which would result to an eval()<br>
block... or should I use a &quot;formula&quot; caclulation type then enter in each cell<br>
the same eval(function()) call? Even so, I still need a rule like:<br>
rule&quot;mine&quot;<br>
when<br>
  eval($var.myFunction($date.lastTime))...<br>
<br></blockquote><div> </div><div>You can use a predicate within a pattern by selecting &quot;Predicate&quot; as the
 Condition Column type. These compile to inline evals. It is not however
 possible to define a predicate that is not part of a pattern.<br>
<br>
If, in your example, $var and $date are constants you could look into 
using a Template instead of Decision Table. You&#39;ll find there is greater
 flexibility to what DRL you can define.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2. I see discussions about translations of Guvnor GUI, and I see them mentioning<br>
a certain Constants.properties file. I can&#39;t see that file anywhere in my<br>
installation, nor any other language translation for that matter although French<br>
and Spanish were mentioned. Is there by chance a German translation around, and<br>
even if no, how can one generate and use one?<br>
<br></blockquote><div><br>The community edition (i.e. Guvnor, not JBoss BRMS) has translations for es_ES, fr_FR, ja_JP, pt_BR, zh_CN and en_US. GWT compiles the resources away into JScript. Depending upon your locale GWT will only dispatch the relevant bundles to your browser. We have users on the mailing lists and IRC running with fr_FR. I suspect some members of our community run es_ES or pt_BR. Unfortunately all translations are undertaken by the community and as such, unless somebody is willing to undertake a German translation it is unlikely we will ever have one.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
3. I have the feeling that uploading a new version of the POJO model jar updates<br>
the existing classes only. That is, if I remove a class from the Java model and<br>
upload it again, then package validation will fail because it doesn&#39;t find the<br>
old class (even when NOT used by any rule or anything I know of). Wasn&#39;t there<br>
somewhere a Guvnor dialog where one could remove POJO model classes by hand one<br>
by one? I kind of remember such a class list...<br></blockquote><div><br>I find this observation strange, as the JAR is just stored as a BLOB in JCR and the latest version retrieved to build suggestions available for rule authoring.<br>
<br>There are however known issues, logged in JIRA, with Validation not clearing down correctly which could lead to what you report.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
4. And is it really that way that uploading a new POJO model requires an<br>
application restart to actually use it?<br></blockquote><div><br>Not in my experience. I often upload POJO JARs (with 5.2 at least) and am able to work with the classes defined therein without a restart. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
5. If I upload something from Eclipse it lands under &quot;Other assets,<br>
documentation&quot; even if they are Java classes which I hoped would land under<br>
Model... is there anything I can do about that? A Java POJO model once uploaded<br>
is just a jar blob afterwards, not usable from Eclipse anymore...<br>
<br>
6. The declarative model defined in Guvnor is not much usable in Eclipse either,<br>
comes as an unrecognized text file. I didn&#39;t try to edit it in Eclipse, the lack<br>
of integration in the application classes would bring nothing. Could the<br>
declarative model mapped somehow to some Java classes (or generate classes out<br>
of it)?<br></blockquote><div><br>Declarative classes are made available using the syntax documented in Drools Expert&#39;s user-guide when either (a) the DRL containing them is added to a KnowledgeBase, (b) A serialised KnowledgeBase (as would be available from Guvnor after building the package) is used. I suspect you are accessing the &quot;Declarative Model&quot; resources from a Guvnor repository using the Eclipse WebDAV facilities (given the context of your surrounding questions). AFAIK, Declarative models are not available this way - they are stored on the Asset in the repository using XStream to serialise the internal object graph to XML. It might however be an interesting idea to provide a means to retrieve their DRL equivalent through WebDAV. If you&#39;d like to pursue this please raise a JIRA capturing your requirement and details of your specification.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
7. Clicking a Guvnor repository business rule file in Eclipse throws a WebDav<br>
error &quot;not found&quot;, both for brl and gdsl files. Could it have to do with the<br>
fact that the package doesn&#39;t validate at the moment?<br>
<br>
8. Clicking in Eclipse in the Guvnor perspective a freshly created rule flow<br>
(nothing uploaded yet) throws an exception as well...<br>
<br>
9. If I have a model class with a field called aThing, it will have an accessor<br>
called getAThing(). Guvnor after POJO import will keep both capitals - thus in<br>
the field selection dropdowns I will have the field AThing... should this be my<br>
only problem.<br></blockquote><div><br>Why is this a problem? As you say the field, presumably privately called &quot;aThing&quot; is accessible via the getter &quot;AThing&quot;?<br><br>Does your DRL not compile?<br><br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Thank you for any answers,<br>
JC<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>