<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I have the same problem with BRL editor under eclipse. Also the
    action part dialog box does not show DSL phrases ...<br>
    The plugin is incomplete/buggy and shows errors but rules are
    correct (you can compile and run them).<br>
    This problem is the same since version 5.0. There is a JIRA for that
    since then ...<br>
    I don't know when a fix is planned, but my feeling is that nobody
    uses the guided editor under eclipse (dsrl editor works well and
    provide completions on facts and DSL sentences). But it is not easy
    when you have rules that comes from Guvnor ...<br>
    <br>
    Le 15/03/2011 20:47, John Peterson a &eacute;crit&nbsp;:
    <blockquote
cite="mid:ECB1508FB86BEF47A7A8256EF9FFD8D4E230@WPSDGQFS.OPR.STATEFARM.ORG"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from rtf -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <font face="Calibri" size="2"><span style="font-size: 11pt;">
          <div>I am experimenting with the Guided Rule Editor in
            Eclipse, but I am unable to get a Guided Rule to parse.</div>
          <div>&nbsp;</div>
          <div>I have created a Drools Project using the basic &#8220;Hello
            World&#8221; example for starters.&nbsp; I&#8217;ve created a class called
            &#8220;Item&#8221; with 3 attributes &#8211; itemPrice (float), ItemNumber
            (int), and itemDescription (String) with getters/setters.&nbsp; I
            do a &#8220;New-Drools-Guided
            Rule&#8221; to create a .brl file called &#8220;GuidedRule.brl&#8221; and get
            the &#8220;drools.package&#8221; created automatically.&nbsp; In
            drools.package, I add &#8220;package com.sample;&#8221; and &#8220;import
            com.sample.Item;&#8221; and save it.</div>
          <div>&nbsp;</div>
          <div>Then I go over to GuidedRule.brl and create a simple rule
            in the guided editor (this is the DRL view of it):</div>
          <div><font face="Times New Roman">&nbsp;</font></div>
          <div>rule &#8220;GuidedRule&#8221;</div>
          <div>dialect &#8220;mvel&#8221;</div>
          <div>when</div>
          <div>&nbsp; item : Item()</div>
          <div>then</div>
          <div>&nbsp; item.setItemDescription(&#8220;New Description&#8221;);</div>
          <div>end</div>
          <div>&nbsp;</div>
          <div>When I click &#8220;save&#8221; I get errors.&nbsp; </div>
          <div><font face="Times New Roman">&nbsp;</font></div>
          <div>On the Generated drl&nbsp; (read only), I get two problems
            -&gt;</div>
          <div style="text-indent: 0.5pt;">BuildError: Unable to build
            expression for 'consequence': Failed to compile: 2
            compilation error(s): </div>
          <div style="text-indent: 0.5pt;"> - (1,4) unqualified type in
            strict mode for: item</div>
          <div style="text-indent: 0.5pt;"> - (1,44) unable to resolve
            method using strict-mode:
            java.lang.Object.setItemDescription(java.lang.String)
            '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; item.setItemDescription( "New Description" );'</div>
          <div><font face="Times New Roman">&nbsp;</font></div>
          <div>On the brl source view, I get an error at the
            &lt;attributes&gt; -&gt; BuildError: Unable to resolve
            ObjectType 'Item'</div>
          <div><font face="Times New Roman">&nbsp;</font></div>
          <div>It seems to not be able to see my class, which is public,
            belonging to the same package, and included as an import in
            drools.package.&nbsp; I can get the rule to work if I don&#8217;t
            reference Item (simple &#8220;eval(true)&#8221; in the LHS, for
            example)&#8230;.</div>
          <div><font face="Times New Roman">&nbsp;</font></div>
          <div>I am running Drools 5.1.1 on Eclipse 3.5.</div>
          <div><font face="Times New Roman">&nbsp;</font></div>
          <div>Am I overlooking something simple here?</div>
          <div>&nbsp;</div>
          <div><font face="Times New Roman">&nbsp;</font></div>
          <div><font face="Times New Roman">&nbsp;</font></div>
        </span></font>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <!--  @author Hadrien HUGOT -->
      <!-- Mod&egrave;le signature thunderbird et autres  -->
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <title>CARTE DE VISITE</title>
      <span style="font-size: 13.5pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">Vincent LEGENDRE</span><br>
      <i><span style="font-size: 8.5pt; font-family:
          &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
          90);">Consultant S&eacute;nior</span></i><br>
      <span style="font-size: 4.5pt;"> <br>
      </span>
      <span style="font-size: 9pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">EURODECISION<o:p></o:p></span><br>
      <span style="font-size: 9pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">9A rue de la Porte de Buc 78000 VERSAILLES<br>
        T&eacute;l. : +33 (0)1 39 07 12 40<br>
        Direct : +33 (0)1 39 07 26 16<br>
        <a href="www.eurodecision.com">www.eurodecision.com</a></span><br>
      <a href="http://www.eurodecision.com/"><span style="font-size:
          12pt; font-family: &quot;Times New
          Roman&quot;,&quot;serif&quot;; color: windowtext;
          text-decoration: none;"> <img
            src="cid:part1.08050706.07040308@eurodecision.com"
            alt="EURODECISION" border="no"></span></a><a
        href="http://www.eurodecision.com/"><span style="font-size:
          12pt; font-family: &quot;Times New
          Roman&quot;,&quot;serif&quot;; color: windowtext;
          text-decoration: none;"> </span></a>
    </div>
  </body>
</html>