Re: [rules-users] Guvnor Declarative Model

2012-09-11 Thread Jean-Paul Shemali

Exactly what I was thinking about, but I wanted to check first if I could reuse 
drools' bytecode generation instead of adding another thirdparty to the mix 
(one of my previous questions actually). I do want to avoid messing with custom 
classloaders as much as I can :-)
From what I've seen, it doesn't seem to be easily reusable though

Date: Mon, 10 Sep 2012 17:33:43 +0200
From: vincent.legen...@eurodecision.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor Declarative Model

Ok, not simple indeed ...
And why can't you generate a POJO instead of declarative fact ?

De: Jean-Paul Shemali jshem...@hotmail.com
À: rules-users@lists.jboss.org
Envoyé: Lundi 10 Septembre 2012 10:06:43
Objet: Re: [rules-users] Guvnor Declarative Model





Simply by not writing them in drools, but in another (proprietary) language, 
which in turn gets translated to drools at runtime. 
Of course there's nothing really simple about the translation and how the 
actual facts get generated

Date: Sat, 8 Sep 2012 23:53:47 +0200
From: vincent.legen...@eurodecision.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor Declarative Model

How can you declare your facts (or rules) if you don't know beforehand the 
structure of the POJO to use ?

___
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


Re: [rules-users] Guvnor Declarative Model

2012-09-11 Thread Vincent LEGENDRE
It may be faster to get the drools source code and change the generation by 
yourself.
And post the new code to Edson ...

- Mail original -

De: Jean-Paul Shemali jshem...@hotmail.com
À: rules-users@lists.jboss.org
Envoyé: Mardi 11 Septembre 2012 08:29:08
Objet: Re: [rules-users] Guvnor Declarative Model


Exactly what I was thinking about, but I wanted to check first if I could reuse 
drools' bytecode generation instead of adding another thirdparty to the mix 
(one of my previous questions actually). I do want to avoid messing with custom 
classloaders as much as I can :-)
From what I've seen, it doesn't seem to be easily reusable though




Date: Mon, 10 Sep 2012 17:33:43 +0200
From: vincent.legen...@eurodecision.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor Declarative Model


Ok, not simple indeed ...
And why can't you generate a POJO instead of declarative fact ?



De: Jean-Paul Shemali jshem...@hotmail.com
À: rules-users@lists.jboss.org
Envoyé: Lundi 10 Septembre 2012 10:06:43
Objet: Re: [rules-users] Guvnor Declarative Model


Simply by not writing them in drools, but in another (proprietary) language, 
which in turn gets translated to drools at runtime.
Of course there's nothing really simple about the translation and how the 
actual facts get generated




Date: Sat, 8 Sep 2012 23:53:47 +0200
From: vincent.legen...@eurodecision.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor Declarative Model


How can you declare your facts (or rules) if you don't know beforehand the 
structure of the POJO to use ?

___ 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


Re: [rules-users] Guvnor Declarative Model

2012-09-10 Thread Jean-Paul Shemali

Simply by not writing them in drools, but in another (proprietary) language, 
which in turn gets translated to drools at runtime. 
Of course there's nothing really simple about the translation and how the 
actual facts get generated

Date: Sat, 8 Sep 2012 23:53:47 +0200
From: vincent.legen...@eurodecision.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor Declarative Model

How can you declare your facts (or rules) if you don't know beforehand the 
structure of the POJO to use ?

___
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 Declarative Model

2012-09-10 Thread Vincent LEGENDRE
Ok, not simple indeed ...
And why can't you generate a POJO instead of declarative fact ?

- Mail original -

De: Jean-Paul Shemali jshem...@hotmail.com
À: rules-users@lists.jboss.org
Envoyé: Lundi 10 Septembre 2012 10:06:43
Objet: Re: [rules-users] Guvnor Declarative Model


Simply by not writing them in drools, but in another (proprietary) language, 
which in turn gets translated to drools at runtime.
Of course there's nothing really simple about the translation and how the 
actual facts get generated




Date: Sat, 8 Sep 2012 23:53:47 +0200
From: vincent.legen...@eurodecision.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor Declarative Model


How can you declare your facts (or rules) if you don't know beforehand the 
structure of the POJO to use ?

___ 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] Guvnor Declarative Model

2012-09-08 Thread Vincent LEGENDRE
How can you declare your facts (or rules) if you don't know beforehand the 
structure of the POJO to use ? 
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor Declarative Model

2012-09-07 Thread JP Chemali
Hi guys,

I just stumbled into the same issue in 5.4.0.Final, I think this is caused
by https://issues.jboss.org/browse/JBRULES-2652
When declaring a type, a constructor with all fields as parameters is
generated automatically, but this causes in our case to hit a barrier of the
Java language because the generated constructor has more than 255 parameters

Anyone knows if this generation can be skipped (annotation or something
else), maybe a safeguard not to generate the constructor when the limit is
reached would be nice too?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-Declarative-Model-tp4019419p4019637.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] Guvnor Declarative Model

2012-09-07 Thread Edson Tirelli
   Ouch, more than 255 fields? As of 5.4.x there is no workaround, the
engine always tries to generate the constructor.

   Can you please open a JIRA and we will fix this for the next release?

   Thank you,
   Edson

On Fri, Sep 7, 2012 at 9:05 AM, JP Chemali jshem...@hotmail.com wrote:

 Hi guys,

 I just stumbled into the same issue in 5.4.0.Final, I think this is caused
 by https://issues.jboss.org/browse/JBRULES-2652
 When declaring a type, a constructor with all fields as parameters is
 generated automatically, but this causes in our case to hit a barrier of
 the
 Java language because the generated constructor has more than 255
 parameters

 Anyone knows if this generation can be skipped (annotation or something
 else), maybe a safeguard not to generate the constructor when the limit is
 reached would be nice too?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Guvnor-Declarative-Model-tp4019419p4019637.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




-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor Declarative Model

2012-09-07 Thread Vincent LEGENDRE
a workaround could be to use a java pojo, not a declared fact 

- Original Message -

From: Edson Tirelli ed.tire...@gmail.com 
To: Rules Users List rules-users@lists.jboss.org 
Sent: Friday, September 7, 2012 3:43:04 PM 
Subject: Re: [rules-users] Guvnor Declarative Model 



Ouch, more than 255 fields? As of 5.4.x there is no workaround, the engine 
always tries to generate the constructor. 


Can you please open a JIRA and we will fix this for the next release? 


Thank you, 
Edson 


On Fri, Sep 7, 2012 at 9:05 AM, JP Chemali  jshem...@hotmail.com  wrote: 


Hi guys, 

I just stumbled into the same issue in 5.4.0.Final, I think this is caused 
by https://issues.jboss.org/browse/JBRULES-2652 
When declaring a type, a constructor with all fields as parameters is 
generated automatically, but this causes in our case to hit a barrier of the 
Java language because the generated constructor has more than 255 parameters 

Anyone knows if this generation can be skipped (annotation or something 
else), maybe a safeguard not to generate the constructor when the limit is 
reached would be nice too? 



-- 
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-Declarative-Model-tp4019419p4019637.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 






-- 
Edson Tirelli 
JBoss Drools Core Development 
JBoss by Red Hat @ www.jboss.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] Guvnor Declarative Model

2012-09-07 Thread Jean-Paul Shemali

Thanks for quick answers guys!

I just realized the original thread never made it trough to the list (the user 
didn't register probably) the original poster had the same issue on Guvnor, 
hence the title.
Edson I've opened https://issues.jboss.org/browse/JBRULES-3621 for this

Unfortunately, I don't have any workaround for this, as I don't know beforehand 
the structure of the POJO to use (in my use case, there is an additional layer 
on top of drools, and I don't know the facts).

Although I'm not 100% blocked by this, is it possible to reuse the drools code 
generator manually? That way I could workaround it by generating the class 
myself and skip the constructor generation?






Date: Fri, 7 Sep 2012 15:45:02 +0200
From: vincent.legen...@eurodecision.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor Declarative Model

a workaround could be to use a java pojo, not a declared fact

From: Edson Tirelli ed.tire...@gmail.com
To: Rules Users List rules-users@lists.jboss.org
Sent: Friday, September 7, 2012 3:43:04 PM
Subject: Re: [rules-users] Guvnor Declarative Model


   Ouch, more than 255 fields? As of 5.4.x there is no workaround, the engine 
always tries to generate the constructor. 
   Can you please open a JIRA and we will fix this for the next release?

   Thank you,   Edson

On Fri, Sep 7, 2012 at 9:05 AM, JP Chemali jshem...@hotmail.com wrote:

Hi guys,



I just stumbled into the same issue in 5.4.0.Final, I think this is caused

by https://issues.jboss.org/browse/JBRULES-2652

When declaring a type, a constructor with all fields as parameters is

generated automatically, but this causes in our case to hit a barrier of the

Java language because the generated constructor has more than 255 parameters



Anyone knows if this generation can be skipped (annotation or something

else), maybe a safeguard not to generate the constructor when the limit is

reached would be nice too?







--

View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-Declarative-Model-tp4019419p4019637.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



-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.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


[rules-users] Guvnor declarative model and ASM deserialization

2010-09-14 Thread Abdel Dridi
In my application I am using the following flow:

   1. I am using Guvnor to allow customer to define business event structure
   through the Declarative Model feature.
   2. After defining the model, customers write rules and package them into
   a snapshot where my event-driven-application-server can see.
   3. My server load successfully the customer packages (couple hundreds of
   them).
   4. Customer uses HornetQ client to produce events that respects the model
   that has been created using Guvnor.
   5. I have HornetQ listeners in my application that listens to new events.
   6. HornetQ listeners tries to deserialize the message bytes to an event
   object to insert it to the customer ksession

The problem is that my server classloader has no idea about the model, so I
use ASM to inject the class definition when ClassNotFoundException is thrown
however this was not enough as serialVersionUID of client side object is
going to be different from the ASM default injected one.

I know some of you might say why cant I use the same static final
serialVersionUID in the client side as well as in the server side - the
answer is I want to give control to customers to define whatever business
model they want using Guvnor.
Using jar file model will not give freedom to business users that Guvnor
provide.

I am wondering if some of you were facing the same issue while using the
fusion message queue streaming gate?

I am thinking to extend the Java ObjectInputStream and implement my own
deserialization.
Could Drools ksession accept bytes along side with objects (I mean in the
future)  - Something like; ksession.insert(bytes)

Any ideas?

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