[rules-users] Drools 5.6.0.Final PKG vs DRL infinite loop

gboro54 gboro54 at gmail.com
Wed Feb 26 10:28:36 EST 2014


For number 2 it is a fair to claim that the beans the rules do not live in
the same package. Thanks again for the assistance 


Davide Sottara wrote
> Ok, so I have to test it.
> There could be two possible failure points:
> 
> 1) The compiler should see the annotations and create the internal
> data structures, tracking the fact that the classes are @PR
> 2) The data structures are declared in the package of the beans,
> which is not (necessarily) the package where the rules are defined.
> We have to ensure that ALL packages are downloaded from guvnor.
> 
> To check #2, it should be enough to ensure that the rules and the
> classes live in the same package
> 
> I'll get back to you later
> Davide
> 
> 
> On 02/26/2014 03:59 PM, gboro54 wrote:
>> No luck adding ProperReactive to the classes(in the sample project). 
>>
>>
>> Davide Sottara wrote
>>> I think I see the problem - though I haven't been able to test it with
>>> guvnor.
>>>
>>> Property Reactivity is resolved at compile time, when the package is
>>> built.
>>>
>>> When you load the DRL, you set PropertyReactive.ALWAYS in the (local)
>>> KnowledgeBuilder, so it will consider all classes as PR.
>>>
>>> However, afaik there is no way to do the same in Guvnor, so its (remote)
>>> builder will create the Packages as if the classes were NOT
>>> PropertyReactive.
>>>
>>> Could you try to annotate the model classes with @PropertyReactive
>>> before
>>> you load the jar in guvnor?
>>>
>>> Davide
>>>
>>>
>>> On 02/25/2014 11:53 PM, gboro54 wrote:
>>>> test-drools.zip
>>>> <http://drools.46999.n3.nabble.com/file/n4028329/test-drools.zip>  
>>>>
>>>> Here is a sample project which shows the issue. You can build the
>>>> project
>>>> as
>>>> the fact model and upload the drl into guvnor
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://drools.46999.n3.nabble.com/Drools-5-6-0-Final-PKG-vs-DRL-infinite-loop-tp4028318p4028329.html
>>>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> rules-users mailing list
>>>>
>>> rules-users at .jboss
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at .jboss
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Drools-5-6-0-Final-PKG-vs-DRL-infinite-loop-tp4028318p4028335.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> 

> rules-users at .jboss

>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
> 
> _______________________________________________
> rules-users mailing list

> rules-users at .jboss

> https://lists.jboss.org/mailman/listinfo/rules-users





--
View this message in context: http://drools.46999.n3.nabble.com/Drools-5-6-0-Final-PKG-vs-DRL-infinite-loop-tp4028318p4028339.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list