RE: [rules-users] decision tables

2007-06-05 Thread Hehl, Thomas
You're not getting answers because you're not asking specific enough
questions. Like, for example, what is not in the policy example provided
that you need further help with.

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of kranthikumar dalai
Sent: Tuesday, June 05, 2007 7:39 AM
To: rules-users@lists.jboss.org
Subject: [rules-users] decision tables

 

 

 Hi to every one,

 

  Can i examples of drools with decision tables. I gone
through documentation. But can i have some other examples.

 

 

 

 

 

  Regards:

 

Kranthi Dalai ( I posted so many querries regarding this, but no one
answered..)

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


[rules-users] Decision tables

2007-06-05 Thread kranthikumar dalai

Hi To every one,


I understood the pricing example. But problem is that i
have to give the table to my HR-People that they can modify and update the
rules. That's the question i am asking.




Thanx  Regards:

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


[rules-users] Extracting an object in the working memory for multiple times

2007-06-05 Thread Rajesh.Sachin10

I asserted 3 object in the working memory and I iterate it to check a value
in that object for a condition in the first rule. I need to iterate all the
objects in the working memory again for another condition in the second
rule. But the objects are not iterating in the second rule. 

There is any condition that an asserted object can be used only once? 
-- 
View this message in context: 
http://www.nabble.com/Extracting-an-object-in-the-working-memory-for-multiple-times-tf3871503.html#a10968613
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] Use of the same reference in multipe rules

2007-06-05 Thread Rajesh.Sachin10

I asserted 3 class (Class1, Class2, Class3) in the working memory. I make an
reference for the class (Class1) in the first rule. Is it possible to use
the same reference in the 2nd rule?


Eg:

[when] class : Class1() eval(class.getVarName1() == {value1});
[then] .do something...

[when] eval(class.getVarName2() == {value2});
[then] ...do something


My requirement is to use the same class (Class1) in all the rules. I don't
want to iterate other two classes (Class2  Class3) in rule 2.
-- 
View this message in context: 
http://www.nabble.com/Use-of-the-same-reference-in-multipe-rules-tf3871632.html#a10968978
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] Decision tables

2007-06-05 Thread Hehl, Thomas
Yes, you can give the spreadsheet to your HR people for modification.

 

Please read: http://www.catb.org/~esr/faqs/smart-questions.html

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of kranthikumar dalai
Sent: Tuesday, June 05, 2007 8:40 AM
To: rules-users@lists.jboss.org
Subject: [rules-users] Decision tables

 

 

Hi To every one,

 

 

 I understood the pricing example. But problem is that i
have to give the table to my HR-People that they can modify and update the
rules. That's the question i am asking.

 

 

 

 

Thanx  Regards:

 

Kranthi Dalai

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


Re: [rules-users] decision tables

2007-06-05 Thread Mark Proctor

look in the drools-examples download.

Mark
kranthikumar dalai wrote:
 
 Hi to every one,
 
  Can i examples of drools with decision tables. I 
gone through documentation. But can i have some other examples.
 
 
 
 
 
  Regards:
 
Kranthi Dalai ( I posted so many querries regarding this, but no 
one answered..)



___
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] Help Needed.

2007-06-05 Thread Fernando Meyer

Hi Rajesh,

	You MUST use the org.drools.util.BinaryRuleBaseLoader to load a  
precompiled binary package into your RE classes.


public void testLoadAndExecBinary() throws Exception {
Person p = new Person();
BinaryRuleBaseLoader loader = new BinaryRuleBaseLoader();
loader.addPackage( this.getClass().getResourceAsStream( / 
RepoBinPackage.pkg ) );

RuleBase rb = loader.getRuleBase();
StatelessSession sess = rb.newStatelessSession();
sess.execute( p );
assertEquals(42, p.getAge());
}


Fernando Meyer
[EMAIL PROTECTED]
GPG: 5A6D 3374 B055 A513 9A02  A03B 3DB3 7485 D804 DDFB


On Jun 1, 2007, at 3:16 AM, Rajesh_Kumar wrote:



hi ,

First of all congratulations to you for JBRMS release.

You and your team has done a great job.


Micheal I am facing some issue , when I use jbrms.

I have written a sample technical rule by following all the steps  
as mentioned in the document.


I am able to download binary package also,but when I tried to use  
this package in my rule engine class using following code it’s  
giving some error like …




 FileInputStream fis = new FileInputStream( C:/drools/ 
TestPackage.pkg );


 ObjectInputStream ois = new ObjectInputStream( fis );

 Object objPackage = ois.readObject() ;


 when  ObjectInputStream object tries to read the object , its  
giving some  an error


  ois.close();

  fis.close();

Could you please help me out for this …

java.io.InvalidClassException: org.drools.rule.Rule; incompatible  
types for field salience


at java.io.ObjectStreamClass.matchFields(Unknown Source)

at java.io.ObjectStreamClass.getReflector(Unknown Source)

at java.io.ObjectStreamClass.initNonProxy(Unknown Source)

at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)

at java.io.ObjectInputStream.readClassDesc(Unknown Source)

at java.io.ObjectInputStream.readOrdinaryObject(Unknown  
Source)


at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at java.util.HashMap.readObject(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown  
Source)


at java.lang.reflect.Method.invoke(Unknown Source)

at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)

at java.io.ObjectInputStream.readSerialData(Unknown Source)

at java.io.ObjectInputStream.readOrdinaryObject(Unknown  
Source)


at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at org.drools.rule.PackageCompilationData.readExternal 
(PackageCompilationData.java:128)


at java.io.ObjectInputStream.readExternalData(Unknown Source)

at java.io.ObjectInputStream.readOrdinaryObject(Unknown  
Source)


at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at org.drools.rule.Package.readExternal(Package.java:160)

at java.io.ObjectInputStream.readExternalData(Unknown Source)

at java.io.ObjectInputStream.readOrdinaryObject(Unknown  
Source)


at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at com.sample.DroolsTest.readRule(DroolsTest.java:36)

at com.sample.DroolsTest.main(DroolsTest.java:17)


___
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] Use of the same reference in multipe rules

2007-06-05 Thread Rajesh.Sachin10

I asserted 3 class (Class1, Class2, Class3) in the working memory. I make an
reference for the class (Class1) in the first rule. Is it possible to use
the same reference in the 2nd rule? 


Eg: 

[when] class : Class1() eval(class.getVarName1() == {value1}); 
[then] .do something... 

[when] eval(class.getVarName2() == {value2}); 
[then] ...do something 

My requirement is to use the same class (Class1) in all the rules. I don't
want to iterate other two classes (Class2  Class3) in rule 2.
-- 
View this message in context: 
http://www.nabble.com/Use-of-the-same-reference-in-multipe-rules-tf3873426.html#a10974992
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] Extracting an object in the working memory for multiple times

2007-06-05 Thread Rajesh.Sachin10

I asserted 3 object in the working memory and I iterate it to check a value
in that object for a condition in the first rule. I need to iterate all the
objects in the working memory again for another condition in the second
rule. But the objects are not iterating in the second rule. 

There is any condition that an asserted object can be used only once? 

If yes, then can anyone explain how to assert those objects into working
memory for the second time?
-- 
View this message in context: 
http://www.nabble.com/Extracting-an-object-in-the-working-memory-for-multiple-times-tf3873441.html#a10975027
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 Flow vs jBPM

2007-06-05 Thread Mark Proctor

A better question should be why doesn't jbpm leverage rules :)

jBPM does many things we don't do, it's transactional and persistable, 
it has a number of services configured for nodes (tasks etc) and is 
generally better aimed at long lived orchestration and choreography and 
of course it is aimed at various workflow/bpm standards support.


Firstly the GUI side was donated and already partially integrated, it 
was a few days work to get that fully integrated or weeks of work (maybe 
more) to refactor much of jBPM designer to allow us to integrate and 
then ofcourse the further work to better supported our tooled 
environment. Our GUI side offers a far more integrated approach for 
rules, where as jBPM has more pojo focused, still leaving the author to 
implement interfaces and then specify the class as a callback within the 
configuration on that node - so it's far more low level.


Secondly if we where to leverage jBPM to do the state management of the 
executions we would end up with two engines running which would need to 
be bridged, contexts would have to be mapped and the tooling is not 
aimed at ruleflow but more orchestration of services - over all there is 
an impedenance mismatch which would actually make this more complex, the 
implementation slower and generally it would take longer to do. RuleFlow 
is a natural extension of the approached use by agenda groups and its 
hooked tightly into the engine to get the best performance.


Mark
Ming Fang wrote:
The Rule Flow implementation looks similar to jBPM's Graph Oriented 
Programming framework. 
http://docs.jboss.com/jbpm/v3/userguide/graphorientedprogramming.html

Was there any reason why it was not leverage?
___
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