<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Cambria;
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Rage Italic";
        panose-1:3 7 5 2 4 5 7 7 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
h5
        {mso-style-priority:9;
        mso-style-link:"Heading 5 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.Heading5Char
        {mso-style-name:"Heading 5 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 5";
        font-family:"Cambria","serif";
        color:#243F60;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Got it fixed. Thanks for looking.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:18.0pt;font-family:"Rage Italic";
color:#1F497D'>saleem<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>Saleem Lakhani<br>
<b>Sent:</b> Wednesday, March 02, 2011 9:53 AM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> [rules-users] PackageBuilderConfiguration<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>HI,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Has anyone seen this before on Drools 5:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>java.lang.NoSuchMethodError:
org/drools/compiler/PackageBuilderConfiguration.&lt;init&gt;(Ljava/util/Properties;)V<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>any insight?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:18.0pt;font-family:"Rage Italic";
color:#1F497D'>saleem<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>ioda100<br>
<b>Sent:</b> Wednesday, March 02, 2011 8:06 AM<br>
<b>To:</b> rules-users@lists.jboss.org<br>
<b>Subject:</b> Re: [rules-users] Guvnor and drools implementation - questions<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Really thank you, it's working
fine. I will see if it's working for my more difficult case.<o:p></o:p></p>

<div>

<p class=MsoNormal>On Tue, Mar 1, 2011 at 11:28 PM, Esteban [via Drools - Java
Rules Engine] &lt;<a
href="/user/SendEmail.jtp?type=node&amp;node=2613230&amp;i=0&amp;by-user=t"
target="_top">[hidden email]</a>&gt; wrote:<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>You need to create the DSL
first.<br>
Follow these steps:<br>
1.- Add java.util.Map to package imports (I think you already did this)<br>
2.- Create a new Enumeration with the following content:<br>
<b>'Map.properties': ['prop1', 'prop2', 'prop3']</b><br>
3.- Create a new DSL with this content:<br>
<b>[when]The property {key:ENUM:Map.properties} of the map is
{value}=Map((this[&quot;{key}&quot;] == &quot;{value}&quot;))</b><br>
4.- Create a new Rule and add the DSL sentence to the WHEN part. You should see
the drop down.<br>
<br>
Note the name of the enumeration and how the variable {key} is defined in the
DSL. I think you can also read the enumerations from a Java Enum present on
your model, but I'm not sure about it. Does anyone know about this?<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>Best Regards,<br clear=all>
<br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
<br>
Esteban Aliverti<br>
- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com
</a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal>2011/3/1 ioda100 &lt;<a
href="http://user/SendEmail.jtp?type=node&amp;node=2607065&amp;i=0"
target="_blank">[hidden email]</a>&gt;<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.5pt;padding:0in 0in 0in 12.0pt;
margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal>Yes but for this i will be obliged to create a POJO of an
object. And for attributes of that object in DSL i can define values that can
take this attribute?<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><br>
Maybe i don't understand but i don't see how to do with this.<br>
<br>
My case :<br>
I have Maps in the session. Each Map has for example 5 properties
(&quot;prop1&quot;, &quot;prop2&quot;, &quot;prop3&quot;, &quot;prop4&quot;,
&quot;prop51&quot;) and the value is a string. The Map is Map&lt;String,
Object&gt; but generally Object is a String.<br>
So in the When clause i have something like that :<br>
&nbsp;&nbsp;&nbsp; <span style='color:#000099'>$m &nbsp;:
Map((this[&quot;prop1&quot;] == &quot;test1&quot;))</span><br>
I have included java.utils.Map in Guvnor. So when i add a when clause i can
choose Map in the list but impossible to have &quot;prop1&quot; to
&quot;prop5&quot; in a drop down list for attributes of the Map.<br>
Would it be possible to create a Pojo for Map or would it be in conflict with
the Map of Java?<br>
<br>
Thank you for your time<br>
<br>
<br>
Le 1/03/2011 17:55, Vincent Legendre [via Drools - Java Rules Engine] a
écrit&nbsp;: <o:p></o:p></p>

<div>

<div>

<p class=MsoNormal>Le 01/03/2011 15:39, ioda100 a écrit&nbsp;: <o:p></o:p></p>

<p class=MsoNormal>Thanks for your quick answer Esteban.<br>
<br>
1) Ok i will have a look at DSL. In fact in my map i know all the properties
(about 200). It would be cool to be able to have a drop down list with all
these attributes as when we do it with objects for which we gave Pojo to
Guvnor. <o:p></o:p></p>

<p class=MsoNormal>You can define enumerations for a particular attribute. <br>
Inside a DSL you can constrain a placeholder with that enumeration. <br>
And finally, enums can be static, or dynamic (a interface to implement that
returns a list of values).<br>
<br>
search the Guvnor's doc in these chapters<o:p></o:p></p>

<h5>1.4.2.4.8.&nbsp;Data enumerations (drop down list configurations)<o:p></o:p></h5>

<p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>_______________________________________________
<br>
rules-users mailing list <br>
<a href="http://user/SendEmail.jtp?type=node&amp;node=2604255&amp;i=0&amp;by-user=t"
target="_blank">[hidden email]</a> <br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" noshade style='color:#CCCCCC' align=center>

</div>

</div>

<div>

<div>

<div>

<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#444444'>If you reply to this email, your message will be added to the
discussion below:<o:p></o:p></span></b></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#444444'><a
href="http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-drools-implementation-questions-tp2602641p2604255.html?by-user=t&amp;by-user=t&amp;by-user=t"
target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-drools-implementation-questions-tp2602641p2604255.html</a>
<o:p></o:p></span></p>

</div>

<div style='margin-top:4.8pt'>

<p class=MsoNormal><span style='font-size:8.5pt;font-family:"Tahoma","sans-serif";
color:#666666'>To unsubscribe from Guvnor and drools implementation -
questions, <a
href="http://drools-java-rules-engine.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&amp;node=2602641&amp;code=ZWRkeWhhdXRvdEBnbWFpbC5jb218MjYwMjY0MXwtMTEzMzMwMzAxNA==&amp;by-user=t&amp;by-user=t&amp;by-user=t"
target="_blank">click here</a>. <o:p></o:p></span></p>

</div>

</div>

</div>

<div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div class=MsoNormal>

<hr size=2 width=300 style='width:225.0pt' align=left>

</div>

</div>

<p class=MsoNormal>View this message in context: <a
href="http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-drools-implementation-questions-tp2602641p2606843.html?by-user=t&amp;by-user=t"
target="_blank">Re: Guvnor and drools implementation - questions</a><o:p></o:p></p>

<div>

<p class=MsoNormal><br>
Sent from the <a
href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html?by-user=t&amp;by-user=t"
target="_blank">Drools - User mailing list archive</a> at Nabble.com.<o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal><br>
_______________________________________________<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
rules-users mailing list<br>
<a href="http://user/SendEmail.jtp?type=node&amp;node=2607065&amp;i=1"
target="_blank">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></p>

</div>

</blockquote>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
_______________________________________________ <br>
rules-users mailing list <br>
<a href="http://user/SendEmail.jtp?type=node&amp;node=2607065&amp;i=2"
target="_blank">[hidden email]</a> <br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" noshade style='color:#CCCCCC' align=center>

</div>

</div>

<div>

<div>

<div>

<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#444444'>If you reply to this email, your message will be added to the
discussion below:<o:p></o:p></span></b></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#444444'><a
href="http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-drools-implementation-questions-tp2602641p2607065.html?by-user=t"
target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-drools-implementation-questions-tp2602641p2607065.html</a>
<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p>

<div>

<div class=MsoNormal>

<hr size=2 width=300 style='width:225.0pt' align=left>

</div>

</div>

<p class=MsoNormal>View this message in context: <a
href="http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-drools-implementation-questions-tp2602641p2613230.html">Re:
Guvnor and drools implementation - questions</a><br>
Sent from the <a
href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html">Drools
- User mailing list archive</a> at Nabble.com.<o:p></o:p></p>

</div>

</body>

</html>