Re: [rules-users] Does Drools work with Set datatype?

2012-02-20 Thread Wolfgang Laun
You might have tried it.

You might have read the documentation: "The operator contains is used
to check whether a field that is a Collection or array contains the
specified value."

-W


On 20/02/2012, aitchnyu  wrote:
> I wanted faster (and cleaner) code for intersections and membership checks
> in
> my Drools Planner 5.4 program, so (AFAIK) Set datatype can do it faster.
>
> Can Drools work equally well with Set as with List datatype? I want to use
> the `contains` and `memberOf` operations, but I dont care for index access
> (set[n])
>
>
> *Background*: I am developing a timetabling application in Drools Planner.
> Each teacher has a list (set!) of periods he may teach. I want to find
> intersecting periods between all teachers; so that I can create swap moves.
>
> Drools now has to handle Set datatype instead of List.
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Does-Drools-work-with-Set-datatype-tp3760001p3760001.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> 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] Adding a List(CollectionFramework) datatype in DeclarativeModel

2012-02-20 Thread Veera
Hi All,


While creating Fact fields in Declarative Model the options are :
Whole Number,text,Date,Decimal,true/false ,

So is it possible to add a List(CollectionFramework) Datatype in that.

Thanks,
Veera

--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-a-List-CollectionFramework-datatype-in-DeclarativeModel-tp3760157p3760157.html
Sent from the Drools: User forum 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] KnowledgeAgent custom class loader not working for PKG resources

2012-02-20 Thread Esteban Aliverti
Hi Herman,
I'm working on this issue right now. Did you create the jira issue? Could
you please send me the link?

Best Regards,



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


On Sat, Feb 18, 2012 at 1:46 PM, Hrumph  wrote:

>
> http://drools.46999.n3.nabble.com/file/n3756244/knowledge-agent-classloader-5.4.zip
> knowledge-agent-classloader-5.4.zip
>
> Attached...thanks.
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3756244.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> 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] Does Drools work with Set datatype?

2012-02-20 Thread aitchnyu
>You might have tried it. 
I didnt get you. Could you elaborate?

I read Oracle's docs for the Java Collections interface, the sentence you
mentioned and `5.8.3.3.8. List and Map access` of Drools Expert. I thought
it was possible.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Does-Drools-work-with-Set-datatype-tp3760001p3760280.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Is is possible XML Rules in Drools?

2012-02-20 Thread shanmuga
Hi to All,
Is it possible to create rules in XML? I think it is possible... It is
efficient or not -compare to normal DRL file.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-is-possible-XML-Rules-in-Drools-tp3760385p3760385.html
Sent from the Drools: User forum 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] Adding a List(CollectionFramework) datatype in DeclarativeModel

2012-02-20 Thread Esteban Aliverti
Just do not select anything in the combo-box and write the fqn of the type
you want to use: i.e. java.util.List

Best Regards,



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


On Mon, Feb 20, 2012 at 9:51 AM, Veera  wrote:

> Hi All,
>
>
> While creating Fact fields in Declarative Model the options are :
> Whole Number,text,Date,Decimal,true/false ,
>
> So is it possible to add a List(CollectionFramework) Datatype in that.
>
> Thanks,
> Veera
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Adding-a-List-CollectionFramework-datatype-in-DeclarativeModel-tp3760157p3760157.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> 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] Is is possible XML Rules in Drools?

2012-02-20 Thread Wolfgang Laun
XML for Drools has not been developed since Drools 4.0, and is
considered a deprecated feature.

What are you trying to achieve and why would you want XML to help you
to do that?

-W



On 20/02/2012, shanmuga  wrote:
> Hi to All,
> Is it possible to create rules in XML? I think it is possible... It is
> efficient or not -compare to normal DRL file.
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Is-is-possible-XML-Rules-in-Drools-tp3760385p3760385.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> 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] Adding a List(CollectionFramework) datatype in DeclarativeModel

2012-02-20 Thread Veera
Thanks  it's working...

--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-a-List-CollectionFramework-datatype-in-DeclarativeModel-tp3760157p3760446.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Session persistence

2012-02-20 Thread Alberto R. Galdo
Hi,

   We are using Drools Expert, Fusion, Flow, etc... to build a complex
event processing system and one of our main constraints is to be fault
tolerant. As such, we are using an StatefulKnowledgeSession and our system
involves processes, sets of rules, events, accumulators, ... . What we need
is to be able to reconstruct a KnowledgeSession in a given state and all
our changes in the knowledgesession need to be persisted at the very moment
a change is detected.

   The documentation is sparse in this point (
http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html/ch04.html#d0e2702)
and what we've seen so far is that our rules are persisted but no
traces
of facts or events ... This would be unaceptable for our product. We need
to be able to stop our service at any time and restore the knowledge
session at any time as it was at the moment of the previous stop.

   We have previous experience with JBPM 3 using a persistent storage to be
fault tolerant and  it works like a charm, we can see our processes,
process instances, timers, etc...   .

   Can we get a *full* KnowledgeSession persistence service for Drools?


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


Re: [rules-users] Drools : Guvnor issue on tomcat when attempting to use Oracle DB as rule store

2012-02-20 Thread Kevin Kelleher
Thanks Mantis,

Working now .. I just increased the heap size ... so I was wrong, it was the
cause - not the symptom.

Regards,
Kevin

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-issue-on-tomcat-when-attempting-to-use-Oracle-DB-as-rule-store-tp3754398p3760644.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Guvnor - verify that external RDBMS is being used to store rules

2012-02-20 Thread Kevin Kelleher
Hi,

I configured an external RDBMS (Oracle) as the data store for Guvnor ( on
tomcat 6.0.35) - new repository.xml etc.

Thinks look good .. guvnor launched ok ... entered & validated rules etc ...

Now I want to verify that the rules are stored on the db. ( VERSIONING_*
files etc) as opposed to the default flat files under the tomcat install
dir.

Basically I'm not sure of the best way to do this. The db tables contain
blobs so wont "see" anything there!

Using Guvnor, I edited a test.  This updated data in the datastore directory
(C:\apache-tomcat-6.0.35\bin\repository\repository\datastore). Is this
correct behaviour?

If the external DB is used, on tomcat startup, is a "copy" of everything
sent to bin/repository?

I deleted the repository dir under tomcat bin & restarted tomcat. I hoped
that the repository would be rebuilt from the db tables data but this did
not happen.

So can anyone advise? 

thanks in advance,
Kevin





--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-verify-that-external-RDBMS-is-being-used-to-store-rules-tp3760689p3760689.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Is it possible XML Rules in Drools?

2012-02-20 Thread shanmuga
Which version have the facility of this *XML based rules* in drools?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-is-possible-XML-Rules-in-Drools-tp3760385p3760723.html
Sent from the Drools: User forum 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] Is it possible XML Rules in Drools?

2012-02-20 Thread Wolfgang Laun
On 20/02/2012, shanmuga  wrote:
> Which version have the facility of this *XML based rules* in drools?
>

You might be able to use Drools rules in XML in 5.1.1 (and earlier versions).

For the record: You are advised to consider this very, Very, VERY
carefully since there'll be no migration path to any later version and
support for back versions is meagre.

-W


> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Is-is-possible-XML-Rules-in-Drools-tp3760385p3760723.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> 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] Is it possible XML Rules in Drools?

2012-02-20 Thread Vincent Legendre
Using such old version will certainly bring you more problems, may be 
even with XML rules ...

May be you should consider using the XML format of a BRL file (Guided 
rules in Guvnor) or guided decision tables.
This XML format is the XStream format for corresponding internal 
objects, but this format is maintained and automatically ported to new 
release (by Guvnor repository import).

May be you should also consider to use DRL ... Not sure of why you want 
to use XML here...


Le 20/02/2012 14:56, Wolfgang Laun a écrit :
> On 20/02/2012, shanmuga  wrote:
>> Which version have the facility of this *XML based rules* in drools?
>>
> You might be able to use Drools rules in XML in 5.1.1 (and earlier versions).
>
> For the record: You are advised to consider this very, Very, VERY
> carefully since there'll be no migration path to any later version and
> support for back versions is meagre.
>
> -W
>

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


Re: [rules-users] Guvnor - verify that external RDBMS is being used to store rules

2012-02-20 Thread Kevin Kelleher
Sorry All Finger problems ... no longer an issue  didn't see that I'd
named a file repository..xml ( 2 .'s)


--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-verify-that-external-RDBMS-is-being-used-to-store-rules-tp3760689p3761002.html
Sent from the Drools: User forum 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] Session persistence

2012-02-20 Thread Mike Melton
That's odd. We have stateful sessions persisted using the techniques shown
in the documentation you link to, and rehydrated sessions are fully
populated with all facts/events from working memory as expected. We have
the same requirement (sessions must survive a server reboot 100% intact)
and we have been quite pleased with the results. The only things we have to
re-establish upon rehydration are globals and event listeners. We
use JPAKnowledgeService.newStatefulKnowledgeSession(..) to establish new
persisted sessions and JPAKnowledgeService.loadStatefulKnowledgeSession(..)
to rehydrate existing persisted sessions.

I doubt I've been much help to you but perhaps it will help to know that
someone has seen persistence work as advertised.

Mike

2012/2/20 Alberto R. Galdo 

> Hi,
>
>We are using Drools Expert, Fusion, Flow, etc... to build a complex
> event processing system and one of our main constraints is to be fault
> tolerant. As such, we are using an StatefulKnowledgeSession and our system
> involves processes, sets of rules, events, accumulators, ... . What we need
> is to be able to reconstruct a KnowledgeSession in a given state and all
> our changes in the knowledgesession need to be persisted at the very moment
> a change is detected.
>
>The documentation is sparse in this point (
> http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html/ch04.html#d0e2702)
>  and what we've seen so far is that our rules are persisted but no traces
> of facts or events ... This would be unaceptable for our product. We need
> to be able to stop our service at any time and restore the knowledge
> session at any time as it was at the moment of the previous stop.
>
>We have previous experience with JBPM 3 using a persistent storage to
> be fault tolerant and  it works like a charm, we can see our processes,
> process instances, timers, etc...   .
>
>Can we get a *full* KnowledgeSession persistence service for Drools?
>
>
> Greets,
>
> ___
> 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] Session persistence

2012-02-20 Thread Alberto R. Galdo
That's exactly what we are trying to do. Maybe we are suffering from a
configuration problem ... Can you share your persistence.xml, just to
compare...

Alberto R. Galdo



2012/2/20 Mike Melton 

> That's odd. We have stateful sessions persisted using the techniques shown
> in the documentation you link to, and rehydrated sessions are fully
> populated with all facts/events from working memory as expected. We have
> the same requirement (sessions must survive a server reboot 100% intact)
> and we have been quite pleased with the results. The only things we have to
> re-establish upon rehydration are globals and event listeners. We
> use JPAKnowledgeService.newStatefulKnowledgeSession(..) to establish new
> persisted sessions and JPAKnowledgeService.loadStatefulKnowledgeSession(..)
> to rehydrate existing persisted sessions.
>
> I doubt I've been much help to you but perhaps it will help to know that
> someone has seen persistence work as advertised.
>
> Mike
>
> 2012/2/20 Alberto R. Galdo 
>
>> Hi,
>>
>>We are using Drools Expert, Fusion, Flow, etc... to build a complex
>> event processing system and one of our main constraints is to be fault
>> tolerant. As such, we are using an StatefulKnowledgeSession and our system
>> involves processes, sets of rules, events, accumulators, ... . What we need
>> is to be able to reconstruct a KnowledgeSession in a given state and all
>> our changes in the knowledgesession need to be persisted at the very moment
>> a change is detected.
>>
>>The documentation is sparse in this point (
>> http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html/ch04.html#d0e2702)
>>  and what we've seen so far is that our rules are persisted but no traces
>> of facts or events ... This would be unaceptable for our product. We need
>> to be able to stop our service at any time and restore the knowledge
>> session at any time as it was at the moment of the previous stop.
>>
>>We have previous experience with JBPM 3 using a persistent storage to
>> be fault tolerant and  it works like a charm, we can see our processes,
>> process instances, timers, etc...   .
>>
>>Can we get a *full* KnowledgeSession persistence service for Drools?
>>
>>
>> Greets,
>>
>> ___
>> 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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Adding a List(CollectionFramework) datatype in DeclarativeModel

2012-02-20 Thread droolsruleuser
yes, you can have a set method in your data model which add the attribute
value to a collection.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-a-List-CollectionFramework-datatype-in-DeclarativeModel-tp3760157p3761550.html
Sent from the Drools: User forum 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] Session persistence

2012-02-20 Thread Mark Proctor
The persistence mechanism for user provided objects is pluggable, based 
on a given strategy. The reason for this is some people are happy to 
have their objects serialised with the session state, others have their 
objects in a DB somewhere and just want a placeholder serialised.  This 
works for process instance variables and also inserted working memory facts.


Mark
On 20/02/2012 15:29, Mike Melton wrote:
That's odd. We have stateful sessions persisted using the techniques 
shown in the documentation you link to, and rehydrated sessions are 
fully populated with all facts/events from working memory as expected. 
We have the same requirement (sessions must survive a server reboot 
100% intact) and we have been quite pleased with the results. The only 
things we have to re-establish upon rehydration are globals and event 
listeners. We use JPAKnowledgeService.newStatefulKnowledgeSession(..) 
to establish new persisted sessions 
and JPAKnowledgeService.loadStatefulKnowledgeSession(..) to rehydrate 
existing persisted sessions.


I doubt I've been much help to you but perhaps it will help to know 
that someone has seen persistence work as advertised.


Mike

2012/2/20 Alberto R. Galdo mailto:arga...@gmail.com>>

Hi,

   We are using Drools Expert, Fusion, Flow, etc... to build a
complex event processing system and one of our main constraints is
to be fault tolerant. As such, we are using an
StatefulKnowledgeSession and our system involves processes, sets
of rules, events, accumulators, ... . What we need is to be able
to reconstruct a KnowledgeSession in a given state and all our
changes in the knowledgesession need to be persisted at the very
moment a change is detected.

   The documentation is sparse in this point (

http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html/ch04.html#d0e2702
) and what we've seen so far is that our rules are persisted but
no traces of facts or events ... This would be unaceptable for our
product. We need to be able to stop our service at any time and
restore the knowledge session at any time as it was at the moment
of the previous stop.

   We have previous experience with JBPM 3 using a persistent
storage to be fault tolerant and  it works like a charm, we can
see our processes, process instances, timers, etc...   .

   Can we get a *full* KnowledgeSession persistence service for
Drools?


Greets,

___
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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Guvnor 5.4.0.Beta2 launch Error.

2012-02-20 Thread Monline
Hi,

Just wondering if anyone has any experience with the following scenario 
and if so, did you find a solution?

1. I deployed this Beta2 version successfully onto Tomcat.
2. Then during the launch the following error message popped up:
- 400 Sorry, a technical error occurred. Please contact a system
administrator.
 
Thanks in advance...



--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-5-4-0-Beta2-launch-Error-tp3762321p3762321.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools & jBPM Event : London 8th March 2012

2012-02-20 Thread Mark Proctor

  
  
http://blog.athico.com/2012/02/drools-jbpm-event-london-8th-march-2012.html
-
Register now to join us for the free Drools & jBPM London 2012
event, hurry limited spaces :)
http://redhat-mail.com/t/XRU-OE4J-824IMOYW1D/cr.aspx


When Thursday
8th March
Where
Stationers Hall, London


  

  
  
  Agenda
  


  
  
  

  


  

  


  
  

  

  09:00
  
  Registration, tea and coffee


  


  09:30
  
  Introduction/ Welcome


  


  09:45
  
  Rules, Events &
  Processes: the Open Source way
Mark Proctor - Worldwide Technical Lead for BRMS
& BPMS, Red Hat


  


  10:45
  
  Decision Tables
Michael Anstis, JBoss Core Developer, Red Hat 


  


  11:15
  
  Tea/Coffee Break


  


  11:30
  
  BPMN2 and jBPM5
Kris Verlaenen, JBoss Core Developer, Red Hat 


  


  12:15
  
  Solving Planning
  Problems
Geoffrey de Smet, JBoss Core Developer, Red Hat 


  


  12:45
  
  Case Studies


  


  13:00
  
  Lunch and Networking
  

  

  
  

  


  

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


Re: [rules-users] Guvnor 5.4.0.Beta2 launch Error.

2012-02-20 Thread Esteban Aliverti
Do you see any suspicious log in Tomcat's logs?

Best Regards,



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


On Tue, Feb 21, 2012 at 1:42 AM, Monline  wrote:

> Hi,
>
> Just wondering if anyone has any experience with the following scenario
> and if so, did you find a solution?
>
> 1. I deployed this Beta2 version successfully onto Tomcat.
> 2. Then during the launch the following error message popped up:
>- 400 Sorry, a technical error occurred. Please contact a system
> administrator.
>
> Thanks in advance...
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Guvnor-5-4-0-Beta2-launch-Error-tp3762321p3762321.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> 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] Loop Drools on Multi Element

2012-02-20 Thread FrankVhh
Hi,

See forall element in Drools manual:
5.8.3.6.1. Conditional Element forall

It does exactly what you describe. For the record, you may want to insert
all your line items separately to working memory.

Kind regards,
Frank


aliosha79 wrote
> 
> Hi,
> i'm Alessio and i'm new in this forum. I'm learning to use drool in this
> period and i'm facing a problem.
> Briefly:
> 1- i have an xml document with a repeated element i.e.:
> 
>   
> 
>   item1
>   35
> 
>   
>   
> 
>   item2
>   65
> 
>   
>   
> 
>   item3
>   52
> 
>   
>   Normal
> 
> 
> 2- i marshalled it in a java class named "OrderType" using jaxb library
> 3- then i want to apply a rule stating: /IF EVERY LINEITEM QUANTITY IS
> GREATER THAN 2
> THEN SET PRIORITY TO HIGH/
> 
> i can access every single order line Element using this rule:
>  
> when
>$Order : OrderType($Order.OrderLine[0].LineItem.Quantity.Value > 2)
> then
>$Order.getUBLRuleEnginePriority().setValue("High");
> 
> $Order.addApplyedRule("hpRule");
> end
> 
> But how can i cycle on each of them writing the rule at point 3?
> Thanks a lot.
> Aliosha
> 


--
View this message in context: 
http://drools.46999.n3.nabble.com/Loop-Drools-on-Multi-Element-tp3761638p3762858.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users