<!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 écrit :
<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> </div>
<div>I have created a Drools Project using the basic “Hello
World” example for starters. I’ve created a class called
“Item” with 3 attributes – itemPrice (float), ItemNumber
(int), and itemDescription (String) with getters/setters. I
do a “New-Drools-Guided
Rule” to create a .brl file called “GuidedRule.brl” and get
the “drools.package” created automatically. In
drools.package, I add “package com.sample;” and “import
com.sample.Item;” and save it.</div>
<div> </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"> </font></div>
<div>rule “GuidedRule”</div>
<div>dialect “mvel”</div>
<div>when</div>
<div> item : Item()</div>
<div>then</div>
<div> item.setItemDescription(“New Description”);</div>
<div>end</div>
<div> </div>
<div>When I click “save” I get errors. </div>
<div><font face="Times New Roman"> </font></div>
<div>On the Generated drl (read only), I get two problems
-></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)
' item.setItemDescription( "New Description" );'</div>
<div><font face="Times New Roman"> </font></div>
<div>On the brl source view, I get an error at the
<attributes> -> BuildError: Unable to resolve
ObjectType 'Item'</div>
<div><font face="Times New Roman"> </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. I can get the rule to work if I don’t
reference Item (simple “eval(true)” in the LHS, for
example)….</div>
<div><font face="Times New Roman"> </font></div>
<div>I am running Drools 5.1.1 on Eclipse 3.5.</div>
<div><font face="Times New Roman"> </font></div>
<div>Am I overlooking something simple here?</div>
<div> </div>
<div><font face="Times New Roman"> </font></div>
<div><font face="Times New Roman"> </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è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:
"Arial","sans-serif"; color: rgb(21, 24,
90);">Vincent LEGENDRE</span><br>
<i><span style="font-size: 8.5pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">Consultant Sénior</span></i><br>
<span style="font-size: 4.5pt;"> <br>
</span>
<span style="font-size: 9pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">EURODECISION<o:p></o:p></span><br>
<span style="font-size: 9pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">9A rue de la Porte de Buc 78000 VERSAILLES<br>
Té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: "Times New
Roman","serif"; 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: "Times New
Roman","serif"; color: windowtext;
text-decoration: none;"> </span></a>
</div>
</body>
</html>