Re: [rules-users] ClassCastException and other problems

2008-06-09 Thread Nagaraju runkana
Hi Edson,

i have some problem...
*core_preference_text* this my table name.Row like "VARIABLE_CODE"
VARCHAR2(60 BYTE)"

i need write dsl,dslr files related data validation to the table.
1. variable_code should be unieque per enterprise_id
2. variable_code can not be updated


give me some suggestion ..how to write dsl,dslr file related two
conditions.ASAP..

=
Chanti


On Fri, Jun 6, 2008 at 8:19 PM, Edson Tirelli <[EMAIL PROTECTED]> wrote:

>
>
>   Drools 5 implements a completely new propagation algorithm that
> allowed us to get rid of shadow proxies from the core engine. So, you will
> not have the problem.
>
>   But for 4.0.x, if you are a community user, best you can do is open a
> JIRA with a test case to reproduce your problem. If we release a 4.0.8
> version, we can fix your issue there, but at this moment we don't know if
> there will be a 4.0.8 release or if the next release will be 5.0.
>   If you are a Drools subscriber at Red Hat, then you can simply open a
> support case there and they will fix and provide a patch for you.
>
>
>   []s
>   Edson
>
>
>
> 2008/6/6 Sibylle Duerr <[EMAIL PROTECTED]>:
>
>> Thanks Edson,
>>
>> but the collections do return an empty collection. hm, I just tested this
>> ones again and it worked fine. no exception when the set was empty. I will
>> keep an eye on this and test some more but seems to work now for me.
>>
>> and for the other problem I then hope for 5.0 :).
>>
>> and what about the last problem I described before?
>>
>> best regards
>> Sibylle
>>
>>
>>
>> Edson Tirelli wrote:
>>
>>>
>>>
>>>   Sibylle,
>>>
>>>   Unfortunately, this is the way it was implemented to be, under a
>>> kind-of "fail-fast" philosophy we were following. I do think there is value
>>> in changing things in 5.0 so that, for instance:
>>>
>>> ProcessModel($activities : activities) from $models
>>>
>>>   Simply does not match, instead of raises a CCE, in case the model is a
>>> TypeModel.
>>>   But for 4.0.x, that is how things work.
>>>
>>>The only suggestion I can give you is, in your second problem, to not
>>> return null on your collections. Simply return empty collections:
>>>
>>> class Project {
>>>   ...
>>>   public List getModels() {
>>>if( this.models == null ) {
>>>return Collections.emptyList();
>>>}
>>>return this.models;
>>>   }
>>>   ...
>>> }
>>> This is usually a good thing, unless you have a specific semantics
>>> for null collections in your domain model.
>>>
>>>[]s
>>>Edson
>>>
>>> 2008/6/6 Sibylle Duerr <[EMAIL PROTECTED]>:
>>>
>>>Hi there,
>>>
>>>I have three issues, where I'm not sure if these are bugs in
>>>drools, or if this is just the way it has to be.
>>>
>>>the used classes in this case are:
>>>
>>>Project
>>>Model
>>>ProcessModel extends Model
>>>
>>>only the Project is in the working memory, because I didn't want
>>>to load all elements due to performance issues (there can be
>>>thousends of elements to load at startup).
>>>
>>>if I have the following rule:
>>>
>>>Project($models : models)
>>>ProcessModel($activities : activities) from $models
>>>
>>>there happen to be two problems. if the project does not only
>>>contain ProcessModels but also TypeModels or others (all extend
>>>Model), this leads to a ClassCastException.
>>>I can solve this by writing the rule as follows:
>>>
>>>Project($models : models)
>>>$m : Model(eval($m instanceof ProcessModel)) from $models
>>>ProcessModel($activities : activities) from $m
>>>
>>>but this is not really nice and I hope there is a better solution
>>>for this, is there?
>>>
>>>the second problem this rule gives me, is when the set 'models' is
>>>empty. that will also throw an exception. to solve this I write:
>>>
>>>$p : Project(eval($p.hasModels()), $models : models)
>>>$m : Model(eval($m instanceof ProcessModel)) from $models
>>>ProcessModel($activities : activities) from $m
>>>
>>>and I need to use this in each case where I have possible empty sets.
>>>
>>>
>>>the last problem I encountered when I tried to load all elements
>>>to the working memory and then redefine some rules. used classes:
>>>
>>>Aggregation extends DomainElement
>>>
>>>rule:
>>>
>>>Aggregation(owner.owner != type.owner)
>>>
>>>causes some exception. the root exception is a ClassCastException:
>>>ProxyShadowProxy cannot be cast to Aggregation.
>>>when I rewrite the rule as:
>>>
>>>$element : DomainElement(eval($element instanceof Aggregation))
>>>Aggregation(owner.owner != type.owner) from $element
>>>
>>>everything works fine. but that again is not a nice solution.
>>>
>>>any help?
>>>
>>>best regards
>>>sibylle
>>>___
>>>rules-users mailing list
>>>rules-users@lists.jboss.org 
>>>https://lists.jboss.org/mai

RE: [rules-users] BRMS on Weblogic

2008-06-09 Thread Vikas Phonsa
Thanks Atif,

 

I did find some documentation on configuring new realms. In case you are
interested: http://edocs.bea.com/wls/docs81/secmanage/realm.html#1186823

 

After you enabled security, did you have to do some special
configuration for the Rule Agent to have it access the package URLs
(under BRMS). 

 

With security enabled, won't the Rule Agent (or something on the client
side) need username and password to download pkg binaries from the URLs
pointing to deployed package snapshots?

 

Also did you enable SSL on Web Logic? If yes, I guess a key store would
have to be used on the client side.

 

Thanks once again.

 

Vikas

 

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Majeed, Atif
Sent: Monday, June 09, 2008 2:21 PM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

I did not have to create a new security realm. I added users/group in
default 'myrealm'. I have not tried using external LDAP. Weblogic
documentataion/user list might be helpful in this regard.

 

Atif

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikas Phonsa
Sent: Monday, June 09, 2008 5:47 PM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

Atif,

 

Thanks a lot. That was very helpful. I have a couple of questions
though.

 

Did you have to create or configure a security realm? Weblogic has a
security realm called "myrealm" configured by default. Do you know if
the UsernamePasswordLoginModule uses "myrealm" by default?

 

I need to use an external LDAP (and not the one build in with Weblogic
server ). I guess I would have to configure a new realm and providers.
Do you know what needs to be done to have the
UsernamePasswordLoginModule use the new realm (and hence the external
LDAP).

 

Thanks again for your help.

 

Vikas

 

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Majeed, Atif
Sent: Monday, June 09, 2008 11:45 AM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

>BTW, have you ever configured and used a Weblogic JAAS module with
BRMS.

 

I posted the instructions in this blog.

http://atif-majeed.blogspot.com/2008/04/setting-up-brms-security-on-webl
ogic.html

 

 

Atif

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikas Phonsa
Sent: Monday, June 09, 2008 2:34 PM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

Paul,

 

I was able to run BRMS on Weblogic. Looks like the Weblogic Workspace
IDE was creating some jar conflicts. When I created a domain, I selected
the option to configure it for Workspace also. 

 

After trying many different things (and getting thoroughly frustrated
:-) ), I created a new domain and configured it just for the Weblogic
server. Put the right JSF jars in domain lib and deployed BRMS war from
the console and it started up fine.

 

I have some exceptions related to DB2 Persistence Manager, but the
application is running.

 

Thanks for your help.

 

BTW, have you ever configured and used a Weblogic JAAS module with BRMS.

 

Thanks,

Vikas

 

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 9:00 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

I've always used Sun's JVM; mainly out of habit and one less thing to
investigate if things go wrong. It's worth trying Sun's in this case if
you're using the JRocket JVM.

Can you look at the Seam source code to see what is causing the
NullPointerException at 
GWTToSeamAdapter.java line 67? I don't have the source to hand at the
moment. My guess is that there is an issue on the server somewhere (i.e.
some missing or conflicted libs) but have no more detailled wisdom :-(.

Paul

On Thu, Jun 5, 2008 at 3:58 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Paul,

 

Thanks a lot for writing back.

 

>>>Just so that I can update the page, when you say 'that didn't help'
can you tell me what problems you are seeing / what you feel is missing?

 

Sorry if that didn't come across right. That page did help a lot. I
followed the instructions on that page. That fixed the JSF related
exceptions that I was initially getting. But then I got that other
NullPointerException whose stack trace that I listed in my last email.
That's the only exception that I see in the log. And The BRMS shows me
an error message and then doesn't display the login page.

 

And I did bring in the JSF dependencies. I still get the same exception.

 

Your Wiki page is very good. I just am getting an exception that I am
unable to find a solution for. 

 

Do you know if it matters whether I use the JRocket JVM or Sun's JVM in
the Weblogic server ?

 

Also, did you get a chance to look at this
http://www.seamframework.org/Community/GWTRPCCallFails

 

I would appreciate any other input that you give.

 

Regards,

Vikas

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROT

RE: [rules-users] BRMS on Weblogic

2008-06-09 Thread Majeed, Atif
I did not have to create a new security realm. I added users/group in
default 'myrealm'. I have not tried using external LDAP. Weblogic
documentataion/user list might be helpful in this regard.

 

Atif



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikas Phonsa
Sent: Monday, June 09, 2008 5:47 PM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

Atif,

 

Thanks a lot. That was very helpful. I have a couple of questions
though.

 

Did you have to create or configure a security realm? Weblogic has a
security realm called "myrealm" configured by default. Do you know if
the UsernamePasswordLoginModule uses "myrealm" by default?

 

I need to use an external LDAP (and not the one build in with Weblogic
server ). I guess I would have to configure a new realm and providers.
Do you know what needs to be done to have the
UsernamePasswordLoginModule use the new realm (and hence the external
LDAP).

 

Thanks again for your help.

 

Vikas

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Majeed, Atif
Sent: Monday, June 09, 2008 11:45 AM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

>BTW, have you ever configured and used a Weblogic JAAS module with
BRMS.

 

I posted the instructions in this blog.

http://atif-majeed.blogspot.com/2008/04/setting-up-brms-security-on-webl
ogic.html

 

 

Atif



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikas Phonsa
Sent: Monday, June 09, 2008 2:34 PM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

Paul,

 

I was able to run BRMS on Weblogic. Looks like the Weblogic Workspace
IDE was creating some jar conflicts. When I created a domain, I selected
the option to configure it for Workspace also. 

 

After trying many different things (and getting thoroughly frustrated
:-) ), I created a new domain and configured it just for the Weblogic
server. Put the right JSF jars in domain lib and deployed BRMS war from
the console and it started up fine.

 

I have some exceptions related to DB2 Persistence Manager, but the
application is running.

 

Thanks for your help.

 

BTW, have you ever configured and used a Weblogic JAAS module with BRMS.

 

Thanks,

Vikas

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 9:00 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

I've always used Sun's JVM; mainly out of habit and one less thing to
investigate if things go wrong. It's worth trying Sun's in this case if
you're using the JRocket JVM.

Can you look at the Seam source code to see what is causing the
NullPointerException at 
GWTToSeamAdapter.java line 67? I don't have the source to hand at the
moment. My guess is that there is an issue on the server somewhere (i.e.
some missing or conflicted libs) but have no more detailled wisdom :-(.

Paul

On Thu, Jun 5, 2008 at 3:58 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Paul,

 

Thanks a lot for writing back.

 

>>>Just so that I can update the page, when you say 'that didn't help'
can you tell me what problems you are seeing / what you feel is missing?

 

Sorry if that didn't come across right. That page did help a lot. I
followed the instructions on that page. That fixed the JSF related
exceptions that I was initially getting. But then I got that other
NullPointerException whose stack trace that I listed in my last email.
That's the only exception that I see in the log. And The BRMS shows me
an error message and then doesn't display the login page.

 

And I did bring in the JSF dependencies. I still get the same exception.

 

Your Wiki page is very good. I just am getting an exception that I am
unable to find a solution for. 

 

Do you know if it matters whether I use the JRocket JVM or Sun's JVM in
the Weblogic server ?

 

Also, did you get a chance to look at this
http://www.seamframework.org/Community/GWTRPCCallFails

 

I would appreciate any other input that you give.

 

Regards,

Vikas

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 7:26 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

Thanks for your note - I'm the person that wrote the
JBoss_Drools_BRMS_on_Weblogic
  page that you mention. 
Just so that I can update the page, when you say 'that didn't help' can
you tell me what problems you are seeing / what you feel is missing?

I'm guessing that you've already seen the page
http://wiki.jboss.org/wiki/JBRMSjsfdependencies - did it help you at
all?

Regards

Paul

On Wed, Jun 4, 2008 at 6:55 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Hi All,

I'm trying to run BRMS 4.0.7 on Weblogi

RE: [rules-users] BRMS on Weblogic

2008-06-09 Thread Vikas Phonsa
Atif,

 

Thanks a lot. That was very helpful. I have a couple of questions
though.

 

Did you have to create or configure a security realm? Weblogic has a
security realm called "myrealm" configured by default. Do you know if
the UsernamePasswordLoginModule uses "myrealm" by default?

 

I need to use an external LDAP (and not the one build in with Weblogic
server ). I guess I would have to configure a new realm and providers.
Do you know what needs to be done to have the
UsernamePasswordLoginModule use the new realm (and hence the external
LDAP).

 

Thanks again for your help.

 

Vikas

 

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Majeed, Atif
Sent: Monday, June 09, 2008 11:45 AM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

>BTW, have you ever configured and used a Weblogic JAAS module with
BRMS.

 

I posted the instructions in this blog.

http://atif-majeed.blogspot.com/2008/04/setting-up-brms-security-on-webl
ogic.html

 

 

Atif

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikas Phonsa
Sent: Monday, June 09, 2008 2:34 PM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

Paul,

 

I was able to run BRMS on Weblogic. Looks like the Weblogic Workspace
IDE was creating some jar conflicts. When I created a domain, I selected
the option to configure it for Workspace also. 

 

After trying many different things (and getting thoroughly frustrated
:-) ), I created a new domain and configured it just for the Weblogic
server. Put the right JSF jars in domain lib and deployed BRMS war from
the console and it started up fine.

 

I have some exceptions related to DB2 Persistence Manager, but the
application is running.

 

Thanks for your help.

 

BTW, have you ever configured and used a Weblogic JAAS module with BRMS.

 

Thanks,

Vikas

 

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 9:00 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

I've always used Sun's JVM; mainly out of habit and one less thing to
investigate if things go wrong. It's worth trying Sun's in this case if
you're using the JRocket JVM.

Can you look at the Seam source code to see what is causing the
NullPointerException at 
GWTToSeamAdapter.java line 67? I don't have the source to hand at the
moment. My guess is that there is an issue on the server somewhere (i.e.
some missing or conflicted libs) but have no more detailled wisdom :-(.

Paul

On Thu, Jun 5, 2008 at 3:58 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Paul,

 

Thanks a lot for writing back.

 

>>>Just so that I can update the page, when you say 'that didn't help'
can you tell me what problems you are seeing / what you feel is missing?

 

Sorry if that didn't come across right. That page did help a lot. I
followed the instructions on that page. That fixed the JSF related
exceptions that I was initially getting. But then I got that other
NullPointerException whose stack trace that I listed in my last email.
That's the only exception that I see in the log. And The BRMS shows me
an error message and then doesn't display the login page.

 

And I did bring in the JSF dependencies. I still get the same exception.

 

Your Wiki page is very good. I just am getting an exception that I am
unable to find a solution for. 

 

Do you know if it matters whether I use the JRocket JVM or Sun's JVM in
the Weblogic server ?

 

Also, did you get a chance to look at this
http://www.seamframework.org/Community/GWTRPCCallFails

 

I would appreciate any other input that you give.

 

Regards,

Vikas

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 7:26 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

Thanks for your note - I'm the person that wrote the
JBoss_Drools_BRMS_on_Weblogic
  page that you mention. 
Just so that I can update the page, when you say 'that didn't help' can
you tell me what problems you are seeing / what you feel is missing?

I'm guessing that you've already seen the page
http://wiki.jboss.org/wiki/JBRMSjsfdependencies - did it help you at
all?

Regards

Paul

On Wed, Jun 4, 2008 at 6:55 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Hi All,

I'm trying to run BRMS 4.0.7 on Weblogic 9.2.0.0. It won't run and I'm
getting the exception listed below.

I looked at the Drools Wiki entry :
http://www.firstpartners.net/kb/index.php/JBoss_Drools_BRMS_on_Weblogic

That didn't help.

I also found something about this exception at Seam's website:
http://www.seamframework.org/Community/GWTRPCCallFails

As per the instructions mentioned in the above website, I brought the
jboss-seam-remoting.jar into my lib directory, but that didn't help.

Does anybody have any idea? Has anybody been able to su

Re: [rules-users] Loops in Rules

2008-06-09 Thread Edson Tirelli
   look at the "from" CE  in the documentation.

2008/6/9 Cabou, Carl <[EMAIL PROTECTED]>:

>  Hi All,
>
>
>
> Assuming I have table or Collection in my Drool model ;
>
> How do I write a DSL based business rules that would use the table using a
> loop to test each item of the Collection ?
>
> I only have 3 items in my table, but if I had 500 ??
>
>
>
> Does anybody has an idea or feedback ?
>
>
>
> Carl.
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Loops in Rules

2008-06-09 Thread Cabou, Carl
Hi All, 

 

Assuming I have table or Collection in my Drool model ;

How do I write a DSL based business rules that would use the table using
a loop to test each item of the Collection ?

I only have 3 items in my table, but if I had 500 ??

 

Does anybody has an idea or feedback ?

 

Carl.

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


[rules-users] BRMS - Application Out of Date Error on Weblogic

2008-06-09 Thread Vikas Phonsa
Hi All,

 

I'm running BRMS on WebLogic and I'm trying to change the components.xml
file.

 

I have deployed the drools-jbrms.war. And I am making the change where
the WAR has been expanded

by the Server. But after I make the change and restart the application,
the BRMS index page gives me an error which says "Application is out of
date, please click the refresh button on the browser". 

 

Clicking the refresh button does nothing.

 

I've tried restarting the server also.

 

And I have tried deploying the unzipped application itself also. 

 

Does anybody have an idea?

 

Thanks in advance.

 

Vikas

 

 



This email and/or any files or attachments transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they are 
addressed, and may contain information that is privileged, confidential and 
exempt from disclosure under applicable law. If you are not the intended 
recipient, or the employee or agent responsible for delivering the message to 
the intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this e-mail and/or any files or attachments 
transmitted with it is strictly forbidden. If you have received this email in 
error, please delete the e-mail and/or any files or attachments, and also 
notify the system manager ([EMAIL PROTECTED]) of the error. Please note that 
any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, the recipient 
should check this email and any attachments for the presence of viruses. The 
company accepts no liability for any damage caused by any virus transmitted by 
this email and/or any files or attachments transmitted with it.

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


RE: [rules-users] BRMS on Weblogic

2008-06-09 Thread Majeed, Atif
>BTW, have you ever configured and used a Weblogic JAAS module with
BRMS.

 

I posted the instructions in this blog.

http://atif-majeed.blogspot.com/2008/04/setting-up-brms-security-on-webl
ogic.html

 

 

Atif



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikas Phonsa
Sent: Monday, June 09, 2008 2:34 PM
To: Rules Users List
Subject: RE: [rules-users] BRMS on Weblogic

 

Paul,

 

I was able to run BRMS on Weblogic. Looks like the Weblogic Workspace
IDE was creating some jar conflicts. When I created a domain, I selected
the option to configure it for Workspace also. 

 

After trying many different things (and getting thoroughly frustrated
:-) ), I created a new domain and configured it just for the Weblogic
server. Put the right JSF jars in domain lib and deployed BRMS war from
the console and it started up fine.

 

I have some exceptions related to DB2 Persistence Manager, but the
application is running.

 

Thanks for your help.

 

BTW, have you ever configured and used a Weblogic JAAS module with BRMS.

 

Thanks,

Vikas

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 9:00 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

I've always used Sun's JVM; mainly out of habit and one less thing to
investigate if things go wrong. It's worth trying Sun's in this case if
you're using the JRocket JVM.

Can you look at the Seam source code to see what is causing the
NullPointerException at 
GWTToSeamAdapter.java line 67? I don't have the source to hand at the
moment. My guess is that there is an issue on the server somewhere (i.e.
some missing or conflicted libs) but have no more detailled wisdom :-(.

Paul

On Thu, Jun 5, 2008 at 3:58 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Paul,

 

Thanks a lot for writing back.

 

>>>Just so that I can update the page, when you say 'that didn't help'
can you tell me what problems you are seeing / what you feel is missing?

 

Sorry if that didn't come across right. That page did help a lot. I
followed the instructions on that page. That fixed the JSF related
exceptions that I was initially getting. But then I got that other
NullPointerException whose stack trace that I listed in my last email.
That's the only exception that I see in the log. And The BRMS shows me
an error message and then doesn't display the login page.

 

And I did bring in the JSF dependencies. I still get the same exception.

 

Your Wiki page is very good. I just am getting an exception that I am
unable to find a solution for. 

 

Do you know if it matters whether I use the JRocket JVM or Sun's JVM in
the Weblogic server ?

 

Also, did you get a chance to look at this
http://www.seamframework.org/Community/GWTRPCCallFails

 

I would appreciate any other input that you give.

 

Regards,

Vikas

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 7:26 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

Thanks for your note - I'm the person that wrote the
JBoss_Drools_BRMS_on_Weblogic
  page that you mention. 
Just so that I can update the page, when you say 'that didn't help' can
you tell me what problems you are seeing / what you feel is missing?

I'm guessing that you've already seen the page
http://wiki.jboss.org/wiki/JBRMSjsfdependencies - did it help you at
all?

Regards

Paul

On Wed, Jun 4, 2008 at 6:55 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Hi All,

I'm trying to run BRMS 4.0.7 on Weblogic 9.2.0.0. It won't run and I'm
getting the exception listed below.

I looked at the Drools Wiki entry :
http://www.firstpartners.net/kb/index.php/JBoss_Drools_BRMS_on_Weblogic

That didn't help.

I also found something about this exception at Seam's website:
http://www.seamframework.org/Community/GWTRPCCallFails

As per the instructions mentioned in the above website, I brought the
jboss-seam-remoting.jar into my lib directory, but that didn't help.

Does anybody have any idea? Has anybody been able to successfully run
BRMS on Weblogic ?

Thanks,
Vikas




Exception Stack Trace-

  
  <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <> <> <>
<1212600416656> <00> https://lists.jboss.org/mailman/listinfo/rules-users

 


This email and/or any files or attachments transmitted with it are
confidential and intended solely for the use of the individual or entity
to whom they are addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable
law. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you
are hereby notified that any dis

RE: [rules-users] BRMS on Weblogic

2008-06-09 Thread Vikas Phonsa
Paul,

 

I was able to run BRMS on Weblogic. Looks like the Weblogic Workspace
IDE was creating some jar conflicts. When I created a domain, I selected
the option to configure it for Workspace also. 

 

After trying many different things (and getting thoroughly frustrated
:-) ), I created a new domain and configured it just for the Weblogic
server. Put the right JSF jars in domain lib and deployed BRMS war from
the console and it started up fine.

 

I have some exceptions related to DB2 Persistence Manager, but the
application is running.

 

Thanks for your help.

 

BTW, have you ever configured and used a Weblogic JAAS module with BRMS.

 

Thanks,

Vikas

 

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 9:00 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

I've always used Sun's JVM; mainly out of habit and one less thing to
investigate if things go wrong. It's worth trying Sun's in this case if
you're using the JRocket JVM.

Can you look at the Seam source code to see what is causing the
NullPointerException at 
GWTToSeamAdapter.java line 67? I don't have the source to hand at the
moment. My guess is that there is an issue on the server somewhere (i.e.
some missing or conflicted libs) but have no more detailled wisdom :-(.

Paul

On Thu, Jun 5, 2008 at 3:58 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Paul,

 

Thanks a lot for writing back.

 

>>>Just so that I can update the page, when you say 'that didn't help'
can you tell me what problems you are seeing / what you feel is missing?

 

Sorry if that didn't come across right. That page did help a lot. I
followed the instructions on that page. That fixed the JSF related
exceptions that I was initially getting. But then I got that other
NullPointerException whose stack trace that I listed in my last email.
That's the only exception that I see in the log. And The BRMS shows me
an error message and then doesn't display the login page.

 

And I did bring in the JSF dependencies. I still get the same exception.

 

Your Wiki page is very good. I just am getting an exception that I am
unable to find a solution for. 

 

Do you know if it matters whether I use the JRocket JVM or Sun's JVM in
the Weblogic server ?

 

Also, did you get a chance to look at this
http://www.seamframework.org/Community/GWTRPCCallFails

 

I would appreciate any other input that you give.

 

Regards,

Vikas

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Browne
Sent: Thursday, June 05, 2008 7:26 AM
To: Rules Users List
Subject: Re: [rules-users] BRMS on Weblogic

 

Vikas,

Thanks for your note - I'm the person that wrote the
JBoss_Drools_BRMS_on_Weblogic
  page that you mention. 
Just so that I can update the page, when you say 'that didn't help' can
you tell me what problems you are seeing / what you feel is missing?

I'm guessing that you've already seen the page
http://wiki.jboss.org/wiki/JBRMSjsfdependencies - did it help you at
all?

Regards

Paul



On Wed, Jun 4, 2008 at 6:55 PM, Vikas Phonsa
<[EMAIL PROTECTED]> wrote:

Hi All,

I'm trying to run BRMS 4.0.7 on Weblogic 9.2.0.0. It won't run and I'm
getting the exception listed below.

I looked at the Drools Wiki entry :
http://www.firstpartners.net/kb/index.php/JBoss_Drools_BRMS_on_Weblogic

That didn't help.

I also found something about this exception at Seam's website:
http://www.seamframework.org/Community/GWTRPCCallFails

As per the instructions mentioned in the above website, I brought the
jboss-seam-remoting.jar into my lib directory, but that didn't help.

Does anybody have any idea? Has anybody been able to successfully run
BRMS on Weblogic ?

Thanks,
Vikas




Exception Stack Trace-

  
  <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <> <> <>
<1212600416656> <00> https://lists.jboss.org/mailman/listinfo/rules-users

 


This email and/or any files or attachments transmitted with it are
confidential and intended solely for the use of the individual or entity
to whom they are addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable
law. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this e-mail and/or any files or attachments transmitted with it is
strictly forbidden. If you have received this email in error, please
delete the e-mail and/or any files or attachments, and also notify the
system manager ([EMAIL PROTECTED]) of the error. Please
note that any views or opinions presented in this email are solely those
of the author and do not necessarily represent those of the company.
Finally, the recipient should 

[rules-users] QueryResult.getFactHandles bug?

2008-06-09 Thread Fenderbosch, Eric
I didn't find a JIRA for this and I'm pretty sure my test is valid.

QueryResult.getFactHandles() seems to be only returning [fid:-1:X:null]

I'm using 4.0.7.

Here's my test case:
public void testQueryResults() throws Exception {
StatefulSession workingMemory = DroolsUtil.getWorkingMemory();
TestFact testFact = new TestFact();
String id = "1234";
testFact.setId(id);
FactHandle testHandle = workingMemory.insert(testFact);
System.out.println(testHandle);

Object[] args = {id};
int resultCount = 0;
int factCount = 0;
int handleCount = 0;
Object fact = null;
FactHandle handle = null;

// query getTestFact(String _id)
//  TestFact(id == _id)
// end
QueryResults queryResults =
workingMemory.getQueryResults("getTestFact", args);
Iterator iterator = queryResults.iterator();
while (iterator.hasNext()) {
resultCount++;
QueryResult result = iterator.next();
FactHandle[] handles = result.getFactHandles();
for (FactHandle h : handles) {
handleCount++;
handle = h;
}
for (int i = 0; i < result.size(); i++) {
factCount++;
fact = result.get(i);
}
}
System.out.println(handle);
assertTrue(resultCount == 1);
assertTrue(factCount == 1);
assertTrue(testFact == fact);
assertTrue(handleCount == 1);
// this fails
assertTrue(testHandle == handle);
}

TestFact is very simple, using id in hashCode and equals.

Am I using getFactHandles correctly?

Thanks.

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


Re: [rules-users] Constants initialize

2008-06-09 Thread Chris Woodrow
http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e948

2008/6/9 Thalupula Ravi <[EMAIL PROTECTED]>:

>
> Hi,
>
> Can some one suggest me how can i initialize a constant (String), which is
> common to all rules and the value of constant can able to change by
> Business
> users (BRMS).
>
> I think we can use global variable or fact, but that need to be supplied by
> client program and initialized at client side.
>
> I'm expecting initialization at rules side, which can easily maintain by
> business users.
>
> Thanks in advance.
>
> Regards,
> Ravi Thalupula
> --
> View this message in context:
> http://www.nabble.com/Constants-initialize-tp17731133p17731133.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] Question about timing rules

2008-06-09 Thread Bagwell, Allen F

Thanks! This is another way I hadn't thought of. It might be useful in some 
cases.

-A

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Claus
Sent: Saturday, June 07, 2008 2:38 PM
To: Rules Users List
Subject: Re: [rules-users] Question about timing rules

It is perhaps not the optimal solution for your case, but you could use for 
example the duration keyword to enable a cyclic behaviour: Simply add a dummy 
object of a certain class into the working memory and do a pseudo-modification 
in the rhs of the rule to this object. This ensures that the rule will be 
reactivated:

rule "A cyclic rule"
duration 1000
when
o : DummyObject()
then
System.out.println("fire");
modify (o) {};
end

So you could model cyclic behaviour with a predefined cycle time.
Unfortunately you could not change the duration parameter at runtime.
Hope I could inspire you...

Alexander Claus


- Original Message -
From: "Bagwell, Allen F" <[EMAIL PROTECTED]>
To: "Rules Users List" 
Sent: Thursday, June 05, 2008 7:14 PM
Subject: RE: [rules-users] Question about timing rules


>
> I've already followed something similar to Corneil's suggestion just
> by poking around on my own. What I've found is that the timers have to
> be set up to be checked first, then that caused focus to change to
> evaluate rules affected by those timers going off.
>
> That's at least one way of doing it. I was wondering if others had
> used different methods.
>
> In our old rule engine software, optional keywords could be used to
> set up what was essentially an interval timer under the hood on a per rule 
> basis.
> Like this:
>
> RULE: "example rule"
> TIME_INTERVAL: 60; // (seconds)
> WHEN
>
> THEN
>
>
> So rule activation based on the WHEN criteria only happened at a
> consistent interval of 60 seconds.
>
> It was convenient, very easy to work with, and didn't require creating
> additional objects that had to referenced in the LHSs of rule writing.
> So with Drools we're experimenting with analagous ways of achieving
> the same thing.
>
> Allen
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Scott Reed
> Sent: Thursday, June 05, 2008 10:35 AM
> To: Rules Users List
> Subject: Re: [rules-users] Question about timing rules
>
> To parameterize each rule's frequency, you can add an object with a
> frequency property for each rule or group of rules with the same
> frequency and check the frequency in the LHS against Corniels proposed timer 
> object.
> You can then modify the frequency property of these objects and signal
> the rule engine that the change was made and the new frequency will be
> be used to trigger the rules.
>
> I am not sure you need to fireAllRules periodically. I think you can
> just update the timer object that Corneil proposes and signal the
> update to the rule engine and it will reevaluate the rules automatically.
>
> Corneil du Plessis wrote:
>> It should not be an issue to have an object inserted representing the
>> current time and have rules checking against the object
>>
>> -
>> -
>> --
>> *From:* [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] *On Behalf Of *Bagwell,
>> Allen F
>> *Sent:* 05 June 2008 17:34
>> *To:* Rules Users List
>> *Subject:* [rules-users] Question about timing rules
>>
>>
>> Another noob question:
>>
>> Is there a generally understood way of implementing the concept of a
>> time interval rule?
>>
>> That is, lets say I have a Drools-enabled client which is constantly
>> receiving information from outside resources. Most of this data (and
>> the consequences of its changes) is time sensitive, so I'm calling
>> the
>> fireAllRules() method in a loop every minute.
>>
>> And now, let's say I have a rule that in addition to being driven by
>> incoming data changes has to be linked to a repeating clock interval
>> or synched with wall time such that the rule only activates and fires
>> if the data meets certain parameters AND it's been exactly 1 hour
>> since the last check or that it will fire at the top of every wall
>> time hour (1 PM, 2PM, 3 PM, etc.).
>>
>> Furthermore, timing may change. A successful rule activation and
>> firing might do something like "now change this timing so that for
>> the next 24 hours, this rule must be examined every 30 minutes
>> instead of every hour".
>>
>> My initial reading of the Drools documetation I came across the
>> Duration, and Date-* keywords. Their descriptions didn't seem to fit
>> the bill.
>>
>> I ask this because our old rules engine software that has been
>> retired to obsolescence allowed this kind of thing to be easily set
>> up. Coming at it in the Drools world seems a lot more challenging.
>>
>> Thoughts? Examples?
>>
>> -Allen
>>
>>
>>
>>
>> -
>> -
>> --
>>
>> __

Re: [rules-users] Sporadic error running drools

2008-06-09 Thread Edson Tirelli
   Are you using Drools 4.0.7 with MVEL 1.3.1?

   If yes, can you please open a jira for this error stating if your program
is doing multi-thread compilation/execution, paste the information in your
e-mail bellow, and if possible add a test case to reproduce, even if the
error is intermittent?

   Thank  you
   Edson


2008/6/9 Augusto Rodriguez <[EMAIL PROTECTED]>:

>  Dear All,
>
> We're using Drools in our project and we've been hitting a sporadic error
> when we insert Objects in a stateful session. Unfortunately we haven't been
> able to reproduce it in a constant way. We tried quite a lot of things but
> we haven't been able to track it to the core, but we found a way to "avoid"
> it, but we would love to know why this error is being triggered.
>
> >From time to time we get the following stack trace and usually after this
> the rulebase gets broken (all the stateful sessions we generate with it get
> unusable) and we can't run anything else in it (we have to restart the app
> in order to create a new rule base object).
>
> org.mvel.CompileException: cannot invoke method
> at
> org.mvel.optimizers.impl.refl.MethodAccessor.getValue(MethodAccessor.java:68)
> at
> org.mvel.optimizers.impl.refl.VariableAccessor.getValue(VariableAccessor.java:39)
> at
> org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode.java:22)
> at
> org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.java:21)
> at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)
> at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)
> at org.mvel.MVEL.executeExpression(MVEL.java:252)
> at
> org.drools.base.dataproviders.MVELDataProvider.getResults(MVELDataProvider.java:45)
> at org.drools.reteoo.FromNode.assertTuple(FromNode.java:64)
> at
> org.drools.reteoo.SingleTupleSinkAdapter.createAndPropagateAssertTuple(SingleTupleSinkAdapter.java:55)
> at
> org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:116)
> at
> org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:22)
> at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:140)
> at
> org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:318)
> at
> org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:153)
> at org.drools.reteoo.Rete.assertObject(Rete.java:175)
> at
> org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192)
> at
> org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:71)
> at
> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:909)
> at
> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:881)
> at
> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:682)
> at
> uk.co.vodco.sherbet.ccp.rules.availability.AvailabilityRulesEngineImpl.addProgramme(AvailabilityRulesEngineImpl.java:27)
> [removed a few lines]
> Caused by: java.lang.IllegalArgumentException:
> [EMAIL PROTECTED]
> at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.mvel.optimizers.impl.refl.MethodAccessor.getValue(MethodAccessor.java:64)
> ... 69 common frames omitted
>
> We found that adding a line to a few rules like the following one removed
> the error:
>
> # given the version, add the programme if it does not exist
> *rule* "insertion of programme given a version"
> *ruleflow-group* "source-defaults"
> *when*
> $v: ProgrammeVersion()
> $p: Programme() *from* $v.getProgramme()
> *not* Programme(*this* == $p)
> *then
> insert* ($p);
> *update* ($v); *<-- Added Line*
> LoggerFactory.getLogger("factinsertion.drl").info("Entered:
> insertion of programme given version");
> *end*
> **   **
>
> Does anyone have an idea of what can be causing this error? We suppose it's
> related to the *from* clause in the condition. Because we're taking the
> object we're inserting in the working memory ($p) from the object $v, so in
> the end, for some reason, we also need to update $v.
>
>
> Thanks in advance!
> Augusto
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Sporadic error running drools

2008-06-09 Thread Augusto Rodriguez




Dear All,

We're using Drools in our project and we've been hitting a sporadic
error when we insert Objects in a stateful session. Unfortunately we
haven't been able to reproduce it in a constant way. We tried quite a
lot of things but we haven't been able to track it to the core, but we
found a way to "avoid" it, but we would love to know why this error is
being triggered.

>From time to time we get the following stack trace and usually after
this the rulebase gets broken (all the stateful sessions we generate
with it get unusable) and we can't run anything else in it (we have to
restart the app in order to create a new rule base object).

org.mvel.CompileException: cannot invoke
method
    at
org.mvel.optimizers.impl.refl.MethodAccessor.getValue(MethodAccessor.java:68)
    at
org.mvel.optimizers.impl.refl.VariableAccessor.getValue(VariableAccessor.java:39)
    at
org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode.java:22)
    at
org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.java:21)
    at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)
    at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)
    at org.mvel.MVEL.executeExpression(MVEL.java:252)
    at
org.drools.base.dataproviders.MVELDataProvider.getResults(MVELDataProvider.java:45)
    at org.drools.reteoo.FromNode.assertTuple(FromNode.java:64)
    at
org.drools.reteoo.SingleTupleSinkAdapter.createAndPropagateAssertTuple(SingleTupleSinkAdapter.java:55)
    at
org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:116)
    at
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:22)
    at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:140)
    at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:318)
    at
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:153)
    at org.drools.reteoo.Rete.assertObject(Rete.java:175)
    at
org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192)
    at
org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:71)
    at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:909)
    at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:881)
    at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:682)
    at
uk.co.vodco.sherbet.ccp.rules.availability.AvailabilityRulesEngineImpl.addProgramme(AvailabilityRulesEngineImpl.java:27)
[removed a few lines]
Caused by: java.lang.IllegalArgumentException: [EMAIL PROTECTED]
    at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
org.mvel.optimizers.impl.refl.MethodAccessor.getValue(MethodAccessor.java:64)
    ... 69 common frames omitted

We found that adding a line to a few rules like the following
one removed the error:

# given the version, add the programme if it does not exist
rule "insertion of programme given a version"
ruleflow-group "source-defaults"
    when
        $v: ProgrammeVersion()
        $p: Programme() from $v.getProgramme()
        not
Programme(this == $p)
    then
        insert ($p);
        update ($v); <-- Added Line
        LoggerFactory.getLogger("factinsertion.drl").info("Entered:
insertion of programme given version");
end







Does anyone have an idea of what can be causing this error? We suppose
it's related to the from clause in the condition. Because we're
taking the object we're inserting in the working memory ($p) from the
object $v, so in the end, for some reason, we also need to update $v.


Thanks in advance!
Augusto


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


Re: [rules-users] precompile rules

2008-06-09 Thread apor

Thank you for your response, but one can precompilar the rules in the style
of jdbc

Thank you

apor wrote:
> 
> hi, i am new with drools. one question , The rules can precompilar ?
> 
> Thank you 
> 

-- 
View this message in context: 
http://www.nabble.com/precompile-rules-tp17700145p17732235.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] Constants initialize

2008-06-09 Thread Thalupula Ravi

Hi,

Can some one suggest me how can i initialize a constant (String), which is
common to all rules and the value of constant can able to change by Business
users (BRMS).

I think we can use global variable or fact, but that need to be supplied by
client program and initialized at client side.

I'm expecting initialization at rules side, which can easily maintain by
business users.

Thanks in advance.

Regards,
Ravi Thalupula
-- 
View this message in context: 
http://www.nabble.com/Constants-initialize-tp17731133p17731133.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