Re: [rules-users] Problem creating package - validateUniqueRuleNames(PackageBuilder.java:830)

2011-03-03 Thread Wolfgang Laun
It could be an error in the DSL file. Check for errors after *each*
builder.add(...).
-W


2011/3/4 Saleem Lakhani :
> Following is my code:
>
>
>
> KnowledgeBuilderConfiguration kbc =
> KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
>
> kbc.setProperty("drools.dialect.java.compiler", "JANINO");
>
> KnowledgeBuilder builder = null;
>
> builder = KnowledgeBuilderFactory.newKnowledgeBuilder(kbc);
>
>
>
> Reader drlSource = new
> InputStreamReader(RVEngine.class.getResourceAsStream(ruleset.getDrlSource()));
> //ruleset.getDrlSource() = com/cit/myDrl.dslr
>
> Reader dslSource = new
> InputStreamReader(RVEngine.class.getResourceAsStream(ruleset.getDslSource()));
>
>
>
> builder.add(ResourceFactory.newReaderResource(dslSource), ResourceType.DSL);
>
> builder.add(ResourceFactory.newReaderResource(drlSource),
> ResourceType.DSLR);
>
>
>
>  KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
>
>  kbase.addKnowledgePackages(builder.getKnowledgePackages());
>
>
>
>
>
> no matter what I type in my dslr (drl) file I get the following exception on
> the highlighted line; ANY IDEA
>
> I have 1 rule or No rule it still throws the same exception. Does it have to
> do with any jar files?
>
>
>
> Caused by: java.lang.NullPointerException
>
>  at
> org.drools.compiler.PackageBuilder.validateUniqueRuleNames(PackageBuilder.java:830)
>
>  at
> org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:555)
>
>  at
> org.drools.compiler.PackageBuilder.addPackageFromDslr(PackageBuilder.java:355)
>
>  at
> org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:461)
>
>  at
> org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
>
>
>
>
>
> saleem
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Problem creating package - validateUniqueRuleNames(PackageBuilder.java:830)

2011-03-03 Thread Saleem Lakhani
Following is my code:

 

KnowledgeBuilderConfiguration kbc =
KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();

kbc.setProperty("drools.dialect.java.compiler", "JANINO");

KnowledgeBuilder builder = null;

builder = KnowledgeBuilderFactory.newKnowledgeBuilder(kbc);

 

Reader drlSource = new
InputStreamReader(RVEngine.class.getResourceAsStream(ruleset.getDrlSourc
e()));  //ruleset.getDrlSource() = com/cit/myDrl.dslr

Reader dslSource = new
InputStreamReader(RVEngine.class.getResourceAsStream(ruleset.getDslSourc
e()));

 

builder.add(ResourceFactory.newReaderResource(dslSource),
ResourceType.DSL);

builder.add(ResourceFactory.newReaderResource(drlSource),
ResourceType.DSLR);

 

 KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();

 kbase.addKnowledgePackages(builder.getKnowledgePackages());

 

 

no matter what I type in my dslr (drl) file I get the following
exception on the highlighted line; ANY IDEA

I have 1 rule or No rule it still throws the same exception. Does it
have to do with any jar files?

 

Caused by: java.lang.NullPointerException

 at
org.drools.compiler.PackageBuilder.validateUniqueRuleNames(PackageBuilde
r.java:830)

 at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:555)

 at
org.drools.compiler.PackageBuilder.addPackageFromDslr(PackageBuilder.jav
a:355)

 at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.j
ava:461)

 at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.ja
va:28)

 

 

saleem

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] 'Long' and 'double' value comparing problem in drools 5.1.0

2011-03-03 Thread Miles Wen
hi there,
I have a simple fact class:

public class Msg {
private Long lo = 5l;
private double dbl = 5.5;

public Long getLo() {
return lo;
}

public void setLo(Long lo) {
this.lo = lo;
}

public double getDbl() {
return dbl;
}

public void setDbl(double dbl) {
this.dbl = dbl;
}
}

and a simple drl program:

package com.sample

import com.sample.Msg;

rule "Hello World"
when
m:Msg(lo >= dbl)
then
System.out.println( "hello world" );
System.out.println(m.getLo());
System.out.println(m.getDbl());
end

I simply compare the Long value, which is 5, to the double value ,which is
5.5, with operator '>=', and the output is:

hello world
5
5.5

but it can't be ,cause 5 is less than 5.5.
then I modified the drl program a bit:

m:Msg(lo == dbl)

It successfully prints out the message as well.It seems that drools treated
the double value '5.5' as '5' in comparing...
Is this a bug or something?What could I do to correct it?
thanks.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Clustering & High Availability

2011-03-03 Thread Mauricio Salatino
Hi Carlos,
You should take a look at jBPM5 now. It has the same features than Drools
Flow.
Drools and jBPM5 are environment agnostic, so you can use them inside tomcat
or jboss.
Depending on your use case, jBPM5 can be configured to work on a cluster or
for high availability.
Can you elaborate a little more about your specific requirements? and why do
you need High Availability.
Greetings.

2011/3/3 Carlos Santiago Moreno 

> Hi there! My team and I were thinking on implementing Drools Flow on a
> project, running it on a Tomcat Apache server, but we have to investigate
> some little details of this tools before taking any desition. The thing is,
> that we have been searching, on a lots of forums, mailing lists, and blog
> posts, but no one ever gives a direct answer to two particular questions.
>
> The first one is, if Flow is compatible with clustering. Till now, we
> understand that is not a problem if we use JBoss AS, but, as I said before,
> we are planning to use Tomcat, so we don't know for sure if it will work.
>
> The other question unanswered yet is, what can you tell us about the High
> Availability. We need to know if it possible to set HA features on this
> tool.
>
> Everything you could tell us will be for help.
>
> Carlos S. Moreno
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Clustering & High Availability

2011-03-03 Thread Mauricio Salatino
Hi Carlos,
You should take a look at jBPM5 now. It has the same features than Drools
Flow.
Drools and jBPM5 are environment agnostic, so you can use them inside tomcat
or jboss.
Depending on your use case, jBPM5 can be configured to work on a cluster or
for high availability.
Can you elaborate a little more about your specific requirements? and why do
you need High Availability.
Greetings.


2011/3/3 Carlos Santiago Moreno <51...@sistemas.frc.utn.edu.ar>

> Hi there! My team and I were thinking on implementing Drools Flow on a
> project, running it on a Tomcat Apache server, but we have to investigate
> some little details of this tools before taking any desition. The thing is,
> that we have been searching, on a lots of forums, mailing lists, and blog
> posts, but no one ever gives a direct answer to two particular questions.
>
> The first one is, if Flow is compatible with clustering. Till now, we
> understand that is not a problem if we use JBoss AS, but, as I said before,
> we are planning to use Tomcat, so we don't know for sure if it will work.
>
> The other question unanswered yet is, what can you tell us about the High
> Availability. We need to know if it possible to set HA features on this
> tool.
>
> Everything you could tell us will be for help.
>
> Carlos S. Moreno
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Clustering & High Availability

2011-03-03 Thread Carlos Santiago Moreno
Hi there! My team and I were thinking on implementing Drools Flow on a
project, running it on a Tomcat Apache server, but we have to investigate
some little details of this tools before taking any desition. The thing is,
that we have been searching, on a lots of forums, mailing lists, and blog
posts, but no one ever gives a direct answer to two particular questions.

The first one is, if Flow is compatible with clustering. Till now, we
understand that is not a problem if we use JBoss AS, but, as I said before,
we are planning to use Tomcat, so we don't know for sure if it will work.

The other question unanswered yet is, what can you tell us about the High
Availability. We need to know if it possible to set HA features on this
tool.

Everything you could tell us will be for help.

Carlos S. Moreno
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Clustering & High Availability

2011-03-03 Thread Carlos Santiago Moreno
Hi there! My team and I were thinking on implementing Drools Flow on a
project, running it on a Tomcat Apache server, but we have to investigate
some little details of this tools before taking any desition. The thing is,
that we have been searching, on a lots of forums, mailing lists, and blog
posts, but no one ever gives a direct answer to two particular questions.

The first one is, if Flow is compatible with clustering. Till now, we
understand that is not a problem if we use JBoss AS, but, as I said before,
we are planning to use Tomcat, so we don't know for sure if it will work.

The other question unanswered yet is, what can you tell us about the High
Availability. We need to know if it possible to set HA features on this
tool.

Everything you could tell us will be for help.

Carlos S. Moreno
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor and drools implementation - questions

2011-03-03 Thread ioda100
Yes thanks it's working with enum like explained previously by Esteban. I
won't do it dynamic for now i think.

It's not always of the form ., i have some in .
or . but for these i can make a separate DSL that will cast
the string to int or long. Except if there is a better solution.

Another thing is that i will have for this DSL :
*[when]The property {key:ENUM:Map.properties} of the map is
{value}=Map((this["{key}"] == "{value}"))

The property 'prop1' of the map is 'val1'

But if i want to have a second rule : **"The property 'prop1' of the map is
'val1'" and the map is different of the first map found above. Let's say i
have an attribute ID in the Maps, i could check that (ID1 != ID2)*. But with
DSL i am a little lost of how to do that. With DRL i did like this :
$m1 : Map(this["prop1"] == "val1")
$m2 : Map((this["prop1"] == "val1") && (this["id"] != $m1["id"]))
*
i could do
**[when]The property {key:ENUM:Map.properties} of the map is {value} = $m1 :
Map((this["{key}"] == "{value}"))
but it will always be stored in $m1 so if i do : **"The property 'prop1' of
the map is 'val1'*" twice, the second will override the value of $m1.


I have to put my rules in 4 drl files separate (i know which rules go in
which drl file), is the only way to create a different package for each drl
file i want? And to put the Enum and DSL part in Global if i have to use it
for the 4 files? If i want a precise name for my drl file, i have to give
this exact name to the package?


I tried to use the test scenario to test all that so i have created a simple
Test Scenario.
In the Given part, i have selected Map. Then keySet, i put prop1, prop2...
and for entrySet, i put test1, test2... and i have made a simple rules that
check that prop1 is equal to "test1" but when i run the scenario, i got :
[Error: unable to find constructor for: java.util.Map] [Near : {... new
java.util.Map( }] ^ [Line: 1, Column: 0] . Is there something special to
do to test with Map?


I tried to put some drools code in a function but it seems to not work. For
example :
WorkingMemory wm = drools.getWorkingMemory();
wm.setGlobal("resultValue", "OK");
It's not a problem since i use DSL for this but i suppose it's normal.


Sorry for all these problems, a little lost with all functionnality of this
tool and manual doesn't talk a lot about this.

thanks

On Thu, Mar 3, 2011 at 2:22 PM, Esteban [via Drools - Java Rules Engine] <
ml-node+2625046-28794131-237...@n3.nabble.com> wrote:

> "Maps.properties" is just a name I choose for the enumeration. You can use
> whatever identifier you want, but. The identifier has to be of the form
> .. It has to have a dot (.). I think this is because
> enumeration were created for bind a fact type attribute to a list of values.
>
> Best Regards,
>
> 
>
> Esteban Aliverti
> - Developer @ http://www.plugtree.com
> - Blog @ http://ilesteban.wordpress.com
>
>
> 2011/3/3 Vincent Legendre <[hidden 
> email]
> >
>
>>  I don't think that enums needs to be linked to a Pojo attribute. To me it
>> is just an identifier used in ENUM DSL constraints. The 'properties' is not
>> an attribute of a Map. I think you could set it to whatever you like
>> (something more linked to your problem).
>>
>> For making that dynamic, it is explained in the guvnor 
>> doc(chapter 
>> "1.4.2.4.8. Data enumerations (drop down list configurations)" )
>>
>> 'Person.age' : (new com.yourco.DataHelper()).getListOfAges()
>>
>>
>> But I never tried that.
>>
>>
>> Le 02/03/2011 14:06, ioda100 a écrit :
>>
>> Really thank you, it's working fine. I will see if it's working for my
>> more difficult case.
>>
>>
>> On Tue, Mar 1, 2011 at 11:28 PM, Esteban [via Drools - Java Rules Engine]
>> <[hidden 
>> email]
>> > wrote:
>>
>>>  You need to create the DSL first.
>>> Follow these steps:
>>> 1.- Add java.util.Map to package imports (I think you already did this)
>>> 2.- Create a new Enumeration with the following content:
>>> *'Map.properties': ['prop1', 'prop2', 'prop3']*
>>> 3.- Create a new DSL with this content:
>>> *[when]The property {key:ENUM:Map.properties} of the map is
>>> {value}=Map((this["{key}"] == "{value}"))*
>>> 4.- Create a new Rule and add the DSL sentence to the WHEN part. You
>>> should see the drop down.
>>>
>>> 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?
>>>
>>>  Best Regards,
>>>
>>> 
>>>
>>> Esteban Aliverti
>>> - Developer @ http://www.plugtree.com
>>> - Blog @ http://ilesteban.wordpress.com
>>>
>>>
>>>  2011/3/1 ioda100 <[hidden 
>>> email]

Re: [rules-users] Problems with repeated execution of rules

2011-03-03 Thread Dmitri Pissarenko
Thanks, now it works!

Dmitri
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to modify changeset.xml in guvnor

2011-03-03 Thread Sathya Prakash
Hi,

Is there any way where we can edit changeset.xml through console.
http://drools-java-rules-engine.46999.n3.nabble.com/file/n2625118/screenshot.jpeg
 
I am Jboss Esb for executing drools.

Regards,
Sathya Prakash.

--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/How-to-modify-changeset-xml-in-guvnor-tp1404619p2625118.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor and drools implementation - questions

2011-03-03 Thread Esteban Aliverti
"Maps.properties" is just a name I choose for the enumeration. You can use
whatever identifier you want, but. The identifier has to be of the form
.. It has to have a dot (.). I think this is because
enumeration were created for bind a fact type attribute to a list of values.

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2011/3/3 Vincent Legendre 

>  I don't think that enums needs to be linked to a Pojo attribute. To me it
> is just an identifier used in ENUM DSL constraints. The 'properties' is not
> an attribute of a Map. I think you could set it to whatever you like
> (something more linked to your problem).
>
> For making that dynamic, it is explained in the guvnor 
> doc(chapter 
> "1.4.2.4.8. Data enumerations (drop down list configurations)" )
>
> 'Person.age' : (new com.yourco.DataHelper()).getListOfAges()
>
>
> But I never tried that.
>
>
> Le 02/03/2011 14:06, ioda100 a écrit :
>
> Really thank you, it's working fine. I will see if it's working for my more
> difficult case.
>
>
> On Tue, Mar 1, 2011 at 11:28 PM, Esteban [via Drools - Java Rules Engine]
> <[hidden 
> email]
> > wrote:
>
>>  You need to create the DSL first.
>> Follow these steps:
>> 1.- Add java.util.Map to package imports (I think you already did this)
>> 2.- Create a new Enumeration with the following content:
>> *'Map.properties': ['prop1', 'prop2', 'prop3']*
>> 3.- Create a new DSL with this content:
>> *[when]The property {key:ENUM:Map.properties} of the map is
>> {value}=Map((this["{key}"] == "{value}"))*
>> 4.- Create a new Rule and add the DSL sentence to the WHEN part. You
>> should see the drop down.
>>
>> 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?
>>
>>  Best Regards,
>>
>> 
>>
>> Esteban Aliverti
>> - Developer @ http://www.plugtree.com
>> - Blog @ http://ilesteban.wordpress.com
>>
>>
>>  2011/3/1 ioda100 <[hidden 
>> email]
>> >
>>
>>> 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?
>>>
>>> Maybe i don't understand but i don't see how to do with this.
>>>
>>> My case :
>>> I have Maps in the session. Each Map has for example 5 properties
>>> ("prop1", "prop2", "prop3", "prop4", "prop51") and the value is a string.
>>> The Map is Map but generally Object is a String.
>>> So in the When clause i have something like that :
>>> $m  : Map((this["prop1"] == "test1"))
>>> 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 "prop1" to "prop5" in a
>>> drop down list for attributes of the Map.
>>> Would it be possible to create a Pojo for Map or would it be in conflict
>>> with the Map of Java?
>>>
>>> Thank you for your time
>>>
>>>
>>> Le 1/03/2011 17:55, Vincent Legendre [via Drools - Java Rules Engine] a
>>> écrit :
>>>
>>>  Le 01/03/2011 15:39, ioda100 a écrit :
>>>
>>> Thanks for your quick answer Esteban.
>>>
>>> 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.
>>>
>>> You can define enumerations for a particular attribute.
>>> Inside a DSL you can constrain a placeholder with that enumeration.
>>> And finally, enums can be static, or dynamic (a interface to implement
>>> that returns a list of values).
>>>
>>> search the Guvnor's doc in these chapters
>>> 1.4.2.4.8. Data enumerations (drop down list configurations)
>>>
>>>   ___
>>> rules-users mailing list
>>> [hidden 
>>> email]
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>> --
>>>   If you reply to this email, your message will be added to the
>>> discussion below:
>>>
>>> http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-drools-implementation-questions-tp2602641p2604255.html
>>>  To unsubscribe from Guvnor and drools implementation - questions, click
>>> here

Re: [rules-users] java.lang.RuntimeException: Unexpected global

2011-03-03 Thread Esteban Aliverti
Hi,

The error is clear: There is no global defined with that name :P
Are you checking for errors in kbuilder? Try to debug and see if the global
is present in the generated kbase.

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2011/3/2 Saleem Lakhani 

>  Hi,
>
>
>
> What is the actual reason for this error? Why cant drools give some better
> explaination of this problem when the exception is thrown.
>
>
>
> Here is the snippet of my code:
>
>
>
> workingMemory.setGlobal("validationErrorHierarchy",
> validationErrorHierarchy);   //workingMemory is StatefulKnowledgeSession
>
>
>
> I am using the following variable in  dslr:
>
>
>
> *global* com.model.ValidationErrorHierarchy validationErrorHierarchy;
>
>
>
> thanks
>
> saleem
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor and drools implementation - questions

2011-03-03 Thread Vincent Legendre
Title: CARTE DE VISITE


  
  
I don't think that enums needs to be linked to a Pojo attribute. To
me it is just an identifier used in ENUM DSL constraints. The
'properties' is not an attribute of a Map. I think you could set it
to whatever you like (something more linked to your problem).

For making that dynamic, it is explained in the guvnor
  doc (
  chapter "1.4.2.4.8. Data enumerations (drop down list
  configurations)" )
'Person.age' : (new com.yourco.DataHelper()).getListOfAges()

But I never tried that.


Le 02/03/2011 14:06, ioda100 a écrit :
Really thank you, it's working fine. I will see if
  it's working for my more difficult case.
  
  
  On Tue, Mar 1, 2011 at 11:28 PM, Esteban
[via Drools - Java Rules Engine] <[hidden email]>
wrote:

   You need to create the DSL first.
Follow these steps:
1.- Add java.util.Map to package imports (I think you
already did this)
2.- Create a new Enumeration with the following content:
'Map.properties': ['prop1', 'prop2', 'prop3']
3.- Create a new DSL with this content:
[when]The property {key:ENUM:Map.properties} of the map
  is {value}=Map((this["{key}"] == "{value}"))
4.- Create a new Rule and add the DSL sentence to the WHEN
part. You should see the drop down.

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?

  
  Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com 
- Blog @ http://ilesteban.wordpress.com


  
  
2011/3/1 ioda100 <[hidden
  email]>

 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?
  

  Maybe i don't understand but i don't see how to do
  with this.
  
  My case :
  I have Maps in the session. Each Map has for example 5
  properties ("prop1", "prop2", "prop3", "prop4",
  "prop51") and the value is a string. The Map is
  Map but generally Object is a
  String.
  So in the When clause i have something like that :
      $m  : Map((this["prop1"] ==
"test1"))
  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 "prop1" to "prop5" in a drop down
  list for attributes of the Map.
  Would it be possible to create a Pojo for Map or would
  it be in conflict with the Map of Java?
  
  Thank you for your time
  
  
  Le 1/03/2011 17:55, Vincent Legendre [via Drools -
  Java Rules Engine] a écrit :
  

   Le 01/03/2011 15:39, ioda100 a écrit :
 Thanks for your quick answer
  Esteban.
  
  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. 

You can define enumerations for a particular
attribute. 
Inside a DSL you can constrain a placeholder
with that enumeration. 
And finally, enums can be static, or dynamic (a
interface to implement that returns a list of
values).

search the Guvnor's doc in these chapters
1.4.2.4.8. Data

enumerations (drop down list configurations)


  


  ___ 
  rule