Re: [rules-users] Weblogic rules to Drools rules.

2010-01-27 Thread kashif10

Thanks Edson,

I Went throught the documentation.
I cerate  a small rule & its laod & evaluate ok.
But when I try to load a some bit large rule it stuks & thorws following
exception:

which is more than the configured time (StuckThreadMaxTime) of "600"
seconds. Stack trace:
org.mvel2.asm.ClassReader.(ClassReader.java:146)
org.mvel2.asm.ClassReader.(ClassReader.java:128)
   
d1.rule.Rule_0b48e12625010080cb1e0dd40f6f_0Eval66Invoker.getMethodBytecode(Rule_0b48e12625010080cb1e0dd40f6f_0Eval66Invoker.java:52)
   
d1.rule.Rule_0b48e12625010080cb1e0dd40f6f_0Eval83Invoker.equals(Rule_0b48e12625010080cb1e0dd40f6f_0Eval83Invoker.java:73)
org.drools.rule.EvalCondition.equals(EvalCondition.java:169)
   
org.drools.reteoo.EvalConditionNode.equals(EvalConditionNode.java:231)
   
org.drools.reteoo.CompositeLeftTupleSinkAdapter.getMatchingNode(CompositeLeftTupleSinkAdapter.java:102)
org.drools.reteoo.builder.BuildUtils.attachNode(BuildUtils.java:128)
org.drools.reteoo.builder.EvalBuilder.build(EvalBuilder.java:42)
   
org.drools.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:126)
   
org.drools.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:73)
   
org.drools.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:153)
   
org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:126)
org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:117)
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:362)
   
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:618)
   
org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:500)
   
org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:379)
   
org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:121)





My questions are:
i) How can I increase the time.
ii) Currently I am using some thng as follows in our drl file:

when
#conditions 

eval(cdaUtil.compareObservation("Blood Glucose", "82947",
"2.16.840.1.113883.6.12", "<9331200", "", "", "", "",
"").equals("false")  )

and

eval(cdaUtil.compareDiagnosis("Coronary Artery 
Disease", "414.8",
"2.16.840.1.113883.6.2", "").equals("true")  )

:
:
:
more conditions as above. around 40 -50 with OR / AND .

Actualy we have a class which have methods such as (compareObservation,
compareDiagnosis etc) to evaluate those conditions, We were using this
methodology in Weblogic rule xml too.
We don't have a class with attributes to set & evluate.  So is the above
logic I ma using is ok or could you suggest some other drl way to evaluate
such rules.

Thanks


-- 
View this message in context: 
http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p140878.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] incompatible error

2010-01-27 Thread Sikkandar Nawabjan
Hi,
Am using drools 5 and am getting following error when I do packaging the
drl and dsls
org.drools.base.SalienceInteger incompatible with org.drools.rule.Rule
what could be the reason?
Thanks
sikkandar

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


Re: [rules-users] Does rule execution block when the Knowlege Agent is rebuild KnowlegeBase???

2010-01-27 Thread Pegram, Macon
We've tested this behavior under load and there is a brief (duration of
about 1 - 1.5 seconds) uptick when the rulebase switch happens, but we
noticed consistent and rapid recovery.

I have not confirmed this but I believe what happens is a new
KnowledgeBase is built, and once it's build is complete, it does a swap
which causes the brief uptick.   I don't believe there's any blocking
going on while the KnowledgeBase is built however.

Macon

-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wing
Sent: Tuesday, January 26, 2010 7:10 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Does rule execution block when the Knowlege Agent
is rebuild KnowlegeBase???


Hello Drools User,

I am using Knowlege Agent to monitor changes in the repository.  I have
started the following services:

ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();

I was able to change the rules in the repository and the changes did get
pick up in my application and everything is working fine as expected.

However, I have a question regarding rule execution when the Knowlege
Base
is in the middle of being build by the Knowlege Agent.   What happen
when I
execute the rules using:

ksessionStateless = knowledgeAgent.newStatelessKnowledgeSession();
ksessionStateless.execute(ObjList);

Will the method ksessionStateless.execute(ObjList) block and wait until
the
Knowlege Base is finish being build by the knowledge agent or the method
won't block and just pick up the old Knowlege Base and then switch to
the
new knowlege base when the knowlege agent is finish building it?  Will
the
method ksessionStateless.execute(ObjList) block or not block?

thanks very much in advace for any help on this!

Wing Tang





-- 
View this message in context:
http://n3.nabble.com/Does-rule-execution-block-when-the-Knowlege-Agent-i
s-rebuild-KnowlegeBase-tp139987p139987.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] KnowledgeAgent doesn't load dsl files and dslrfile from a change-set correctly - JIRA:JBRULES-2377 updated

2010-01-27 Thread Pegram, Macon
Hmmm.. good catch.  Thanks for pointing that out.  I've up voted that
ticket as well.  The issues are in fact at least partially the same.
I've provided more detail in my ticket but added the below ticket in the
comments of my ticket to draw attention to the issue.  

 

I'd really love to see this resolved before 5.1 becomes final. 

 

Macon



From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Esteban
Aliverti
Sent: Wednesday, January 27, 2010 6:35 AM
To: Rules Users List
Subject: Re: [rules-users] KnowledgeAgent doesn't load dsl files and
dslrfile from a change-set correctly - JIRA:JBRULES-2377 updated

 

I think it is related with
https://jira.jboss.org/jira/browse/JBRULES-2350

On Wed, Jan 27, 2010 at 1:20 AM, Pegram, Macon 
wrote:


I have updated the JIRA ticket with more detailed information.   If this
issue is important to you, please vote up its importance so that we can
hopefully capture the attention of the development team.

You can find the JIRA ticket at:
https://jira.jboss.org/jira/browse/JBRULES-2377

Thanks!
Macon

-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Pritham
Sent: Tuesday, January 26, 2010 4:29 PM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] KnowledgeAgent doesn't load dsl files and
dslr file from a change-set correctly


Thanks for the heads up. I can even load the same change-set.xml via
kbuilder
and get the rules to fire and work, turns out that KnowledgeAgent has an
issue.

On a larger note, looking at 5.1M1, KnowledgeAgentImpl has changed a lot
(Mark Proctor) and a lot of "todos" and comments were uncommented in the
newer one. Is it recommended to try the class in an older distribution?
--
View this message in context:
http://n3.nabble.com/KnowledgeAgent-doesn-t-load-dsl-files-and-dslr-file
-from-a-change-set-correctly-tp139702p139849.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

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information or otherwise protected by law.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.



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




-- 


Esteban Aliverti

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


Re: [rules-users] Stateless Vs Stateful Sessions in Webtier

2010-01-27 Thread Knapp, Barry
Is there plan to support work items in Stateless sessions as well?  It seems I 
had a POC using stateless and had to convert it to stateful in order to use a 
simple "send email" work item.


Thanks
Barry

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mark Proctor
Sent: Wednesday, January 27, 2010 8:18 AM
To: Rules Users List
Subject: Re: [rules-users] Stateless Vs Stateful Sessions in Webtier

On 27/01/2010 13:09, Simon Thum wrote:
> Wolfgang Laun wrote:
>
>> On Wed, Jan 20, 2010 at 12:41 PM, Simon Thum  wrote:
>>
>>> Personally, I look at it like:
>>>
>>> stateless ->  propositional logic
>>> stateful ->  first-order logic
>>>
>>>
>> This is a false proposition ;-)
>>
>> 'not', 'exists' and 'forall' - Drools' support for first-order logic
>> quantifiers - is
>> fully available (such as all the other features for LHS) in a stateless 
>> session.
>>
> Thanks for the clarification. So stateless _uses_ state but just doesn't
> have it bound to the session?
>
> If that's true, is there a deeper sense behind StatelessSession not
> supporting agenda arbitration?
>
> IOW, should I reasonably be able to cook up a
> "SomewhatStatelessSessionWithAgendaSupport", or would I end up with a
> half-arsed StatefulSession ?
>
you can use agenda and ruleflow from within the stateless session.

Mark
>
>> -W
>>
>>
>>> I'm not sure that's 100% true though. In any case, it depends on the
>>> kind of questions you like to ask. If you're not sure, test it.
>>> Cheers,
>>>
>>> Simon
>>> ___
>>> 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 email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.

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


Re: [rules-users] Stateless Vs Stateful Sessions in Webtier

2010-01-27 Thread Mark Proctor
On 27/01/2010 13:09, Simon Thum wrote:
> Wolfgang Laun wrote:
>
>> On Wed, Jan 20, 2010 at 12:41 PM, Simon Thum  wrote:
>>  
>>> Personally, I look at it like:
>>>
>>> stateless ->  propositional logic
>>> stateful ->  first-order logic
>>>
>>>
>> This is a false proposition ;-)
>>
>> 'not', 'exists' and 'forall' - Drools' support for first-order logic
>> quantifiers - is
>> fully available (such as all the other features for LHS) in a stateless 
>> session.
>>  
> Thanks for the clarification. So stateless _uses_ state but just doesn't
> have it bound to the session?
>
> If that's true, is there a deeper sense behind StatelessSession not
> supporting agenda arbitration?
>
> IOW, should I reasonably be able to cook up a
> "SomewhatStatelessSessionWithAgendaSupport", or would I end up with a
> half-arsed StatefulSession ?
>
you can use agenda and ruleflow from within the stateless session.

Mark
>
>> -W
>>
>>  
>>> I'm not sure that's 100% true though. In any case, it depends on the
>>> kind of questions you like to ask. If you're not sure, test it.
>>> Cheers,
>>>
>>> Simon
>>> ___
>>> 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] Stateless Vs Stateful Sessions in Webtier

2010-01-27 Thread Simon Thum
Wolfgang Laun wrote:
> On Wed, Jan 20, 2010 at 12:41 PM, Simon Thum  wrote:
>> Personally, I look at it like:
>>
>> stateless -> propositional logic
>> stateful -> first-order logic
>>
> 
> This is a false proposition ;-)
> 
> 'not', 'exists' and 'forall' - Drools' support for first-order logic
> quantifiers - is
> fully available (such as all the other features for LHS) in a stateless 
> session.
Thanks for the clarification. So stateless _uses_ state but just doesn't
have it bound to the session?

If that's true, is there a deeper sense behind StatelessSession not
supporting agenda arbitration?

IOW, should I reasonably be able to cook up a
"SomewhatStatelessSessionWithAgendaSupport", or would I end up with a
half-arsed StatefulSession ?

> 
> -W
> 
>> I'm not sure that's 100% true though. In any case, it depends on the
>> kind of questions you like to ask. If you're not sure, test it.
>> Cheers,
>>
>> Simon
>> ___
>> 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] KnowledgeAgent doesn't load dsl files and dslr file from a change-set correctly - JIRA:JBRULES-2377 updated

2010-01-27 Thread Esteban Aliverti
I think it is related with https://jira.jboss.org/jira/browse/JBRULES-2350

On Wed, Jan 27, 2010 at 1:20 AM, Pegram, Macon wrote:

>
> I have updated the JIRA ticket with more detailed information.   If this
> issue is important to you, please vote up its importance so that we can
> hopefully capture the attention of the development team.
>
> You can find the JIRA ticket at:
> https://jira.jboss.org/jira/browse/JBRULES-2377
>
> Thanks!
> Macon
>
> -Original Message-
> From: rules-users-boun...@lists.jboss.org
> [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Pritham
> Sent: Tuesday, January 26, 2010 4:29 PM
> To: rules-users@lists.jboss.org
> Subject: Re: [rules-users] KnowledgeAgent doesn't load dsl files and
> dslr file from a change-set correctly
>
>
> Thanks for the heads up. I can even load the same change-set.xml via
> kbuilder
> and get the rules to fire and work, turns out that KnowledgeAgent has an
> issue.
>
> On a larger note, looking at 5.1M1, KnowledgeAgentImpl has changed a lot
> (Mark Proctor) and a lot of "todos" and comments were uncommented in the
> newer one. Is it recommended to try the class in an older distribution?
> --
> View this message in context:
> http://n3.nabble.com/KnowledgeAgent-doesn-t-load-dsl-files-and-dslr-file
> -from-a-change-set-correctly-tp139702p139849.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
>
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
> for the sole use of the intended recipient(s) and may contain confidential
> and privileged information or otherwise protected by law.  Any unauthorized
> review, use, disclosure or distribution is prohibited.  If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies of the original message.
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 


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


Re: [rules-users] Drools Roadmap - Planned Release 5.1 release date

2010-01-27 Thread Mark Proctor
On 26/01/2010 22:59, Pritham wrote:
> It's been 6 months since this post and only Milestone 1 has been released.
> Any idea when 5.1 final is being panned for? The "noteworthy"features,
> fixes, spring integration and others look interesting.
>
We've been waiting for an MVEL release for a few weeks now before we can 
M2. final should follow quickly after that.

Mark

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