[rules-users] Decision tables - multiple params to function over multiple columns

2011-03-28 Thread Travis_Smith
Hi,

Currently I've got a consequence on a decision table that works like this:

callHelperFunction( $1, $2, $handleFromConditions);

where the first two parameters are strings, $1 being a code, $2 a 
description.

which means that you get the table holding things like:

"DC X223,This is the description text which can be fairly wordy"

That works just fine!

However: For ease of maintenance, the risk analysts want the input split 
over two columns, so is there any way of doing this? I'm trying to avoid 
inserting a temporary fact then cleaning it up after, if possible, as I 
can't see that being particularly good for performance.

Thank you,
-Trav

Travis Smith
Analyst Programmer
Development Centre
BNZ

DDI: +644 4746356 (Or Ext 76356)

CAUTION - This message may contain privileged and confidential information 
intended only for the use of the addressee named above. If you are not the 
intended recipient of this message you are hereby notified that any use, 
dissemination, distribution or reproduction of this message is prohibited. 
This email was sent by the Bank of New Zealand. You can contact us on 
0800 ASK BNZ (0800 275 269). Any views expressed in this message are those 
of the individual sender and may not necessarily reflect the views of Bank 
of New Zealand.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Using Drools to model and solve a production scheduling problem with changeovers

2011-03-28 Thread Andrei Neboian
Dear All,

I am looking for a user-friendly platform which would allow me to model and
solve a
*production scheduling problem with changeover times*. Since it's an NP-Hard
problem, I am getting convinced that a CP formulation would be most
appropriate. Later on, a GUI should be designed to allow a user to interact
with the model.

Is "drools" a proper platform for this? Are there any examples of this type
of problem solved with Drools?

I need to tackle a problem with 4 parallel machines, over 100 jobs and 100
changeovertypes (sequence dependant setup times between each job).

I would appreciate any help on this! Thanks

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


[rules-users] StatefulKnowledgeSession, serialization and FactHandle question

2011-03-28 Thread Laird Nelson
Hello; I'm using Drools 5.2.0-SNAPSHOT.

I have a StatefulKnowledgeSession spawned from a KnowledgeBase whose
KnowledgeBaseConfiguration is set up to use equality, not identity for (as I
understand it) testing to see whether a fact is in the base or not.

I have this verified with a (nasty) assert statement (I didn't see any other
way to get the KnowledgeBaseConfiguration out, which looks like an API
omission to me):

assert ((InternalRuleBase)((
KnowledgeBaseImpl)sks.getKnowledgeBase()).getRuleBase()).getConfiguration().getAssertBehaviour().equals(AssertBehaviour.EQUALITY);

OK, so the internal knowledge base is using equality.

I stick some facts in via insert.  Then I serialize the session using all
the right classes from org.drools.marshalling.  I choose the full
serialization mode.

As I understand it, this means that the knowledge base and the facts will
all be serialized.  I am aware of the fact that all facts will get new
identities.

At some point in the future, I deserialize the session (successfully).

When I take the same object that I inserted, and call
statefulSession.getFactHandle(myObject), I get null back.

This is despite the fact that my object has an equals() method, and that the
equals() method is heavily unit tested (and simple).

That is, despite the fact that the KnowledgeBase is confirmed to use
equality, not identity, there does not seem to be a way to test if the
session contains a particular fact.  It's like identity is still being used.

Am I overlooking something obvious?

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


Re: [rules-users] Rule storage

2011-03-28 Thread Tihomir Surdilovic
Sorry I am the "silent partner" in this - as Michael said if you use the 
a dsl and its "then" scope expression in your rules, a change to the dsl 
like for example:


[then] Augment {var} price = ${var}.price += 5
to
[then] Augment {var} price = ${var}.price += 10

would be considered a global change across all rules using this dsl in 
your package that use that expression.


You could as Michael also said make direct changes in your exported 
repository.xml and then import it back to Guvnor, but you will loose 
version history and would need to re-import all for fact model jars and 
any other assets that are not text so this is not recommended ;)


Thanks.
Tihomir




On 3/28/11 11:22 AM, Michael Anstis wrote:
I think the view would have been if rules used DSL like "There is a 
priced beverage=Beverage( $p : price > 200)" then you could change the 
"200" to something else and all rules using the DSL would 
automagically change.


My colleague, who is choosing to remain silent here ;), also had the 
good idea that an export is only XML, that you could parse and update 
before re-importing; however you'd loose all your history.


Cheers,

Mike

On 28 March 2011 16:09, FrankVhh > wrote:


Mike,

Thanks again for your swift reply.

I have one more question, though :-) What do you mean by "only need to
update DSL"? I really don't get this. Imo, DSL are just rules with
a shirt
on.

Regards,
Frank

--
View this message in context:

http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743501.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



___
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] Rule storage

2011-03-28 Thread Michael Anstis
I think the view would have been if rules used DSL like "There is a priced
beverage=Beverage( $p : price > 200)" then you could change the "200" to
something else and all rules using the DSL would automagically change.

My colleague, who is choosing to remain silent here ;), also had the good
idea that an export is only XML, that you could parse and update before
re-importing; however you'd loose all your history.

Cheers,

Mike

On 28 March 2011 16:09, FrankVhh  wrote:

> Mike,
>
> Thanks again for your swift reply.
>
> I have one more question, though :-) What do you mean by "only need to
> update DSL"? I really don't get this. Imo, DSL are just rules with a shirt
> on.
>
> Regards,
> Frank
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743501.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
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule storage

2011-03-28 Thread FrankVhh
Mike,

Thanks again for your swift reply.

I have one more question, though :-) What do you mean by "only need to
update DSL"? I really don't get this. Imo, DSL are just rules with a shirt
on.

Regards,
Frank

--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743501.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] Rule storage

2011-03-28 Thread Michael Anstis
Hi Frank,

The rules are, on the whole, stored as XML (RuleModel passed through
XStream). See a previous exchange of emails on this forum about RuleModel,
it might prove useful.

However this is how we hand Rule persistence off to JCR; which in turn
stores it in another, lets say, internal format. Unfortunately I've not ran
JCR against a database to know what the resulting tables look like.

A colleague suggested use of DSL might help as you'd only need update the
DSL and recompile all rules. Might be worth a look?

Otherwise, using the REST API, or WEBDAV (not sure if it's more limited) to
retrieve a list of rules that can then be iterated and updated before
writing back might be the best option :(

With kind regards,

Mike

On 28 March 2011 15:37, FrankVhh  wrote:

> Hi,
>
> Tx agaiin for the clarification on the .xml file. It makes a lot more
> sense,
> now.
>
> Bulk update is indeed not provided, I was hoping to have a look at the way
> the rules were stored (probably plain drl, or isn't it?) to assess what
> effort a bulk update would take.
>
> If you mean by your last statement to have rules that set the initial base
> price, and afterwards add rules to modify the base price (when beverage(),
> then b.augmentBasePrice(5)), I absolutely agree it is the best solution,
> implementation-wise.
>
> Regarding rule management and governance, there are a few issues that might
> arise.
> 1) It is more difficult to get a view on your base prices
> 2) What if base prices are adapted manually to the desired level? Which
> "adaptation rules" need to be deleted or changed?
>
> I am not saying that this should be basic functionality of a brms, neither
> am I very fond of the requirement myself. As it shifts the burden of work
> from the business to the more technical people :-)
>
> Regards,
> Frank
>
>
> manstis wrote:
> >
> > mortgage-sample-repository.xml is the example repository installed into
> > Guvnor when you first deploy (and answer "yes" to the install
> > examples
> > prompt).
> >
> > Changing this XML will therefore have no effect, unless you re-import the
> > XML too using the Administration functions in Guvnor.
> >
> > In order to achieve what you state you'd need to (a) use the JCR API to
> > query the underlying datastore, (b) re-build your binary rule package. We
> > don't provide a bulk update facility.
> >
> > Given your example would it be not best to have Beverages themselves as
> > Facts and have rules that set their prices?
> >
> > Think of the Rules Engine as a RDBMS and the Facts as records.
> >
> > With kind regards,
> >
> > Mike
> >
> > On 28 March 2011 14:09, FrankVhh 
> > wrote:
> >
> > > Hi,
> > >
> > > Thanks for your quick reply, Salaboy.
> > >
> > > Webdav indeed allow me to browse through the packages and I was able
> > to
> > > locate a file mortgage-sample-repository.xml in the folder
> > WEB-INF/classes
> > > of drools-fuvnor.war.
> > >
> > > However, changes in the xml did not show up in Guvnor and vice
> versa.
> > So,
> > > jackrabbit has to store its contents somewhere else. The folder
> > > "repository"
> > > only consists of class-files.
> > >
> > > The reason I am looking for this file, is because I am looking for
> > ways to
> > > simultaneously update multiple rule parameters, without adding a new
> > rule
> > > to
> > > the ruleset. F.e. we want all base prices of our beverages to
> > increase by
> > > 5%.
> > >
> > > It would be as if you run an sql update statement on a "rule
> > database".
> > > You'll probably need to parse the drl to achieve this.
> > >
> > > Regards,
> > > Frank
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743044.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
> > >
> >
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743373.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
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule storage

2011-03-28 Thread FrankVhh
Hi,

Tx agaiin for the clarification on the .xml file. It makes a lot more sense,
now.

Bulk update is indeed not provided, I was hoping to have a look at the way
the rules were stored (probably plain drl, or isn't it?) to assess what
effort a bulk update would take.

If you mean by your last statement to have rules that set the initial base
price, and afterwards add rules to modify the base price (when beverage(),
then b.augmentBasePrice(5)), I absolutely agree it is the best solution,
implementation-wise.

Regarding rule management and governance, there are a few issues that might
arise.
 1) It is more difficult to get a view on your base prices
 2) What if base prices are adapted manually to the desired level? Which
"adaptation rules" need to be deleted or changed?

I am not saying that this should be basic functionality of a brms, neither
am I very fond of the requirement myself. As it shifts the burden of work
from the business to the more technical people :-)

Regards,
Frank


manstis wrote:
> 
> mortgage-sample-repository.xml is the example repository installed into
> Guvnor when you first deploy (and answer "yes" to the install
> examples
> prompt).
> 
> Changing this XML will therefore have no effect, unless you re-import the
> XML too using the Administration functions in Guvnor.
> 
> In order to achieve what you state you'd need to (a) use the JCR API to
> query the underlying datastore, (b) re-build your binary rule package. We
> don't provide a bulk update facility.
> 
> Given your example would it be not best to have Beverages themselves as
> Facts and have rules that set their prices?
> 
> Think of the Rules Engine as a RDBMS and the Facts as records.
> 
> With kind regards,
> 
> Mike
> 
> On 28 March 2011 14:09, FrankVhh 
> wrote:
> 
> > Hi,
> >
> > Thanks for your quick reply, Salaboy.
> >
> > Webdav indeed allow me to browse through the packages and I was able
> to
> > locate a file mortgage-sample-repository.xml in the folder
> WEB-INF/classes
> > of drools-fuvnor.war.
> >
> > However, changes in the xml did not show up in Guvnor and vice versa.
> So,
> > jackrabbit has to store its contents somewhere else. The folder
> > "repository"
> > only consists of class-files.
> >
> > The reason I am looking for this file, is because I am looking for
> ways to
> > simultaneously update multiple rule parameters, without adding a new
> rule
> > to
> > the ruleset. F.e. we want all base prices of our beverages to
> increase by
> > 5%.
> >
> > It would be as if you run an sql update statement on a "rule
> database".
> > You'll probably need to parse the drl to achieve this.
> >
> > Regards,
> > Frank
> >
> > --
> > View this message in context:
> >
> http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743044.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
> >
> 
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 


--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743373.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] Rule storage

2011-03-28 Thread Michael Anstis
mortgage-sample-repository.xml is the example repository installed into
Guvnor when you first deploy (and answer "yes" to the install examples
prompt).

Changing this XML will therefore have no effect, unless you re-import the
XML too using the Administration functions in Guvnor.

In order to achieve what you state you'd need to (a) use the JCR API to
query the underlying datastore, (b) re-build your binary rule package. We
don't provide a bulk update facility.

Given your example would it be not best to have Beverages themselves as
Facts and have rules that set their prices?

Think of the Rules Engine as a RDBMS and the Facts as records.

With kind regards,

Mike

On 28 March 2011 14:09, FrankVhh  wrote:

> Hi,
>
> Thanks for your quick reply, Salaboy.
>
> Webdav indeed allow me to browse through the packages and I was able to
> locate a file mortgage-sample-repository.xml in the folder WEB-INF/classes
> of drools-fuvnor.war.
>
> However, changes in the xml did not show up in Guvnor and vice versa. So,
> jackrabbit has to store its contents somewhere else. The folder
> "repository"
> only consists of class-files.
>
> The reason I am looking for this file, is because I am looking for ways to
> simultaneously update multiple rule parameters, without adding a new rule
> to
> the ruleset. F.e. we want all base prices of our beverages to increase by
> 5%.
>
> It would be as if you run an sql update statement on a "rule database".
> You'll probably need to parse the drl to achieve this.
>
> Regards,
> Frank
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743044.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
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule storage

2011-03-28 Thread FrankVhh
Hi,

Thanks for your quick reply, Salaboy.

Webdav indeed allow me to browse through the packages and I was able to
locate a file mortgage-sample-repository.xml in the folder WEB-INF/classes
of drools-fuvnor.war.

However, changes in the xml did not show up in Guvnor and vice versa. So,
jackrabbit has to store its contents somewhere else. The folder "repository"
only consists of class-files.

The reason I am looking for this file, is because I am looking for ways to
simultaneously update multiple rule parameters, without adding a new rule to
the ruleset. F.e. we want all base prices of our beverages to increase by
5%.

It would be as if you run an sql update statement on a "rule database".
You'll probably need to parse the drl to achieve this.

Regards,
Frank

--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2743044.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] Rule storage

2011-03-28 Thread Mauricio Salatino
Hi there.. I think that there is directory called repository that it's
created using JCR to store all your knowledge assets.
Take a look inside your container directory structure to see if you can find
it. Guvnor also allows you to connect to the repository using web dav, so
you can basically browse your knowledge assets using that.

Greetings.

On Mon, Mar 28, 2011 at 6:42 AM, FrankVhh wrote:

> Hi all,
>
> This may be a stupid question, but is there a way to see your Guvnor-rules
> outside Guvnor in some kind of readable file?
>
> I noticed jackrabbit is used as a repository, so I would like to have a
> look
> in there, but I am not able to find it in the expanded guvnor.war folder.
>
> The version I am using is Guvnor 5.1.1, with standard configuration.
>
> A look in the Guvnor documentation did not help me out. Feel free to burn
> me
> if I missed it :-)
>
> Thanks and regards,
> Frank
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2742515.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
>



-- 
 - 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] Rule storage

2011-03-28 Thread FrankVhh
Hi all,

This may be a stupid question, but is there a way to see your Guvnor-rules
outside Guvnor in some kind of readable file?

I noticed jackrabbit is used as a repository, so I would like to have a look
in there, but I am not able to find it in the expanded guvnor.war folder.

The version I am using is Guvnor 5.1.1, with standard configuration.

A look in the Guvnor documentation did not help me out. Feel free to burn me
if I missed it :-)

Thanks and regards,
Frank

--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2742515.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] Ask for help on rule authoring

2011-03-28 Thread Swindells, Thomas
One option is to wrap the expression in an eval
Eg ad : ApplicationData(eval(Integer.parseInt(age) < 0).

A better option is to fix your ApplicationData class so that the type of age is 
Integer or int.

Thomas

> -Original Message-
> From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
> boun...@lists.jboss.org] On Behalf Of Benson Fung
> Sent: 25 March 2011 17:47
> To: Rules Users List
> Subject: Re: [rules-users] Ask for help on rule authoring
>
> so how can I change it to integer in the rule?
>
>
>
> 2011/3/26 Wolfgang Laun :
> > If it's stored in a fact field of type int: yes.
> >
> > The way you write it: no.
> >
> > -W
> >
> >
> > On 25 March 2011 18:37, Benson Fung  wrote:
> >>
> >> If the age is String type, can I use Integer.parseInt(age) to change
> >> to integer and then evaluate it?
> >>
> >> like
> >>
> >> when
> >>   ad : ApplicationData(Integer.parseInt(age) < 0)
> >> then
> >>  ad.setReturnMsg("age should not be negative 0")
> >> end
> >>
> >>
> >>
> >>
> >> 2011/3/26 Wolfgang Laun :
> >> > Sorry, I don't use guided editors.
> >> > -W
> >> >
> >> > On 25 March 2011 18:17, Benson Fung 
> wrote:
> >> >>
> >> >> Hi Wolfgang,
> >> >>
> >> >> I managed to author this rule(ApplicationData( age == null || age
> ==
> >> >> "" )) via Technical Rules editor of BRMS.
> >> >> However, I cannot create this rule via Business Rule Guided
> Editor of
> >> >> BRMS.
> >> >>
> >> >> Could you let me know how?
> >> >>
> >> >>
> >> >> Thanks
> >> >>
> >> >>
> >> >>
> >> >> 2011/3/26 Wolfgang Laun :
> >> >> > You can't use a method call as the left hand side operand in a
> >> >> > constraint;
> >> >> > thus
> >> >> >age.size() == 0
> >> >> > is not correct.
> >> >> >
> >> >> > Do you really mean
> >> >> >age == "null"
> >> >> >
> >> >> > Probably
> >> >> >   ApplicationData( age == null || age == "" )
> >> >> > is the right thing to do, provided that ApplicationData.age is
> a
> >> >> > String.
> >> >> >
> >> >> > -W
> >> >> >
> >> >> > On 25 March 2011 17:32, Benson Fung 
> wrote:
> >> >> >>
> >> >> >> Hi,
> >> >> >>
> >> >> >> I got the following rule problem.
> >> >> >>
> >> >> >> The rule is like :
> >> >> >>
> >> >> >> 1.  |   rule "Rule1"
> >> >> >> 2.  |   dialect "mvel"
> >> >> >> 3.  |   when
> >> >> >> 4.  |   ad : ApplicationData( age == "null" ,
> >> >> >> age.size()
> >> >> >> == 0)
> >> >> >> 5.  |   then
> >> >> >> 6.  |   ad.setReturnMsg( "age should not be
> null or
> >> >> >> empty"
> >> >> >> );
> >> >> >> 7.  |   end
> >> >> >>
> >> >> >> where setReturnMsg is a method of ApplicationData Fact();
> >> >> >>
> >> >> >> However, I got the validation error :
> >> >> >>
> >> >> >> [Rule1] [ERR 101] Line 4:49 no viable alternative at input ')'
> in
> >> >> >> rule
> >> >> >> "Rule1" in pattern ApplicationData
> >> >> >> [Rule1] [ERR 102] Line 4:51 mismatched input '==' expecting
> ')' in
> >> >> >> rule "Rule1" in pattern ApplicationData
> >> >> >>
> >> >> >> Please help what the problem is.
> >> >> >>
> >> >> >>
> >> >> >> Thanks
> >> >> >> ___
> >> >> >> 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 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 mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One 

[rules-users] CSV Issues - Decision table

2011-03-28 Thread jkb
We recently started using Drools 5.1 and exploring the possibility of .csv
for decision tables. 
The CSV support for decision tables seems to be quite not the same as that
of xls. Documentation/books cover a few things (eg: work-around cell merging
-
http://www.packtpub.com/article/human-readable-rules-with-drools-jboss-rules-part1).
While .xls file works fine, the .csv version of the same behaves in a
bizarre way.   
When same facts are passed in to both, the csv one wont fire any rules.
http://drools-java-rules-engine.46999.n3.nabble.com/file/n2742295/ExcelScreenShot.jpg
 
http://drools-java-rules-engine.46999.n3.nabble.com/file/n2742295/CSVScreenShot.jpg
 

Find attached both .xls and the .csv versions, please let me know if I got
something fundamentally wrong.

--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/CSV-Issues-Decision-table-tp2742295p2742295.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