RE: [rules-users] firing specific rule

2007-10-19 Thread Manukyan, Sergey
 

Manukyan, Sergey wrote: 

By the way, I see value of the AgendaFilter to be eliminated and use
instead Predicate interface from apache commons collections:
 
http://commons.apache.org/collections/apidocs/org/apache/commons/collect
ions/Predicate.html
 
as the API that supports Predicate logic is pretty rich and afford
creation of complex predicates using PredicateUtils :
 
http://commons.apache.org/collections/apidocs/org/apache/commons/collect
ions/PredicateUtils.html
 
just my 2 cents ;)
  

People don't like dependencies, you can easily implement AgendaFilter
using commons Predicate - would make a good article for an aspiring user
:)


Good point. It just is a bit confusing at first.
How about renaming it from AgendaFilter to ActivationFilter, as it
actually deals with Activations, not Agendas...?

 
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Reed
Sent: Thursday, October 18, 2007 12:57 PM
To: Rules Users List
Subject: Re: [rules-users] firing specific rule
 
Mark Proctor's message received 10/18/2007 12:07 PM:
  

    Manukyan, Sergey wrote:


Kris,
 
 
 
It looks like whatever name I choose for
*RuleNameEqualsAgendaFilter
  

- 
  

*it doesn't fire any rules. It may be the name of my
rule I want to 
fire or some bogus name, just the fact that I am using
it - make all 
rules not fire.
 
 
 
By the way the *RuleNameEqualsAgendaFilter("rule name")
-  *makes
  

sure 
  

that "*rule name*" - is NOT fired? Or makes sure it IS
fired?
 
  

Read the docs and if you still aren't sure try it. Beats sitting
and 
waiting on here for an answer :)


 
I know the documentation is not clear. I think it would be helpful to
fix this so it's clear which 
way the filtering works, either by documenting it clearly or by changing
the method name?
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
 
**
** LEGAL DISCLAIMER **
**
 
This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.
 
___
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] firing specific rule

2007-10-18 Thread Manukyan, Sergey

By the way, I see value of the AgendaFilter to be eliminated and use
instead Predicate interface from apache commons collections:

http://commons.apache.org/collections/apidocs/org/apache/commons/collect
ions/Predicate.html

as the API that supports Predicate logic is pretty rich and afford
creation of complex predicates using PredicateUtils :

http://commons.apache.org/collections/apidocs/org/apache/commons/collect
ions/PredicateUtils.html

just my 2 cents ;)




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Reed
Sent: Thursday, October 18, 2007 12:57 PM
To: Rules Users List
Subject: Re: [rules-users] firing specific rule

Mark Proctor's message received 10/18/2007 12:07 PM:
> Manukyan, Sergey wrote:
>>
>> Kris,
>>
>>  
>>
>> It looks like whatever name I choose for *RuleNameEqualsAgendaFilter
- 
>> *it doesn't fire any rules. It may be the name of my rule I want to 
>> fire or some bogus name, just the fact that I am using it - make all 
>> rules not fire.
>>
>>  
>>
>> By the way the *RuleNameEqualsAgendaFilter("rule name") -  *makes
sure 
>> that "*rule name*" - is NOT fired? Or makes sure it IS fired?
>>
> Read the docs and if you still aren't sure try it. Beats sitting and 
> waiting on here for an answer :)

I know the documentation is not clear. I think it would be helpful to
fix this so it's clear which 
way the filtering works, either by documenting it clearly or by changing
the method name?
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] RE: firing specific rule

2007-10-18 Thread Manukyan, Sergey

Ok folks, the issue was resolved, thanks everyone for their valuable
inputs.

Here is what I have found out:

1. The manual for 4.0.2 is incorrectly stating that
RuleNameEndsWithAgendaFilter("Test") filters OUT the rules. It actually
filters IN..

The interface AgendaFilter contains method : 

public boolean accept(final Activation activation);

so when it returns true - the Activation IS accepted.

The implementations class RuleNameEndsWithAgendaFilter("Test") of that
interface has method, which returns true when

 activation.getRule().getName().endsWith( "Test" )

So activations of rules that end on "Test" ARE accepted.

Documentation manual needs to be corrected and it would probably be
beneficial to add section to it describing AgendaFilter interface.

2. When using rule flow file like in my example:

START -> Initialization -> Validation -> END

And using RuleNameEndsWithAgendaFilter("My Rule Name") which had
"Validation" ruleflow group - never fired because NONE of the
activations were permitted on Initialization part, it choked execution
of the Activations on the Validation part.

The resolution was when I created a custom agenda filter :

new AgendaFilter () {

public boolean accept(Activation activation) {

if (activation.getRule().getName().equals("My Rule
Name")
||
!activation.getRule().getRuleFlowGroup().equals(
"Validation")) {
return true;
} else {
return false;
}
}   
}

It allowed to fire all rules in ruleflow group other then Validation and
then proceeded to Validation and fired that particular validation rule I
was looking for. (thanks to Kris for the advice)

-Sergey



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Geis
Sent: Thursday, October 18, 2007 1:02 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] RE: firing specific rule

I ran into this unexpected behavior as well.  I took a look at the
Drools source and found that the rule filters filter out rules that MEET
the criteria (unlike the java Filename Filter, which filters out those
that do NOT meet the criteria.

So, if you want to run a VERY specific rule, you could create something
like RuleNameNotEqualsFilter, and that would ensure that all rules
except the one you want to fire have no chance of firing.

Then, of course, you would want to make sure that the facts you assert
meet the conditions you've set up in the LHS of the rule.

Matt


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] firing specific rule

2007-10-18 Thread Manukyan, Sergey
Sergey,

 

In theory you can use AgendaFilters in combination with ruleflow.  Note
however that the agenda filter will prevent certain other activations
from firing.  As a result, your ruleflow could be blocked somewhere by
not being able to execute certain activations:

 * An ruleflow group will only continue if all its activations have been
completed.  Preventing one such activation from firing (using an
AgendaFilter) will prevent the ruleflow group from completing and thus
the ruleflow from continuing.

 * Internally, the ruleflow implementation also uses rules for executing
a ruleflow, like for example when evaluating conditions in a split node.
You should make sure you do not block these rules from executing.

 

Please know that using AgendaFilters like this is discouraged.  It can
be used for testing and debugging purposes, but you should probably not
use it like this in production.  There are probably other ways to do
what you are trying to do here.

 

What would be the other way to do it? 

 

If you really want to fire only one rule for a ruleflow group, I would
suggest you make your AgendaFilter more specific, so it does not block
rules from other ruleflow groups.  You can do this by making your own
implementation of an AgendaFilter, for example a
RuleNameInRuleFlowGroupEqualsAgendaFilter, which only blocks rules in
the same ruleflow group from firing if they do not have the right name.

 

Kris

 

- Original Message - 

From: Manukyan, Sergey <mailto:[EMAIL PROTECTED]>  

To: rules-users@lists.jboss.org 

Sent: Wednesday, October 17, 2007 11:13 PM

Subject: [rules-users] firing specific rule

 

Folks,

 

I have to restate the question as didn't find the answer
anywhere and have not get response to it in my previous email.

 

Using 4.0.2.   So I have a set of rules, each with a specific
ruleflow-group defined. And I have a rule flow file defined. Altogether
everything works fine.

 

Now I need to fire a single specific rule from this rule set.
Using the RuleNameEqualsAgendaFilter didn't help, it didn't fire the
rule...

 

How is it supposed to be done?

 

Thanks,

 

-Sergey

 

 

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.





___
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] firing specific rule

2007-10-18 Thread Manukyan, Sergey
Kris,

 

It looks like whatever name I choose for RuleNameEqualsAgendaFilter - it
doesn't fire any rules. It may be the name of my rule I want to fire or
some bogus name, just the fact that I am using it - make all rules not
fire.

 

By the way the RuleNameEqualsAgendaFilter("rule name") -  makes sure
that "rule name" - is NOT fired? Or makes sure it IS fired?

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kris Verlaenen
Sent: Thursday, October 18, 2007 9:08 AM
To: Rules Users List
Subject: Re: [rules-users] firing specific rule

 

Sergey,

 

In theory you can use AgendaFilters in combination with ruleflow.  Note
however that the agenda filter will prevent certain other activations
from firing.  As a result, your ruleflow could be blocked somewhere by
not being able to execute certain activations:

 * An ruleflow group will only continue if all its activations have been
completed.  Preventing one such activation from firing (using an
AgendaFilter) will prevent the ruleflow group from completing and thus
the ruleflow from continuing.

 * Internally, the ruleflow implementation also uses rules for executing
a ruleflow, like for example when evaluating conditions in a split node.
You should make sure you do not block these rules from executing.

 

Please know that using AgendaFilters like this is discouraged.  It can
be used for testing and debugging purposes, but you should probably not
use it like this in production.  There are probably other ways to do
what you are trying to do here.

 

If you really want to fire only one rule for a ruleflow group, I would
suggest you make your AgendaFilter more specific, so it does not block
rules from other ruleflow groups.  You can do this by making your own
implementation of an AgendaFilter, for example a
RuleNameInRuleFlowGroupEqualsAgendaFilter, which only blocks rules in
the same ruleflow group from firing if they do not have the right name.

 

Kris

- Original Message - 

    From: Manukyan, Sergey <mailto:[EMAIL PROTECTED]>  

To: rules-users@lists.jboss.org 

Sent: Wednesday, October 17, 2007 11:13 PM

Subject: [rules-users] firing specific rule

 

Folks,

 

I have to restate the question as didn't find the answer
anywhere and have not get response to it in my previous email.

 

Using 4.0.2.   So I have a set of rules, each with a specific
ruleflow-group defined. And I have a rule flow file defined. Altogether
everything works fine.

 

Now I need to fire a single specific rule from this rule set.
Using the RuleNameEqualsAgendaFilter didn't help, it didn't fire the
rule...

 

How is it supposed to be done?

 

Thanks,

 

-Sergey

 

 

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.





___
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] firing specific rule

2007-10-18 Thread Manukyan, Sergey

 

Manukyan, Sergey wrote: 

 

Manukyan, Sergey's message received 10/17/2007 5:13 PM:

  

Folks,

 

I have to restate the question as didn't find the answer anywhere and 

have not get response to it in my previous email.

 

Using 4.0.2.   So I have a set of rules, _each_ with a specific 

*ruleflow-group *defined. And I have a rule flow file defined. 

Altogether everything works fine.

 

Now I need to fire a single specific rule from this rule set. Using



the 

  

RuleNameEqualsAgendaFilter didn't help, it didn't fire the rule...

 

 

How is it supposed to be done?



 
  A couple of reasons a rule won't fire: if the facts aren't
asserted or  the conditions aren't met.
   
   Scott, both conditions are met. The problem is in
   filtering agenda to a single rule, and it only happens
when rules have
   ruleflow-group defined... 
  

If a rule defines a ruleflow-group then it can only fire when that
ruleflow-group is active. So the ruleflow-group, when active, place's
its activations onto the Agenda where when the rule is attempted to be
fired the AgendaFilter may stop that rule from firing.



The
ruleflow-group is active. Here is what I do:

 

session.insert(fact);

 
session.startProcess("Validation");

 
session.fireAllRules(new RuleNameEqualsAgendaFilter("My specific rule I
want to be fired"));  // doesn't fire any rule



Looks right
to you?













**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] firing specific rule

2007-10-18 Thread Manukyan, Sergey
Manukyan, Sergey wrote: 

Folks,

 

I have to restate the question as didn't find the answer anywhere and
have not get response to it in my previous email.

 

Using 4.0.2.   So I have a set of rules, each with a specific
ruleflow-group defined. And I have a rule flow file defined. Altogether
everything works fine.

 

Now I need to fire a single specific rule from this rule set. Using the
RuleNameEqualsAgendaFilter didn't help, it didn't fire the rule...

 

 

You cannot call a rule explicitely, they are not methods. 

 

I know. As I said earlier. All rules fire just fine when I am inserting
an object. But when using RuleNameEqualsAgendaFilter("specific rule
name") - NONE of the rules fire, specifically the single rule I am
interested in. Without this filter - that rule fires just fine along
with others Again this happened when rule has ruleflow-group
defined. When ruleflow-group is not defined - it fires again just fine
when using RuleNameEqualsAgendaFilter. Is RuleNameEqualsAgendaFilter
supposed to work with rules with or without ruleflow-group defined? If
so then it looks like a bug to me...

 

The agenda has the rules that are ready to fire, you can use a an agenda
filter to stop a rule firing, not to call a rule.


Do you mean using RuleNameEqualsAgendaFilter or anything else?

 

How is it supposed to be done?

 

Thanks,

 

-Sergey

 

 

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

 







 
___
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] firing specific rule

2007-10-18 Thread Manukyan, Sergey


Manukyan, Sergey's message received 10/17/2007 5:13 PM:
> Folks,
> 
>  
> 
> I have to restate the question as didn't find the answer anywhere and 
> have not get response to it in my previous email.
> 
>  
> 
> Using 4.0.2.   So I have a set of rules, _each_ with a specific 
> *ruleflow-group *defined. And I have a rule flow file defined. 
> Altogether everything works fine.
> 
>  
> 
> Now I need to fire a single specific rule from this rule set. Using
the 
> RuleNameEqualsAgendaFilter didn't help, it didn't fire the rule...
> 
>  
> 
> How is it supposed to be done?

A couple of reasons a rule won't fire: if the facts aren't
asserted or the conditions aren't met.

Scott, both conditions are met. The problem is in
filtering agenda to a single rule, and it only happens when rules have
ruleflow-group defined... 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


[rules-users] firing specific rule

2007-10-17 Thread Manukyan, Sergey

Folks,

 

I have to restate the question as didn't find the answer anywhere and
have not get response to it in my previous email.

 

Using 4.0.2.   So I have a set of rules, each with a specific
ruleflow-group defined. And I have a rule flow file defined. Altogether
everything works fine.

 

Now I need to fire a single specific rule from this rule set. Using the
RuleNameEqualsAgendaFilter didn't help, it didn't fire the rule...

 

How is it supposed to be done?

 

Thanks,

 

-Sergey

 

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] RuleNameEqualsAgendaFilter

2007-10-12 Thread Manukyan, Sergey

Folks,

 

The RuleNameEqualsAgendaFilter doesn't fire rules when used with Rule
Flow. 

 

Without is all rules fire fine, but I need to limit it to only one.

 

Is that a know issue? Or maybe I cannot use it together with Rule
Flows?

 

-Sergey

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] RE: RE: rules precompilation

2007-10-10 Thread Manukyan, Sergey
You should be able to serialise a Package without having to first add it
to PackageBuilder, we have numerous  tests for this.


Mark, I looked at the test in PackageBuilderTest.testSerializable(), but
it is too syntetic, f.e. it doesn't use insert(...) function as I do in
my scenario. Please try creating a test with inserting some MyClass()
after deserializing without recreating PackageBuilder and you will see
it failing. I made many tests suggesting that. Even when I use
DroolsObjectInputStream()

 

-Sergey

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Tuesday, October 09, 2007 6:25 PM
To: Rules Users List
Subject: Re: [rules-users] RE: RE: rules precompilation

 

Manukyan, Sergey wrote: 

Ekke,
 
Thanks a lot! It worked just fine...
 
The other missing point is that after deserializing the PackageBuilder
should be buit as in your example :
 
builder = new PackageBuilder((Package)ois.readObject());
 
and later on from that isnatcne should be retrieved the Package inctance
by doing:
 
package = buider.getPackage();
 
as otherwise this code was failing:

package = (Package)ois.readObject();  // FAILES, subsequent use
of package produces "class not found" exception when inserting objects.
 
 
 
Mark,
 
Think this should be documented somewhere in manual... under  IMPORTANT
section... by the way, IMHO that section should be more visible from
what is used currently in manual... - thin italic font, how about bold
red?
 
  

You should be able to serialise a Package without having to first add it
to PackageBuilder, we have numerous  tests for this.



 
Thanks to all,
 
-Sergey

 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ekke
Sent: Tuesday, October 09, 2007 2:35 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] RE: RE: rules precompilation
 
 
Sergey,
 
of course Mark is right - you shouldn't use readExternal and the default
constructor.
this was my fault from an earlier mail.
 
please try something like this:
 
// EXPORT
...
FileOutputStream fos .
...
ObjectOutputStream oos = null;
   try {
   oos = new ObjectOutputStream(fos);
   oos.writeObject(builder.getPackage());
   oos.close();
   } catch (final IOException e) {
   ... your code
   }
...
 
// IMPORT
FileInputStream fis...
...
ObjectInputStream ois = null;
   try {
   ois = new ObjectInputStream(fis);
   builder = new
PackageBuilder((Package)ois.readObject());
   ois.close();
   } catch (final IOException e) {
   ...your code...;
   } catch (final ClassNotFoundException e) {
   ...your code...;
   }
 
now your imported package should work like the exported
 
ekke
 
 
Manukyan, Sergey wrote:
  

Ekke,
 
Started using 4.0.2, but getting same error.
 
This is how I am loading the Package :
 
this.pkg = new Package();
this.pkg.readExternal(ois);
 
Does that look right to you?
 
-Sergey
 
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ekke
Sent: Wednesday, October 03, 2007 4:08 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] RE: rules precompilation
 
 
sergey,
 
just tried it:
exported a package with rules as stream
(using the writeExternal() from Package)
 
then in another run I created new RuleBase, added new Package,
then import the rules into this empty Package (using the


readExternal()
  

from
Package)
then added some facts, execute the rules,
 
tested if all rules are there,
tested if the Facts are in workingMemory - all ok
 
(using snapshot 4.0.2, eclipse 3.3, osx 10.4.10)
 
ekke
     
Manukyan, Sergey wrote:


Ming, Ekke,
 
After deserialising the Package back - getting exception
when
  

inserting


facts:
 
Exception thrown : java.lang.NoClassDefFoundError:
XXXShadowProxy
 
XXX - is my class name
 
Any ideas?
 
-Sergey
 
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Jin, Ming
Sent: W

RE: [rules-users] RE: RE: rules precompilation

2007-10-09 Thread Manukyan, Sergey
Ekke,

Thanks a lot! It worked just fine...

The other missing point is that after deserializing the PackageBuilder
should be buit as in your example :

builder = new PackageBuilder((Package)ois.readObject());

and later on from that isnatcne should be retrieved the Package inctance
by doing:

package = buider.getPackage();

as otherwise this code was failing:

package = (Package)ois.readObject();  // FAILES, subsequent use
of package produces "class not found" exception when inserting objects.



Mark,

Think this should be documented somewhere in manual... under  IMPORTANT
section... by the way, IMHO that section should be more visible from
what is used currently in manual... - thin italic font, how about bold
red?


Thanks to all,

-Sergey



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ekke
Sent: Tuesday, October 09, 2007 2:35 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] RE: RE: rules precompilation


Sergey,

of course Mark is right - you shouldn't use readExternal and the default
constructor.
this was my fault from an earlier mail.

please try something like this:

// EXPORT
...
FileOutputStream fos .
...
ObjectOutputStream oos = null;
try {
oos = new ObjectOutputStream(fos);
oos.writeObject(builder.getPackage());
oos.close();
} catch (final IOException e) {
... your code
}
...

// IMPORT
FileInputStream fis...
...
ObjectInputStream ois = null;
try {
ois = new ObjectInputStream(fis);
builder = new
PackageBuilder((Package)ois.readObject());
ois.close();
} catch (final IOException e) {
...your code...;
} catch (final ClassNotFoundException e) {
...your code...;
}

now your imported package should work like the exported

ekke


Manukyan, Sergey wrote:
> 
> Ekke,
> 
> Started using 4.0.2, but getting same error.
> 
> This is how I am loading the Package :
> 
> this.pkg = new Package();
> this.pkg.readExternal(ois);
> 
> Does that look right to you?
> 
> -Sergey
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of ekke
> Sent: Wednesday, October 03, 2007 4:08 PM
> To: rules-users@lists.jboss.org
> Subject: [rules-users] RE: rules precompilation
> 
> 
> sergey,
> 
> just tried it:
> exported a package with rules as stream
> (using the writeExternal() from Package)
> 
> then in another run I created new RuleBase, added new Package,
> then import the rules into this empty Package (using the
readExternal()
> from
> Package)
> then added some facts, execute the rules,
> 
> tested if all rules are there,
> tested if the Facts are in workingMemory - all ok
> 
> (using snapshot 4.0.2, eclipse 3.3, osx 10.4.10)
> 
> ekke
> 
> Manukyan, Sergey wrote:
>> 
>> Ming, Ekke,
>> 
>> After deserialising the Package back - getting exception when
> inserting
>> facts:
>> 
>> Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy
>> 
>> XXX - is my class name
>> 
>> Any ideas?
>> 
>> -Sergey
>> 
>> 
>> 
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming
>> Sent: Wednesday, October 03, 2007 1:50 PM
>> To: Rules Users List
>> Subject: RE: [rules-users] rules precompilation
>> 
>> Sergey,
>> 
>> I am using precompiled rules.  Serializing instances of
>> org.drools.rule.Package works for me.
>> 
>> Thanks,
>> -Ming 
>> 
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
>> Sergey
>> Sent: Wednesday, October 03, 2007 12:29 PM
>> To: Rules Users List
>> Subject: [rules-users] rules precompilation
>> 
>> 
>> Folks,
>> 
>> Where can I find information on how to pre-compile rules in 4.0.1?
>> 
>> Thanks,
>> 
>> -Sergey
>> 
>> 
>> **
>> ** LEGAL DISCLAIMER **
>> **
>> 
>> This E-mail message and any attachments may contain legally
> privileged,
>> confidential or proprietary information. If you are not the intended
>> recipient(s), or the employee or agent responsible for delivery of
> this
>> message to the intended recipient(s), you are hereby notified that
any
>> dissemination, di

RE: [rules-users] RE: rules precompilation

2007-10-09 Thread Manukyan, Sergey
wtf? you shouldn't be touching those methods, those are part of the
internal serialisation process. In fact you shouldn't instantiate a
Package at all, either serialise in an existing one 

 

So you mean do this? :

 

  ois = new ObjectInputStream(fis);

  this.pkg = (Package) ois.readObject();

  ois.close();

 

It did the same thing... threw same exception...

 

 

or use the PackageBuilder

 

How? Where is it described? Are there any examples?

 





 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Tuesday, October 09, 2007 11:55 AM
To: Rules Users List
Subject: Re: [rules-users] RE: rules precompilation

 

Manukyan, Sergey wrote: 

Ekke,
 
Started using 4.0.2, but getting same error.
 
This is how I am loading the Package :
 
this.pkg = new Package();
this.pkg.readExternal(ois);
 
Does that look right to you?
  

wtf? you shouldn't be touching those methods, those are part of the
internal serialisation process. And you should never instantiation a
Package with the default constructor, the javadocs even state that. In
fact you shouldn't instantiate a Package at all, either serialise in an
existing one or use the PackageBuilder.



 
-Sergey
 
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ekke
Sent: Wednesday, October 03, 2007 4:08 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] RE: rules precompilation
 
 
sergey,
 
just tried it:
exported a package with rules as stream
(using the writeExternal() from Package)
 
then in another run I created new RuleBase, added new Package,
then import the rules into this empty Package (using the readExternal()
from
Package)
then added some facts, execute the rules,
 
tested if all rules are there,
tested if the Facts are in workingMemory - all ok
 
(using snapshot 4.0.2, eclipse 3.3, osx 10.4.10)
 
ekke
 
Manukyan, Sergey wrote:
  

Ming, Ekke,
 
After deserialising the Package back - getting exception when


inserting
  

facts:
 
Exception thrown : java.lang.NoClassDefFoundError:
XXXShadowProxy
 
XXX - is my class name
 
Any ideas?
 
-Sergey
 
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jin,
Ming
Sent: Wednesday, October 03, 2007 1:50 PM
To: Rules Users List
Subject: RE: [rules-users] rules precompilation
 
Sergey,
 
I am using precompiled rules.  Serializing instances of
org.drools.rule.Package works for me.
 
Thanks,
-Ming 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Manukyan,
Sergey
Sent: Wednesday, October 03, 2007 12:29 PM
To: Rules Users List
Subject: [rules-users] rules precompilation
 
 
Folks,
 
Where can I find information on how to pre-compile rules in
4.0.1?
 
Thanks,
 
-Sergey
 
 
**
** LEGAL DISCLAIMER **
**
 
This E-mail message and any attachments may contain legally


privileged,
  

confidential or proprietary information. If you are not the
intended
recipient(s), or the employee or agent responsible for delivery
of


this
  

message to the intended recipient(s), you are hereby notified
that any
dissemination, distribution or copying of this E-mail message is
strictly prohibited. If you have received this message in error,


please
  

immediately notify the sender and delete this E-mail message
from your
computer.
 
___
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] RE: rules precompilation

2007-10-09 Thread Manukyan, Sergey
Ekke,

Started using 4.0.2, but getting same error.

This is how I am loading the Package :

this.pkg = new Package();
this.pkg.readExternal(ois);

Does that look right to you?

-Sergey



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ekke
Sent: Wednesday, October 03, 2007 4:08 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] RE: rules precompilation


sergey,

just tried it:
exported a package with rules as stream
(using the writeExternal() from Package)

then in another run I created new RuleBase, added new Package,
then import the rules into this empty Package (using the readExternal()
from
Package)
then added some facts, execute the rules,

tested if all rules are there,
tested if the Facts are in workingMemory - all ok

(using snapshot 4.0.2, eclipse 3.3, osx 10.4.10)

ekke

Manukyan, Sergey wrote:
> 
> Ming, Ekke,
> 
> After deserialising the Package back - getting exception when
inserting
> facts:
> 
> Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy
> 
> XXX - is my class name
> 
> Any ideas?
> 
> -Sergey
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming
> Sent: Wednesday, October 03, 2007 1:50 PM
> To: Rules Users List
> Subject: RE: [rules-users] rules precompilation
> 
> Sergey,
> 
> I am using precompiled rules.  Serializing instances of
> org.drools.rule.Package works for me.
> 
> Thanks,
> -Ming 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
> Sergey
> Sent: Wednesday, October 03, 2007 12:29 PM
> To: Rules Users List
> Subject: [rules-users] rules precompilation
> 
> 
> Folks,
> 
> Where can I find information on how to pre-compile rules in 4.0.1?
> 
> Thanks,
> 
> -Sergey
> 
> 
> **
> ** LEGAL DISCLAIMER **
> **
> 
> This E-mail message and any attachments may contain legally
privileged,
> confidential or proprietary information. If you are not the intended
> recipient(s), or the employee or agent responsible for delivery of
this
> message to the intended recipient(s), you are hereby notified that any
> dissemination, distribution or copying of this E-mail message is
> strictly prohibited. If you have received this message in error,
please
> immediately notify the sender and delete this E-mail message from your
> computer.
> 
> ___
> 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
> 
> 

-- 
View this message in context:
http://www.nabble.com/How-to-have-your-emails-ignored-tf4562290.html#a13
026864
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] rules precompilation

2007-10-03 Thread Manukyan, Sergey
Did it immediately... 

If you don't mind could you post code that works?

Thanks.

-Sergey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming
Sent: Wednesday, October 03, 2007 3:40 PM
To: Rules Users List
Subject: RE: [rules-users] rules precompilation

Did you save the Package right after the creation from PackageBuilder,
or after some other processes? 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: Wednesday, October 03, 2007 2:21 PM
To: Rules Users List
Subject: RE: [rules-users] rules precompilation

Ming, Ekke,

After deserialising the Package back - getting exception when inserting
facts:

Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy

XXX - is my class name

Any ideas?

-Sergey



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming
Sent: Wednesday, October 03, 2007 1:50 PM
To: Rules Users List
Subject: RE: [rules-users] rules precompilation

Sergey,

I am using precompiled rules.  Serializing instances of
org.drools.rule.Package works for me.

Thanks,
-Ming 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: Wednesday, October 03, 2007 12:29 PM
To: Rules Users List
Subject: [rules-users] rules precompilation


Folks,

Where can I find information on how to pre-compile rules in 4.0.1?

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain legally privileged,
confidential or proprietary information. If you are not the intended
recipient(s), or the employee or agent responsible for delivery of this
message to the intended recipient(s), you are hereby notified that any
dissemination, distribution or copying of this E-mail message is
strictly prohibited. If you have received this message in error, please
immediately notify the sender and delete this E-mail message from your
computer.

___
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] rules precompilation

2007-10-03 Thread Manukyan, Sergey
Ming, Ekke,

After deserialising the Package back - getting exception when inserting
facts:

Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy

XXX - is my class name

Any ideas?

-Sergey



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming
Sent: Wednesday, October 03, 2007 1:50 PM
To: Rules Users List
Subject: RE: [rules-users] rules precompilation

Sergey,

I am using precompiled rules.  Serializing instances of
org.drools.rule.Package works for me.

Thanks,
-Ming 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: Wednesday, October 03, 2007 12:29 PM
To: Rules Users List
Subject: [rules-users] rules precompilation


Folks,

Where can I find information on how to pre-compile rules in 4.0.1?

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain legally privileged,
confidential or proprietary information. If you are not the intended
recipient(s), or the employee or agent responsible for delivery of this
message to the intended recipient(s), you are hereby notified that any
dissemination, distribution or copying of this E-mail message is
strictly prohibited. If you have received this message in error, please
immediately notify the sender and delete this E-mail message from your
computer.

___
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] rules precompilation

2007-10-03 Thread Manukyan, Sergey

Folks,

Where can I find information on how to pre-compile rules in 4.0.1?

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] How to have your emails ignored

2007-10-03 Thread Manukyan, Sergey

I would suggest create a manual on how to communicate on this mailing
list, and all emails not conforming to this manual be tagged with f.e...
LIST COMMUNICATION ABUSE REFRENCE # 2.1.1, please consider to reformat
your email to match those standards. Therefore the sender knows what it
is about and it won't continue to do the same...



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Wednesday, October 03, 2007 10:36 AM
To: Rules Users List
Subject: [rules-users] How to have your emails ignored

Did this for some fun, will add it to the mailing lists info page on the

website. Anyone else have some more ideas? I'll blog the final results
:)

How to have your emails ignored:
Start the email with "URGENT"
Tell everyone how desparate you and how you need an immediate response 
for your really important project.
Don't wait a minimum of 3 days and resend your email within minutes of 
hours.
Send emails directly to mailing list members, especially the developers.
Paste pages of code and then say "it doesn't work, please help".
Paste a long stack trace and say "it doesn't work, please help".
Start your email with "please sirs" or include "do the needful".
Ask dumb questions that are in the manual.
Ask basic java questions.
Ask questions about JRules
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


[rules-users] serialize RuleBase... precompiling rules

2007-10-03 Thread Manukyan, Sergey

Folks,

Using 4.0.1.

Can I serialize RuleBase object in order to load later precompiled
rules?

So far I was able to do that but when inserting facts into stateful
session based on that rulebase exception is thrown:
java.lang.NoClassDefFoundError: XXXShadowProxy

What is the correct way of precompiling rules? I couldn't find any
description of how to do it in documentation...

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


[rules-users] agenda filter with rule flow

2007-10-01 Thread Manukyan, Sergey

Folks,

I need to use agenda filter to execute a particular rule:

rule "My Rule"
ruleflow-group "Validation"
when
Object()
then
... 
end

The rule flow "Validation" is defined.

I am doing the following:

StatefulSession session =
RuleBaseFacade.getInstance().newStatefulSession();
session.insert(new Object());
session.startProcess("Validation");
session.fireAllRules(new RuleNameEqualsAgendaFilter("My Rule"));

But it doesn't fire this rule.

Also I tried this with no success as well:

StatefulSession session =
RuleBaseFacade.getInstance().newStatefulSession();
session.insert(new Object());
session.fireAllRules(new RuleNameEqualsAgendaFilter("My Rule"));


How can I make it work?

Thanks,

-Sergey



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] eclipse drools builder doesn't recognize functions...?

2007-09-25 Thread Manukyan, Sergey
Thanks Mark. It does execute fine, aalthough an inconvenience. I ended
up having a separate java class for storing static functions.

 

Ekke : renaming function to be different from package name didn't
help...

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Tuesday, September 25, 2007 10:03 AM
To: Rules Users List
Subject: Re: [rules-users] eclipse drools builder doesn't recognize
functions...?

 

There is a known bug in the Eclipse frameowork that when jdk14 is used
we cannot override the JDT Core compiler to allow static imports, thus
it shows this error, however it executes fine.

Mark
Manukyan, Sergey wrote: 

 

Getting error reports by drools builder in 4.0.1 telling "The method
test() is undefined" ... is this a known bug?

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

 







 
___
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] eclipse drools builder doesn't recognize functions ...?

2007-09-25 Thread Manukyan, Sergey

 

Getting error reports by drools builder in 4.0.1 telling "The method
test() is undefined" ... is this a known bug?

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed:

2007-09-24 Thread Manukyan, Sergey

Folks,

 

Using 4.0.1. Getting errors sometimes while working with DRL file with
"Outline" view open. Errors manifest themselves as a popup box :

 

 

 

 

Here is the content of Error Log:

--

 

eclipse.buildId=unknown

java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
j9vmwi3223ifx-20070323 (JIT enabled)

J9VM - 20070322_12058_lHdSMR

JIT  - 20070109_1805ifx3_r8

GC   - WASIFIX_2007

BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

Framework arguments:  -product com.ibm.rational.rad.product.ide

Command-line arguments:  -os win32 -ws win32 -arch x86 -product
com.ibm.rational.rad.product.ide

 

Error

Mon Sep 24 18:18:04 EDT 2007

Problems occurred when invoking code from plug-in:
"org.eclipse.ui.views".

 

org.eclipse.jface.text.Assert$AssertionFailedException: Assertion
failed:

at org.eclipse.jface.text.Assert.isTrue(Unknown Source)

at org.eclipse.jface.text.Assert.isTrue(Unknown Source)

at org.eclipse.jface.text.rules.FastPartitioner.connect(Unknown Source)

at org.eclipse.jface.text.rules.FastPartitioner.connect(Unknown Source)

at org.drools.eclipse.editors.DRLDocumentProvider.getDocument(Unknown
Source)

at
org.eclipse.ui.texteditor.TextSelectionNavigationLocation.getDocument(Un
known Source)

at
org.eclipse.ui.texteditor.TextSelectionNavigationLocation.(Unknown
Source)

at
org.eclipse.ui.texteditor.AbstractTextEditor.createNavigationLocation(Un
known Source)

at org.eclipse.ui.internal.NavigationHistory.addEntry(Unknown Source)

at org.eclipse.ui.internal.NavigationHistory.markLocation(Unknown
Source)

at
org.eclipse.ui.texteditor.AbstractTextEditor.markInNavigationHistory(Unk
nown Source)

at org.eclipse.ui.texteditor.AbstractTextEditor.selectAndReveal(Unknown
Source)

at org.eclipse.ui.texteditor.AbstractTextEditor.selectAndReveal(Unknown
Source)

at
org.drools.eclipse.editors.outline.RuleContentOutlinePage$1.selectionCha
nged(Unknown Source)

at org.eclipse.ui.views.contentoutline.ContentOutlinePage$1.run(Unknown
Source)

at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)

at org.eclipse.core.runtime.Platform.run(Unknown Source)

at
org.eclipse.ui.views.contentoutline.ContentOutlinePage.fireSelectionChan
ged(Unknown Source)

at
org.eclipse.ui.views.contentoutline.ContentOutlinePage.selectionChanged(
Unknown Source)

at org.eclipse.jface.viewers.Viewer$2.run(Unknown Source)

at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)

at org.eclipse.core.runtime.Platform.run(Unknown Source)

at org.eclipse.ui.internal.JFaceUtil$1.run(Unknown Source)

at org.eclipse.jface.util.SafeRunnable.run(Unknown Source)

at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Unknown Source)

at org.eclipse.jface.viewers.StructuredViewer.updateSelection(Unknown
Source)

at org.eclipse.jface.viewers.StructuredViewer.handleSelect(Unknown
Source)

at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(Unknown
Source)

at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(Unknown
Source)

at org.eclipse.jface.util.OpenStrategy.access$3(Unknown Source)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(Unknown Source)

at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)

at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)

at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)

at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)

at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown
Source)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)

at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source)

at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown
Source)

at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
ion(Unknown Source)

at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unkno
wn Source)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(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 org.eclipse.core.launcher.Main.invokeFramework(Unknown Source)

at org.eclipse.core.launcher.Main.basicRun(Unknown Source)

at org.eclipse.core.launcher.Main.run(Unknown Source)

at org.eclipse.core.launcher.Main.main(Unknown Source)

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any disseminat

[rules-users] globals in rule flow's Split

2007-09-19 Thread Manukyan, Sergey

Folks,

 

When using globals in rule flow's Split I ran into problem that changes
to the global cannot be recognized by the split and it continues to
route the same destination.

 

F.e. I have a Split with constrains. And a global TestValid object that
has one boolean attribute - hasErrors

 

global testValid

 

Split : 

-  eval(!testValid.isHasErrors())  // to No Errors action

-  eval(testValid.isHasErrors())   // to END

 

 

 

So it ends up with always looping to the No Errors Action, even though
Make Errors sets global :  testValid.setHasErrors(true)

 

In my previous example the problem was that I was not using Shadow
Proxy. But now I am and would like to use global in the split condition,

 

Please advice if it is an expected behavior and I shouldn't be using
global in split conditions...

 

Thanks,

 

-Sergey



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Property Change Listener

2007-09-19 Thread Manukyan, Sergey

Folks,

 

In 4.0.1. When using Property Change Listener, the rule gets executed
twice when the property gets changed in the RHS of the rule, even though
I have defined no-loop in the rule

 

Is this an expected behavior? I was thinking that it should behave
similarly to the change to the object with no property change listener
with consecutive "update($o)". Which actually together with no-loop end
up in a single execution of the rule.

 

Thanks,

 

-Sergey



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] rule flow --> possible bug?

2007-09-17 Thread Manukyan, Sergey

Thank you for explanations, it did clear up the picture for me, but I
still didn't resolve the problem that I am having. Looks like problem
happens when attributes are involved in a Split. Possible bug?

 

So here is an example:

 

 

 

I am inserting initially a simple TestValid class that has boolean
hasError attribute = false;

 

insert(new TestValid(false));

 

INIT ruleflow-group just prints out the facts :

 

rule "INIT"

  ruleflow-group "INIT" no-loop

  when

$v : TestValid()

  then 

System.out.println("INIT : HAS ERROR ? : " +
$v.isHasErrors());

end

 

The "Make Error" ruleflow-group is activated when hasError attribute is
flase in estValid fact :

 

rule "Make Error"

  ruleflow-group "Make Error" no-loop

  when

$v : TestValid(hasErrors == false)

  then 

System.out.println("Make Error!!!");

$v.setHasErrors(true);

retract($v);

insert($v);

end

 

 

The "Has Error?" XOR Split has the following constraints:

- TestValid(hasErrors == false)  // goes to "No Errors"
Action

- TestValid(hasErrors == true)  // goes to END

 

 

The Actions Just print out information :

- System.out.println("Init Action");

- System.out.println("No Errors Action");

 

 

When running example I was expecting to see the following events as seen
on console:

 



Init Action

INIT : HAS ERROR ? : false

No Errors Action

Make Error!!!

Init Action

INIT : HAS ERROR ? : true



 

 

Instead that is what I see:

 



Init Action

INIT : HAS ERROR ? : false

No Errors Action

Make Error!!!

Init Action

INIT : HAS ERROR ? : true

No Errors Action

Init Action

No Errors Action

Init Action

...



 

 

Now is this again expected behavior or a possible bug?

 

If it is expected then how can I make decisions based on attribute of a
fact in a Split...

 

Thank you,

 

-Sergey

 

 

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Friday, September 14, 2007 8:37 PM
To: Rules Users List
Subject: Re: [rules-users] rule flow

 

true, damn :)

I did think of an attribute to "re-activate" any rules that are true,
but not currently on the agenda - but not sure about it yet, would have
to think on the negative effects some more.

Mark
Kris Verlaenen wrote: 

> use the rule attribute "lock-on-active" to stop this behaviour, it
stops a rule re-activating while the ruleflowgroup is active

Well, this won't work for the same reason no-loop isn't working: if you
use lock-on-active, it will make sure that the rule is not reactivated,
so the execution of the node will end after one increment.  But the
lock-on-active makes sure that no activation is ever created, so, in the
context of looping in ruleflow, even if the RuleSet node is activated
again afterwards, it will never increment the integer again (as you
prevented reactivation of the rule using lock-on-active), resulting in
an endless loop in this case.  Currently, as far as I know, the only
thing that works is manually deactivating the ruleflow-group.

 

Kris

 







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

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] rule flow

2007-09-14 Thread Manukyan, Sergey

Folks,

 

Using 4.0.1. Trying to do use rule flow to manage the execution of
rules. As I understood in Split node with type XOR I can set conditions
for each destination that are executed against facts in working memory. 

 

Let's consider I have a rule that executes every time it finds Integer
object in memory and increments it.

 

rule "Increment"

  ruleflow-group "Up"

  when

$i : Integer(intValue < 10)

  then 

System.out.println("INTEGER : " + $i);

retract($i);

insert(new Integer($i.intValue() + 1));

end

 

Now, I have the following rule flow in place: 

 

 

 

 

The Split to Up arrow has constraint : Integer(intValue < 5)

 

And initially I am inserting this fact : insert (new Integer(0))

 

Now my understanding is that It should execute rule "Increment"  5
times But instead it does it 10 times...

 

Is that a normal behavior? Why cannot Split understand that only when
there is an Integer(intValue < 5) only then execute rule with
ruleflow-group "Up"

 

Thanks...

 

-Sergey

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] broken link:

2007-09-07 Thread Manukyan, Sergey

On page: http://www.jboss.com/docs/index
There is a broken link :
http://labs.jboss.com/portal/jbossrules/docs/index.html
Forwards to other broken link:
http://labs.jboss.com/jbossrules/docs/index.html



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] in 4.0.1 "this" required in nested accessors?

2007-09-04 Thread Manukyan, Sergey
Sorry... Yes it is a typo

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Tuesday, September 04, 2007 3:24 PM
To: Rules Users List
Subject: Re: [rules-users] in 4.0.1 "this" required in nested accessors?

 


   Is the single '=' a typo?

2007/9/4, Manukyan, Sergey <[EMAIL PROTECTED]>:

Also,

Just found,

In nested acessors the order has meaning?

f.e.

TestSupplier(this.testBusiness.statusActive == oldStatus)  --> OK!
TestSupplier(oldStatus = this.testBusiness.statusActive )  --> FAILED TO
COMPILE!


Bug ???

-Sergey





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: Tuesday, September 04, 2007 2:44 PM
To: Rules Users List
Subject: [rules-users] in 4.0.1 "this" required in nested accessors?


Edson,

Didn't receive reply on my previous post.

Please take a look, below is the copy of the post:

---

I started using 4.0.1,

Regarding nested accessors, looks like they work, but they require to
put "this" at the beginning.

So rule

when
TestSupplier(testBusiness.statusActive == true)  --> FAILS

When
TestSupplier(this.testBusiness.statusActive == true)  --> OK!

It fails with the following exception:

org.drools.rule.InvalidRulePackage: Unable to determine the used
declarations : [Rule name=MY_RULE, agendaGroup=MAIN, salience=10, 
no-loop=false]

at org.drools.rule.Package.checkValidity(Package.java:419)


Please confirm this to be a bug and then I will open JIRA for this, or
please let me know the reason behind this functionality, 

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer.

___ 
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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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


RE: [rules-users] in 4.0.1 "this" required in nested accessors?

2007-09-04 Thread Manukyan, Sergey
Also,

Just found,

In nested acessors the order has meaning?

f.e.

TestSupplier(this.testBusiness.statusActive == oldStatus)  --> OK!
TestSupplier(oldStatus = this.testBusiness.statusActive)  --> FAILED TO
COMPILE!


Bug ???

-Sergey





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: Tuesday, September 04, 2007 2:44 PM
To: Rules Users List
Subject: [rules-users] in 4.0.1 "this" required in nested accessors?


Edson,

Didn't receive reply on my previous post.

Please take a look, below is the copy of the post:

---

I started using 4.0.1,

Regarding nested accessors, looks like they work, but they require to
put "this" at the beginning.

So rule

when
TestSupplier(testBusiness.statusActive == true)  --> FAILS

When
TestSupplier(this.testBusiness.statusActive == true)  --> OK!

It fails with the following exception:

org.drools.rule.InvalidRulePackage: Unable to determine the used
declarations : [Rule name=MY_RULE, agendaGroup=MAIN, salience=10,
no-loop=false]

at org.drools.rule.Package.checkValidity(Package.java:419)


Please confirm this to be a bug and then I will open JIRA for this, or
please let me know the reason behind this functionality,

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

___
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] in 4.0.1 "this" required in nested accessors?

2007-09-04 Thread Manukyan, Sergey

Edson,

Didn't receive reply on my previous post.

Please take a look, below is the copy of the post:

---

I started using 4.0.1,

Regarding nested accessors, looks like they work, but they require to
put "this" at the beginning.

So rule

when
TestSupplier(testBusiness.statusActive == true)  --> FAILS

When
TestSupplier(this.testBusiness.statusActive == true)  --> OK!

It fails with the following exception:

org.drools.rule.InvalidRulePackage: Unable to determine the used
declarations : [Rule name=MY_RULE, agendaGroup=MAIN, salience=10,
no-loop=false]

at org.drools.rule.Package.checkValidity(Package.java:419)


Please confirm this to be a bug and then I will open JIRA for this, or
please let me know the reason behind this functionality,

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


[rules-users] broken link

2007-09-04 Thread Manukyan, Sergey

On a page :

 

http://labs.jboss.com/projects/download

 

There is a broken link pointing to :

 

http://labs.jboss.com/jbossrules/downloads

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] org.drools.RuntimeDroolsException

2007-09-04 Thread Manukyan, Sergey

Folks,

Using 4.0.1 with stateful session. Getting this
org.drools.RuntimeDroolsException when inserting an object. Any idea
why?

Thanks,

-Sergey

---

org.drools.RuntimeDroolsException 

Exception executing predicate 
[EMAIL PROTECTED] 
Stack Trace: 
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:1
97) 
org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:122) 
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(Compo
siteObjectSinkAdapter.java:317) 
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:160) 
org.drools.reteoo.Rete.assertObject(Rete.java:176) 
org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:196) 
org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:
70) 
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.jav
a:854) 
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.jav
a:826) 
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.jav
a:627)

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


[rules-users] in 4.0.1 "this" required in nested accessors?

2007-08-31 Thread Manukyan, Sergey

Folks,

I Started using 4.0.1,

Regarding nested accessors, looks like they work, but they require to
put "this" at the beginning.

So rule

when
TestSupplier(testBusiness.statusActive == true)  --> FAILS

When
TestSupplier(this.testBusiness.statusActive == true)  --> OK!

It fails with the following exception:

org.drools.rule.InvalidRulePackage: Unable to determine the used
declarations : [Rule name=HQ To Active From Probation. Mfg On Probation
Exists., agendaGroup=MAIN, salience=10, no-loop=false]

at org.drools.rule.Package.checkValidity(Package.java:419)


Please confirm this to be a bug and then I will open JIRA for this, or
please let me know the reason behind this functionality,

Thanks,

-Sergey


**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] logical chain

2007-08-30 Thread Manukyan, Sergey
Cool! Thanks...

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Thursday, August 30, 2007 3:27 PM
To: Rules Users List
Subject: Re: [rules-users] logical chain

 


   Yes, this was a bug related to prefixed AND/OR CEs:

http://jira.jboss.com/jira/browse/JBRULES-1149

   The good news is that it is fixed and was included in the 4.0.1
released that was just uploaded to the site:

http://labs.jboss.com/auth/drools/downloads.html

   Please, upgrade to 4.0.1 and you should see no more problems. And if
you see, please let us know... :) 

   BTW, the 4.0.1 anounce shall come soon, but the artifacts are already
there.

   []s
   Edson

2007/8/30, Manukyan, Sergey <[EMAIL PROTECTED] >:

 Folks,

 

Using 4.0.GA 

 

I need to have the following logical chain:

 

Having facts F1(), F2(), F3(), F4()

 

I need a rule to be fired when (F1() and F2()) or (F3() and F4())
condition is true, so made a rule:

 

when 

(or 

(and  F1()

F2() ) 

(and  F3()

F4() ) )

then

...

 

 

But it doesn't execute correctly. F.e. it fires when F1() and F4() are
inserted although F2() and F4() are not!

 

Please advice is it my incorrect syntax, or a bug?

 

Thanks,

 

-Sergey

 

 

 

 

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.


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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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] logical chain

2007-08-30 Thread Manukyan, Sergey

 Folks,

 

Using 4.0.GA

 

I need to have the following logical chain:

 

Having facts F1(), F2(), F3(), F4()

 

I need a rule to be fired when (F1() and F2()) or (F3() and F4())
condition is true, so made a rule:

 

when 

(or 

(and  F1()

F2() ) 

(and  F3()

F4() ) )

then

...

 

 

But it doesn't execute correctly. F.e. it fires when F1() and F4() are
inserted although F2() and F4() are not!

 

Please advice is it my incorrect syntax, or a bug?

 

Thanks,

 

-Sergey

 

 

 

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] release 4.0.1

2007-08-30 Thread Manukyan, Sergey

Folk,

 

How can I get a nightly build of 4.0.1...? Or are you still on track to
make a release this week?

 

Thanks,

 

-Sergey

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] collect return random order

2007-08-27 Thread Manukyan, Sergey
Yang,

 

I am was suggesting to have regulation to impose particular
order(although it might be a good additional feature as well).  Would
like to just to keep the order as it was in collect list. Especially if
we are returning List that means it is an ordered collection by
definition. It looks like somewhere in the internals of collect there is
a HashSet, sitead of ArrayList used that changes the order of the items
in the incoming list, and that is what I don't agree with... I think it
must be a bug,

 

-Sergey

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yang Song
Sent: Monday, August 27, 2007 11:28 AM
To: Rules Users List
Subject: Re: [rules-users] collect return random order

 

I saw someone is requesting LIMIT, here I saw Manukyan is asking for
ORDER BY, and also Mark is talking the FROM. Looks like the rule LHS
part would become more and more like SQL SELECT statement. :)

 

I think it is the right way. Some Stream Database also extends the SQL
to do event aggregation and correlation. The same can be applied to Rule
Engine too.

 

Yang

 

On 8/27/07, Manukyan, Sergey <[EMAIL PROTECTED]> wrote: 

Folks,

 

When using collect on List of items with some filter (criteria), I need
to have result in the same order as it was received: 

 

F.e. I have a list of suppliers : 

 

List()  :   Supplier("FIRST", Status.ACTIVE),  Supplier("SECOND",
Status.INACTIVE), Supplier("THIRD", Status.INACTIVE )

 

And I need to find first INACTIVE supplier, so it must be SECOND
supplier.

 

So doing the following : 

 

 

When 

$l : List()  // list of suppliers

$inactive_supp : ArrayList() from collect Supplier(status ==
Status.INACTIVE) from $l 

Then

System.out.println($l); // prints FIRST, SECOND, THIRD

System.out.println($inactive_supp);  // prints THIRD, SECOND  
Instead of SECOND , THIRD 

 

 

So I am getting THIRD supplier instead of SECOND as the result..

 

Please advise if it is a bug .., or there is another way of doing
that...

 

Thanks,

 

-Sergey

 

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.


___
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] collect return random order

2007-08-27 Thread Manukyan, Sergey

Folks,

 

When using collect on List of items with some filter (criteria), I need
to have result in the same order as it was received:

 

F.e. I have a list of suppliers : 

 

List()  :   Supplier("FIRST", Status.ACTIVE),  Supplier("SECOND",
Status.INACTIVE), Supplier("THIRD", Status.INACTIVE)

 

And I need to find first INACTIVE supplier, so it must be SECOND
supplier.

 

So doing the following : 

 

 

When 

$l : List()  // list of suppliers

$inactive_supp : ArrayList() from collect Supplier(status ==
Status.INACTIVE) from $l

Then

System.out.println($l); // prints FIRST, SECOND, THIRD

System.out.println($inactive_supp);  // prints THIRD, SECOND  
Instead of SECOND , THIRD

 

 

So I am getting THIRD supplier instead of SECOND as the result..

 

Please advise if it is a bug .., or there is another way of doing
that...

 

Thanks,

 

-Sergey

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] exists...

2007-08-27 Thread Manukyan, Sergey
Thanks Edson,

 

Just created JIRA :   JBRULES-1136
<http://jira.jboss.com/jira/browse/JBRULES-1136> 

 

Thomas, I did use StatefulSession...

 

-Sergey

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Sunday, August 26, 2007 7:35 AM
To: Rules Users List
Subject: Re: [rules-users] exists...

 


Manukyan

If it is not firing, it is a bug. Although we fixed several related
bugs for 4.0.1 that shall be out soon. 
If you can provide a test case and open a Jira, I can do some
further debugging. Essentially, the difference between the rules is that
expression in the first rule is being converted into an MVEL expression,
because of the nested accessors, while the second is a pure drools
expression. 

[]s
Edson

2007/8/25, Manukyan, Sergey <[EMAIL PROTECTED]>:

Folks,

 

Using 4.0 GA.

 

Need to have a rule that executes when there exists a Supplier with
business status == active. I am inserting Supplier in working memory.

 

I did that :

 

rule #1

when

exists( Supplier( businessStatus.status.isActive == true ) )

then

System.out.println("FOUND");

End

 

 

But it doesn't work

 

Although other rules like if there is supplier with name = "SOME NAME" -
they work :

 

rule #2

when

exists( Supplier( name == "SOME NAME" ) )

then

System.out.println("FOUND");

End

 

 

 

Any ideas how to make rule #1 work ?

 

Thanks,

 

Sergey

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.


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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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] exists...

2007-08-25 Thread Manukyan, Sergey

Folks,

 

Using 4.0 GA.

 

Need to have a rule that executes when there exists a Supplier with
business status == active. I am inserting Supplier in working memory.

 

I did that :

 

rule #1

when

exists( Supplier( businessStatus.status.isActive == true ) )

then

System.out.println("FOUND");

End

 

 

But it doesn't work

 

Although other rules like if there is supplier with name = "SOME NAME" -
they work :

 

rule #2

when

exists( Supplier( name == "SOME NAME" ) )

then

System.out.println("FOUND");

End

 

 

 

Any ideas how to make rule #1 work ?

 

Thanks,

 

Sergey

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Trouble upgrading to Drool 4.0

2007-08-24 Thread Manukyan, Sergey

Edson,

 

Also one more wrong link is here :

 

http://labs.jboss.com/jbossrules/docs/index.html

 

Try the documentation link -> gives 404 - Not found. error on the top
and shows Drools Downloads links below.

 

It is trying to access http://labs.jboss.com/drools/docs/index.html
page...

 

-Sergey

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Thursday, August 23, 2007 8:19 PM
To: Rules Users List
Subject: Re: [rules-users] Trouble upgrading to Drool 4.0

 


4.0GA is the final version. MR3 was an old milestone release,
meaning, it was not feature complete and there were some changes between
it and final version.
What site were you looking at? Please let us know because we need to
take it down... the correct one is this: 

http://labs.jboss.com/drools/downloads.html

[]s
Edson

2007/8/23, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

Thanks Edson,

I am more like migrating from 3.06 to 4.0. What's the different between
4.0
GA and MR3, and where could I find the download for 40 GA? I couldn't
find
any link from the website.


Best Regards,
Tim Nguyen




 "Edson Tirelli"
 <[EMAIL PROTECTED]
 >
To 
 Sent by:  "Rules Users List"
 rules-users-bounc 
 [EMAIL PROTECTED]
cc
 g
 
Subject
   Re: [rules-users] Trouble
upgrading 
 08/23/2007 02:01  to Drool 4.0
 PM


 Please respond to
 Rules Users List
 <[EMAIL PROTECTED]
   s.jboss.org>







 If you are upgrading, you should be upgrading to 4.0GA, not MR3.
 The error is because you need to add mvel jar to your classpath.

 []s
 Edson 


2007/8/23, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
  Hi,

  I have been using JBoss Drool 3.06 for a few months, and now I want to
  upgrade it to 4.0 to take advantage of some new features. So I
downloaded
  the JBoss Rules 4.0.0.MR3 Binaries, then drop 4 core drool jar files
to
  my
  project lib 
  drools-core.jar
  drools-compiler.jar
  drools-jsr94.jar
  drools-decisiontables.jar

  Then I rebuilt my project, changed a few Drool java code to adapt with
  4.0,
  then Run. I got the following error message: 

  java.lang.NoClassDefFoundError:
  org/mvel/intergration/VaribaleResolverFactory.

  Could anyone please let me know if I am mising anything? Thank you!
  PS: My Java drool was working fine with 3.0.6 


  Tim

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



--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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 mailing list
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer 
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Trouble upgrading to Drool 4.0

2007-08-24 Thread Manukyan, Sergey

Edson,

 

Wrong link to documentation pointing to MR3 instead of GA is on this
page :

 

http://www.jboss.com/docs/index

 

Stumbled on the same issue before as well..

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Thursday, August 23, 2007 8:19 PM
To: Rules Users List
Subject: Re: [rules-users] Trouble upgrading to Drool 4.0

 


4.0GA is the final version. MR3 was an old milestone release,
meaning, it was not feature complete and there were some changes between
it and final version.
What site were you looking at? Please let us know because we need to
take it down... the correct one is this: 

http://labs.jboss.com/drools/downloads.html

[]s
Edson

2007/8/23, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

Thanks Edson,

I am more like migrating from 3.06 to 4.0. What's the different between
4.0
GA and MR3, and where could I find the download for 40 GA? I couldn't
find
any link from the website.


Best Regards,
Tim Nguyen




 "Edson Tirelli"
 <[EMAIL PROTECTED]
 >
To 
 Sent by:  "Rules Users List"
 rules-users-bounc 
 [EMAIL PROTECTED]
cc
 g
 
Subject
   Re: [rules-users] Trouble
upgrading 
 08/23/2007 02:01  to Drool 4.0
 PM


 Please respond to
 Rules Users List
 <[EMAIL PROTECTED]
   s.jboss.org>







 If you are upgrading, you should be upgrading to 4.0GA, not MR3.
 The error is because you need to add mvel jar to your classpath.

 []s
 Edson 


2007/8/23, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
  Hi,

  I have been using JBoss Drool 3.06 for a few months, and now I want to
  upgrade it to 4.0 to take advantage of some new features. So I
downloaded
  the JBoss Rules 4.0.0.MR3 Binaries, then drop 4 core drool jar files
to
  my
  project lib 
  drools-core.jar
  drools-compiler.jar
  drools-jsr94.jar
  drools-decisiontables.jar

  Then I rebuilt my project, changed a few Drool java code to adapt with
  4.0,
  then Run. I got the following error message: 

  java.lang.NoClassDefFoundError:
  org/mvel/intergration/VaribaleResolverFactory.

  Could anyone please let me know if I am mising anything? Thank you!
  PS: My Java drool was working fine with 3.0.6 


  Tim

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



--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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 mailing list
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer 
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] bug or feature not yet implemented

2007-08-10 Thread Manukyan, Sergey
Thank you Edson,

 

I am not a developer of drools, so I appreciate your sharing of design
decisions here.

 

I still wish the "field constraint" be a field constraint no matter how
this field is referenced, be it by name or by variable that references
this field, otherwise it is more like "field name constraint"

 

So I wish I could do:

 

Person( 

$a : age,

$minAge : 30,

$maxAge : 40,

$a > $minAge && < $maxAge)

 

The introduction of local variable can be helpful when field names are
complex and long (that is the case I have now), and need to be used more
then once inside of expression. Also using eval involves performance
penalty, so I would like to avoid it wherever possible,

 

Just my 2 cents...

 

-Sergey

 

 

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Friday, August 10, 2007 3:17 PM
To: Rules Users List
Subject: Re: [rules-users] bug or feature not yet implemented

 


   Sergey,

   Well, a "field constraint" must always involve a field. The decision
to have it on the left side is to simplify syntax. For instance, if you
want to write something like: "age between 30 and 40", you can do: 

Person( age > 30 && < 40 )

So you declare the field only once and can have as many expressions
applied over it as you want, using restriction connectives (&& and ||).

Now, if your expression does not involve a field, then it is not a
"field constraint". It may be an "inline-eval" (previously called
predicate expression) for instance. And in this case, you use the "eval"
keyword as showed in my previous example. 
Unfortunatelly, to avoid language ambiguities, we can't support
arbitrary expressions without a markup keyword, and "eval" was the
chosen keyword.

[]s
Edson

2007/8/10, Manukyan, Sergey <[EMAIL PROTECTED]>:

Thanks Edson for workaround,

 

IMHO that looks like a limitation to me, is there a particular reason
why left side should always be a field?

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Friday, August 10, 2007 11:58 AM
To: Rules Users List
Subject: Re: [rules-users] bug or feature not yet implemented

 


   Sergey,

   That is how it is supposed to work. A field constraint in Drools
always has a field at its left side. If you want arbitrary expression,
just embed it in an inline eval:

S : Supplier( 
$sts  : supplierBusinessStatus.businessStatus,
$csts :
corporateSupplier.supplierBusinessStatus.businessStatus,
eval ( $sts != $csts )  
) 

   Although, for this specific case, it would be better (more
performatic) to simply write:

S : Supplier(
$sts  : supplierBusinessStatus.businessStatus,
    $csts :
corporateSupplier.supplierBusinessStatus.businessStatus != $sts
)

[]s
Edson

2007/8/10, Manukyan, Sergey <[EMAIL PROTECTED] >:


Folks,

I found that drools 4.0GA doesn't recognize variables in the left side
of operator expression

Like this produces error:


When
S : Supplier(
$sts  : supplierBusinessStatus.businessStatus ,
$csts :
corporateSupplier.supplierBusinessStatus.businessStatus,
$sts != $csts
)
Then
...



It tries to treat the $sts variable as a field of Supplier, instead 
understanding that it is a variable declared earlier,

Please advise,

Thanks,

-Sergey




**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer. 

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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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


RE: [rules-users] bug or feature not yet implemented

2007-08-10 Thread Manukyan, Sergey
Thanks Edson for workaround,

 

IMHO that looks like a limitation to me, is there a particular reason
why left side should always be a field?

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Friday, August 10, 2007 11:58 AM
To: Rules Users List
Subject: Re: [rules-users] bug or feature not yet implemented

 


   Sergey,

   That is how it is supposed to work. A field constraint in Drools
always has a field at its left side. If you want arbitrary expression,
just embed it in an inline eval:

S : Supplier( 
$sts  : supplierBusinessStatus.businessStatus,
$csts :
corporateSupplier.supplierBusinessStatus.businessStatus,
eval ( $sts != $csts )  
) 

   Although, for this specific case, it would be better (more
performatic) to simply write:

S : Supplier(
$sts  : supplierBusinessStatus.businessStatus,
$csts :
corporateSupplier.supplierBusinessStatus.businessStatus != $sts
)

[]s
Edson

2007/8/10, Manukyan, Sergey <[EMAIL PROTECTED]>:


Folks,

I found that drools 4.0GA doesn't recognize variables in the left side
of operator expression

Like this produces error:


When
S : Supplier(
$sts  : supplierBusinessStatus.businessStatus ,
$csts :
corporateSupplier.supplierBusinessStatus.businessStatus,
$sts != $csts
)
Then
...



It tries to treat the $sts variable as a field of Supplier, instead 
understanding that it is a variable declared earlier,

Please advise,

Thanks,

-Sergey




**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer. 

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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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] bug or feature not yet implemented

2007-08-10 Thread Manukyan, Sergey

Folks,

I found that drools 4.0GA doesn't recognize variables in the left side
of operator expression

Like this produces error:


When
S : Supplier( 
$sts  : supplierBusinessStatus.businessStatus,
$csts :
corporateSupplier.supplierBusinessStatus.businessStatus,
$sts != $csts
)
Then
...



It tries to treat the $sts variable as a field of Supplier, instead
understanding that it is a variable declared earlier,

Please advise,

Thanks,

-Sergey




**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] bug in "accumulate"

2007-08-09 Thread Manukyan, Sergey
Actually there is a $h in the code... sorry for the omission in the
email.

 

Just checked it again today - it gives me same result as yesterday :

 

rule ...

when 

o : Date from accumulate (  

Parent( $h : height  ) ,

init(;),

action(;),

reverse(),

result( $h )

)

then ...

end

 

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Wednesday, August 08, 2007 4:51 PM
To: Rules Users List
Subject: Re: [rules-users] bug in "accumulate"

 

you didn't have a dollar on the field binding:
Parent( h : height  ) 

$ is optional, but you must use the same in all places.

Mark
Manukyan, Sergey wrote: 

Folks,

 

Using 4.0. Think I found a bug in accumulate. The variables defined
inside  cannot be recognized inside of other parts of
accumulate (action, result)

 

f.e.

 

rule ...

when 

o : Date from accumulate (  

Parent( h : height  ) ,

init(;),

action(;),

reverse(),

result( $h )

)

then ...

end

 

 

Produces : $h cannot be resolved

 

 

Stack trace:

 

 

  at org.drools.rule.Package.checkValidity(Package.java:408)

  at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:288)

  at
com.lear.rules.RuleBaseFacade.getRuleBase(RuleBaseFacade.java:46)

 

 

 

-Sergey

 

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

 







 
___
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] bug in "accumulate"

2007-08-08 Thread Manukyan, Sergey

Folks,

 

Using 4.0. Think I found a bug in accumulate. The variables defined
inside  cannot be recognized inside of other parts of
accumulate (action, result)

 

f.e.

 

rule ...

when 

o : Date from accumulate (  

Parent( h : height  ) ,

init(;),

action(;),

reverse(),

result( $h )

)

then ...

end

 

 

Produces : $h cannot be resolved

 

 

Stack trace:

 

 

  at org.drools.rule.Package.checkValidity(Package.java:408)

  at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:288)

  at
com.lear.rules.RuleBaseFacade.getRuleBase(RuleBaseFacade.java:46)

 

 

 

-Sergey

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] join array and object

2007-08-08 Thread Manukyan, Sergey

Folks,

 

I have a Parent and Children, but need to do aggregate function on
collection of Parent WITH Children, to find the minimum expiration date
on them, how can I create in LHS expression a collection of Parent WITH
Children?

 

Like:

 

rule ...

when 

p : Parent()

c : Date() from accumulate(  Child( d: date)
from ($p.children  and  $p), min($d)   ) // ?? what can I use to
join collection of $p.children with $p to get another collection with
them all ??

then



end

 

 

 

Thanks!

 

-Sergey

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] on update

2007-08-02 Thread Manukyan, Sergey

Folks,

I need a rule that will track changes to cost amount and do something
with his old value.

Like that :

rule "on updated cost write to archive old value"
when
cost : Cost()
old_cost : Cost(amount != cost.amount)  // how can I
specify the OLD cost object before it was updated???
then
... write to archive $old_cost.amount
end


Is it possible at all?

Something like in database system triggers, when you have "on update"
and then you have OLD value and NEW values available...?

Thanks a lot!

-Sergey



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


[rules-users] "contains..."

2007-07-25 Thread Manukyan, Sergey

Folks,

 

I am using MR3, have a situation when Parent has multiple Children, and
there is a rule that needs to be fired when parent has a child with
certain attribute (active == true)

 

Will need to do something like that :

 

rule

  when

 $p : Parent( active == false,  children contains Child() [ active
== true  ] )

  then

 ... register error: inactive parent cannot have active
child.

end

 

 

Please advice on correct syntaxes how to do that. Also please keep in
mind, I don't want to insert children in facts memory.

 

Thanks,

 

-Sergey

 

 

 

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] disable shadowing facts in MR3

2007-07-18 Thread Manukyan, Sergey

Folks,

 

I need to disable shadowing for the facts, trying to use
"drools.shadowProxyExcludes" property like this:

 

---

final PackageBuilder builder = new PackageBuilder();

 

builder.addPackageFromDrl( new InputStreamReader(
DroolsTest2.class.getResourceAsStream( "/rules.drl" ) ) );

 

Properties prop = new Properties();

 

prop.setProperty("drools.shadowProxyExcludes",
"mypackage.MyClass");



RuleBaseConfiguration ruleBaseConfig = new
RuleBaseConfiguration(prop);



final RuleBase ruleBase =
RuleBaseFactory.newRuleBase(RuleBase.RETEOO, ruleBaseConfig);

 

ruleBase.addPackage( builder.getPackage() );

 

final StatefulSession session =
ruleBase.newStatefulSession();

 

session.insert(before);

 

session.fireAllRules(new MyClass());

 

---

 

Doesn't have any effect, my class gets still shadowed to become :
mypackage.MyClassShadowProxy

 

How can I disable shadowing???

 

Thanks,

 

-Sergey



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] "ShadowProxy"

2007-07-17 Thread Manukyan, Sergey
Edson,

 

The problem is for example:  I have a classes that I use with
persistance broker (OJB)

 

class Parent {

 

private Child child;

 

public Child getChild() {

 
OJBBeanManager.retrieveReferenceIfNull(this,"child");

return child;

}

}

 

He OJB broker then does this.getClass().getName() - to get name of class
requesting update of it's reference and depending on the name it
requests a proper datasource to get broker to perform transaction.

 

The name should be "Parent", but it gets "ParentShadowProxy", and cannot
find it in datasource configuration.

 

Can I disable shadowing somehow? Or what shall I do...?

 

-Sergey

 

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Tuesday, July 17, 2007 12:20 PM
To: Rules Users List
Subject: Re: [rules-users] "ShadowProxy"

 


   Sergey,

   ShadowProxy classes are not supposed to be visible outside the
engine. What problem are you facing?

   []s
   Edson

2007/7/17, Manukyan, Sergey < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >:

Folks,

 

I am using MR3, my classes are being shadowed and I have something like
"ShadowProxy" ... I need to avoid that as my logic depends
on class name, so I just need to disable shadowing right?

 

How can I do that?

 

Thanks,

 

-Sergey

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.


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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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] "ShadowProxy"

2007-07-17 Thread Manukyan, Sergey

Folks,

 

I am using MR3, my classes are being shadowed and I have something like
"ShadowProxy" ... I need to avoid that as my logic depends
on class name, so I just need to disable shadowing right?

 

How can I do that?

 

Thanks,

 

-Sergey

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] "Unable to load dialect"

2007-07-17 Thread Manukyan, Sergey
Ok, just before I submit to JIRA, I want to make sure I have a "case".
So I am using MR3.

The exception is thrown when "for" cycle is used with local variable
declared inside:

rule ""
when
...
then
for(int i = 1;;){break;}
end

it worked fine when variable is defined outside of cycle:

rule ""
when
...
then
int i = 0;
for(i = 1;;){break;}
end

Mark, please confirm that it is an issue and needs to be submitted to
JIRA,

Thanks,

-Sergey





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Monday, July 16, 2007 4:58 PM
To: Rules Users List
Subject: Re: [rules-users] "Unable to load dialect"

no idea, please make a self contained test showing your error and upload

to jira.

Mark
Manukyan, Sergey wrote:
> Ok, got it fixed by including the "core-3.2.3.v_686_R32x.jar" file,
also
> included all other jar files in the same lib folder.
>
> Now getting other exception:
>
> [7/16/07 15:03:19:026 EDT] 002c SystemErr R
> java.lang.NullPointerException
>   at
>
org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaCo
> nsequenceBuilder.java:54)
>   at
> org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:67)
>   at
> org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:390)
>   at
> org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:264)
>   at
>
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java
> :147)
>
>
> Help! ;-)
>
> -Sergey
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
> Sergey
> Sent: Monday, July 16, 2007 2:03 PM
> To: Rules Users List
> Subject: [rules-users] "Unable to load dialect"
>
>
> Folks,
>
> Just upgraded to MR3 from MR2 and started getting this exception:
>
>
> [7/16/07 13:30:23:772 EDT] 0025 SystemErr R
> org.drools.RuntimeDroolsException: Unable to load dialect
> 'org.drools.rule.builder.dialect.java.JavaDialect:java'
>   at
>
org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(Pac
> kageBuilderConfiguration.java:156)
>   at
> org.drools.compiler.PackageBuilder.(PackageBuilder.java:131)
>   at
> org.drools.compiler.PackageBuilder.(PackageBuilder.java:84)
>
>
>
> Any idea why?... I included all 4 jar new files and removed old
ones...
>
> Thanks,
>
> -Sergey
>
> **
> ** LEGAL DISCLAIMER **
> **
>
> This E-mail message and any attachments may contain 
> legally privileged, confidential or proprietary 
> information. If you are not the intended recipient(s),
> or the employee or agent responsible for delivery of 
> this message to the intended recipient(s), you are 
> hereby notified that any dissemination, distribution 
> or copying of this E-mail message is strictly 
> prohibited. If you have received this message in 
> error, please immediately notify the sender and 
> delete this E-mail message from your computer.
>
> ___
> 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] "Unable to load dialect"

2007-07-16 Thread Manukyan, Sergey
Ok, got it fixed by including the "core-3.2.3.v_686_R32x.jar" file, also
included all other jar files in the same lib folder.

Now getting other exception:

[7/16/07 15:03:19:026 EDT] 002c SystemErr R
java.lang.NullPointerException
at
org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaCo
nsequenceBuilder.java:54)
at
org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:67)
at
org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:390)
at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:264)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java
:147)


Help! ;-)

-Sergey




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: Monday, July 16, 2007 2:03 PM
To: Rules Users List
Subject: [rules-users] "Unable to load dialect"


Folks,

Just upgraded to MR3 from MR2 and started getting this exception:


[7/16/07 13:30:23:772 EDT] 0025 SystemErr R
org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialect:java'
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(Pac
kageBuilderConfiguration.java:156)
at
org.drools.compiler.PackageBuilder.(PackageBuilder.java:131)
at
org.drools.compiler.PackageBuilder.(PackageBuilder.java:84)



Any idea why?... I included all 4 jar new files and removed old ones...

Thanks,

-Sergey

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

___
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] "Unable to load dialect"

2007-07-16 Thread Manukyan, Sergey

Folks,

Just upgraded to MR3 from MR2 and started getting this exception:


[7/16/07 13:30:23:772 EDT] 0025 SystemErr R
org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialect:java'
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(Pac
kageBuilderConfiguration.java:156)
at
org.drools.compiler.PackageBuilder.(PackageBuilder.java:131)
at
org.drools.compiler.PackageBuilder.(PackageBuilder.java:84)



Any idea why?... I included all 4 jar new files and removed old ones...

Thanks,

-Sergey

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


RE: [rules-users] negation for matches

2007-07-13 Thread Manukyan, Sergey
Nope .. it doesn't work either

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sarika
Khamitkar
Sent: Friday, July 13, 2007 5:06 PM
To: Rules Users List
Subject: RE: [rules-users] negation for matches

 

You can try:

$s : SupplierView(suppCode not matches "\\d\\d.*")

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: Friday, July 13, 2007 4:49 PM
To: Rules Users List
Subject: [rules-users] negation for matches

 

Folks,

 

How can I negate the matches?, like for those that don't match certain
criteria do that

 

I tried something like this but it doesn't work:

 

 

rule "SupplierView: Supplier code's first two characters should be
numeric."

  when

$s : SupplierView(!(suppCode matches "\\d\\d.*"))

  then

ValidationErrorFacade.getInstance().registerError($s, new
ValidationError("Supplier code's first two characters should be
numeric."));

end



 

Thanks,

 

-Sergey

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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


[rules-users] negation for matches

2007-07-13 Thread Manukyan, Sergey

Folks,

 

How can I negate the matches?, like for those that don't match certain
criteria do that

 

I tried something like this but it doesn't work:

 

 

rule "SupplierView: Supplier code's first two characters should be
numeric."

  when

$s : SupplierView(!(suppCode matches "\\d\\d.*"))

  then

ValidationErrorFacade.getInstance().registerError($s, new
ValidationError("Supplier code's first two characters should be
numeric."));

end



 

Thanks,

 

-Sergey

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] how to create local variable

2007-07-12 Thread Manukyan, Sergey
Thank you Edson,

 

I liked the solution with matches, it is much cleaner 

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Thursday, July 12, 2007 4:19 PM
To: Rules Users List
Subject: Re: [rules-users] how to create local variable

 


It is not possible to assign the result of an arbitrary method call
to a variable right now. So, your best option is probably to do (please
note the use of inline-eval):

rule "SupplierView: Headquarter Supplier Code should end on 25 or 30."

  when

$cs : SupplierView(corporate == true, eval(
suppCode.substring(4, 6).equals( "25" ) || suppCode.substring(4,
6).equals( "30" ) ) )

  then

ValidationErrorFacade.getInstance().registerError($cs, new
ValidationError("Headquarter Supplier Code should end on 25 or 30."));

end


A more clean solution is to use "matches" operator. If your rule
states that Supplier Code must END with 25 or 30, you can do: 

rule "SupplierView: Headquarter Supplier Code should end on 25 or 30."

  when

$cs : SupplierView(corporate == true, suppCode matches
".*25" || matches ".*30" )

  then

ValidationErrorFacade.getInstance().registerError($cs, new
ValidationError("Headquarter Supplier Code should end on 25 or 30."));

end


Hope it helps.

[]s
Edson



2007/7/12, Manukyan, Sergey < [EMAIL PROTECTED]>:

Folks,

 

I have a rule where I am repeating part of it twice :
($cs.getSuppCode().substring(4, 6)), and I would like to replace it with
variable... how can I do that? The solution with "in" doesn't worl
because it is a java code needed to perform calculations for
variable.

 

Please see the rule below:

 

rule "SupplierView: Headquarter Supplier Code should end on 25 or 30."

  when

$cs : SupplierView(corporate == true)

eval($cs.getSuppCode().substring(4, 6) == "25" ||
$cs.getSuppCode().substring(4, 6) == "30") 

  then

ValidationErrorFacade.getInstance().registerError($cs, new
ValidationError("Headquarter Supplier Code should end on 25 or 30."));

end

 

 

Thanks,

 

-Sergey

 

 

 

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.


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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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] how to create local variable

2007-07-12 Thread Manukyan, Sergey

Folks,

 

I have a rule where I am repeating part of it twice :
($cs.getSuppCode().substring(4, 6)), and I would like to replace it with
variable... how can I do that? The solution with "in" doesn't worl
because it is a java code needed to perform calculations for
variable.

 

Please see the rule below:

 

rule "SupplierView: Headquarter Supplier Code should end on 25 or 30."

  when

$cs : SupplierView(corporate == true)

eval($cs.getSuppCode().substring(4, 6) == "25" ||
$cs.getSuppCode().substring(4, 6) == "30") 

  then

ValidationErrorFacade.getInstance().registerError($cs, new
ValidationError("Headquarter Supplier Code should end on 25 or 30."));

end

 

 

Thanks,

 

-Sergey

 

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] problem in rules 4.0.0.11754MR2

2007-06-08 Thread Manukyan, Sergey
Thank you Mark,

 

I added the error checking code as advised :

 

//read in the source

final Reader source = new InputStreamReader(
HelloWorldExample.class.getResourceAsStream( "HelloWorld.drl" ) );

 

final PackageBuilder builder = new PackageBuilder();

 

//this will parse and compile in one step

//NOTE: There are 2 methods here, the one argument one is for
normal DRL.

builder.addPackageFromDrl( source );

 

//get the compiled package (which is serializable)

final Package pkg = builder.getPackage();



PackageBuilderErrors pbe = builder.getErrors();

DroolsError[] de = pbe.getErrors();



for (int i = 0; i < de.length; i++) {

  System.out.println("ERROR["+i+"]:" + de[i]);

}



System.out.println("pkg.getErrorSummary() : " +
pkg.getErrorSummary());



//add the package to a rulebase (deploy the rule package).

final RuleBase ruleBase = RuleBaseFactory.newRuleBase();



ruleBase.addPackage( pkg );

 

And here is what I got:

 

pkg.getErrorSummary() : null

Exception in thread "main" java.lang.IllegalArgumentException: The rule
called Hello World is not valid. Check for compile errors reported.

  at
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363)

  at
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263)

  at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293)

  at
org.drools.examples.HelloWorldExample.readRule(HelloWorldExample.java:72
)

  at
org.drools.examples.HelloWorldExample.main(HelloWorldExample.java:21)

 

 

So basically - no errors...? Or ... am I showing errors correctly?

 

Also could you please specify what do you mean under "java is invalid".
You mean JDK level? I am using JANINO 2.5.6 compiler in JVM 1.4 .. is
this correct configuration?

 

 

Thanks again!

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Friday, June 08, 2007 10:17 AM
To: Rules Users List
Subject: Re: [rules-users] problem in rules 4.0.0.11754MR2

 

The consequence will be null if the java you used is invalid. When you
create the Package check the errors before adding it to the rule base as
you can get a lot more info. In fact thats good "best practice" always
verify that the package errors are emtpy before attempting to use the
package.

Mark
Manukyan, Sergey wrote: 

Hi,

 

I am using JBoss Rules 4.0.0.11754MR2 in an RAD 7.0 (Eclipse 3.2)
environment.

 

Cannot make it work, even examples...

 

Here is a message produces on all rules: The rule called  is not valid. Check for compile errors reported.

 

Here is a full stack trace:

 

Exception in thread "main" java.lang.IllegalArgumentException: The rule
called Hello World is not valid. Check for compile errors reported.

  at
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363)

  at
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263)

  at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293)

  at
org.drools.examples.HelloWorldExample.readRule(HelloWorldExample.java:72
)

  at
org.drools.examples.HelloWorldExample.main(HelloWorldExample.java:21)

 

 

After digging it further I found that in Rule class method isValid is
being called defiend as followes:

 

public boolean isValid() {

 

if ( this.consequence == null || !isSemanticallyValid() ) {

return false;

}

 

return true;

}

 

The debugger shows that this.consequence is null always! So rules are
always not valid.

 

Anyone saw this problem? Any idea how to resolve it?

 

Thanks a lot!

 

-Sergey

 

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

 







 
___
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] problem in rules 4.0.0.11754MR2

2007-06-08 Thread Manukyan, Sergey

Hi,

 

I am using JBoss Rules 4.0.0.11754MR2 in an RAD 7.0 (Eclipse 3.2)
environment.

 

Cannot make it work, even examples...

 

Here is a message produces on all rules: The rule called  is not valid. Check for compile errors reported.

 

Here is a full stack trace:

 

Exception in thread "main" java.lang.IllegalArgumentException: The rule
called Hello World is not valid. Check for compile errors reported.

  at
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363)

  at
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263)

  at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293)

  at
org.drools.examples.HelloWorldExample.readRule(HelloWorldExample.java:72
)

  at
org.drools.examples.HelloWorldExample.main(HelloWorldExample.java:21)

 

 

After digging it further I found that in Rule class method isValid is
being called defiend as followes:

 

public boolean isValid() {

 

if ( this.consequence == null || !isSemanticallyValid() ) {

return false;

}

 

return true;

}

 

The debugger shows that this.consequence is null always! So rules are
always not valid.

 

Anyone saw this problem? Any idea how to resolve it?

 

Thanks a lot!

 

-Sergey

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] compile errors reported

2007-06-07 Thread Manukyan, Sergey

Folks,

 

How to find out the compile errors reported? As right now all I get is
"The rule called Hello World is not valid. Check for compile errors
reported."

 

And that is it.. very frustrating...

 

Thanks for any help,

 

-Sergey



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] rule not valid...

2007-06-07 Thread Manukyan, Sergey
Rahul,

Same thing happens when I run examples HelloWorld:

---

Exception in thread "main" java.lang.IllegalArgumentException: The rule
called Hello World is not valid. Check for compile errors reported.
at
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363)
at
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263)
at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293)
at
org.drools.examples.HelloWorldExample.readRule(HelloWorldExample.java:59
)
at
org.drools.examples.HelloWorldExample.main(HelloWorldExample.java:20)


I am using JANINO compiler... How can I find out what exactly is the
problem?

Thanks,

-Sergey



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rahul Phadnis
Sent: Wednesday, June 06, 2007 4:56 PM
To: Rules Users List
Subject: Re: [rules-users] rule not valid...

You probably need a package definition at the top of
the file.

Please also import the SupplierView class in the rules
drl file.

You can also first test using the drools sample files.

-Rahul


--- "Manukyan, Sergey" <[EMAIL PROTECTED]> wrote:

> 
> Folks,
> 
>  
> 
> I am using Rules 4.0 in WebSphere 6.0 app server.
> 
>  
> 
> Made a simple test file with a simple rule :
> 
>  
> 
> rule "Test"
> 
>   when
> 
> cs : SupplierView()
> 
>   then
> 
> System.out.println(cs);
> 
> end
> 
>  
> 
>  
> 
> But getting exception:
> 
>  
> 
>  
> 
> [6/6/07 16:13:06:456 EDT] 0020 SystemErr R
> java.lang.IllegalArgumentException: The rule called
> Test is not valid.
> Check for compile errors reported.
> 
>   at
>
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363)
> 
>   at
>
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263)
> 
>   at
>
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293)
> 
>  
> 
>  
> 
>  
> 
> How can I check compile errors?? And what is not
> valid in this rule?
> 
>  
> 
> Thanks for any ideas...
> 
>  
> 
> -Sergey
> 
>  
> 
>  
> 
> 
> 
> **
> ** LEGAL DISCLAIMER **
> **
> 
> This E-mail message and any attachments may contain 
> legally privileged, confidential or proprietary 
> information. If you are not the intended
> recipient(s),
> or the employee or agent responsible for delivery of
> 
> this message to the intended recipient(s), you are 
> hereby notified that any dissemination, distribution
> 
> or copying of this E-mail message is strictly 
> prohibited. If you have received this message in 
> error, please immediately notify the sender and 
> delete this E-mail message from your computer.>
___
> 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] rule not valid...

2007-06-06 Thread Manukyan, Sergey

Folks,

 

I am using Rules 4.0 in WebSphere 6.0 app server.

 

Made a simple test file with a simple rule :

 

rule "Test"

  when

cs : SupplierView()

  then

System.out.println(cs);

end

 

 

But getting exception:

 

 

[6/6/07 16:13:06:456 EDT] 0020 SystemErr R
java.lang.IllegalArgumentException: The rule called Test is not valid.
Check for compile errors reported.

  at
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363)

  at
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263)

  at
org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293)

 

 

 

How can I check compile errors?? And what is not valid in this rule?

 

Thanks for any ideas...

 

-Sergey

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] installing eclipse plugin for rules v. 4

2007-05-31 Thread Manukyan, Sergey
Great knews! Thanks everybody,

 

I put this info to 

 

http://wiki.jboss.org/wiki/Wiki.jsp?page=RAD70EclipsePlugin4Installation
Instructions

 

there is a link to this page from
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossRules

 

-Sergey

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Thursday, May 31, 2007 12:27 PM
To: Rules Users List
Subject: Re: [rules-users] installing eclipse plugin for rules v. 4

 

someone want to add that info to the wiki?

Thanks

Mark
Anstis, Michael (M.) wrote: 

Thanks for reminding me about the other steps I did!!!
 
I run JBRules v4.0.x against a 1.4 JRE out of RAD7 (with a 1.4 JVM
configured) but this wasn't deployed to WAS6.0 as it's a simple
standalone app' :-(
 
I think only the JBRMS needs 1.5 JRE so you'll need WAS6.1 for this.
 
Cheers,
 
Mike
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manukyan,
Sergey
Sent: 31 May 2007 16:31
To: Rules Users List
Subject: RE: [rules-users] installing eclipse plugin for rules v. 4
 
Thanks Mike & Mark,
 
It helped! 
 
Here is what I did:
 
1. Downloaded
http://download.jboss.org/jbossrules/release/4.0.0.11754MR2/jbossrules-4
.0.0.11754MR2-eclipse.zip
 
2. Stopped RAD 7.0
 
3. Unzipped it to temporary folder and copied:
\features\org.drools.eclipse.feature_4.0.0.11754MR2  ->
IBM\SDP70\features
\plugins\org.drools.eclipse_4.0.0.11754MR2.jar   ->
IBM\SDP70\plugins
 
3. Started RAD 7.0
 
4. The feature was disabled by default. So I went to menu:
Help/Software Updates/Manage Configuration
Clicked button show disabled feature and enabled it. Required another
restart and then it worked.
 
One more question, will JBoss Rules Engine v. 4 work on J2EE container
with JDK 1.4? 
 
As I am using Webshphere 6.0 ...
 
Thanks again!
 
-Sergey
 
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anstis,
Michael (M.)
Sent: Thursday, May 31, 2007 10:19 AM
To: Rules Users List
Subject: RE: [rules-users] installing eclipse plugin for rules v. 4
 
Works for me too.
 
I've got "org.drools.eclipse_4.0.0.11754MR2.jar" in "C:\Program
Files\IBM\SDP70\plugins".
 
Cheers,
 
Mike 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: 31 May 2007 15:10
To: Rules Users List
Subject: Re: [rules-users] installing eclipse plugin for rules v. 4
 
the download url works fine for me:
http://download.jboss.org/jbossrules/release/4.0.0.11754MR2/jbossrules-4
.0.0.11754MR2-eclipse.zip
 
You'll need to unzip that into your eclipse directory, you will also 
need to make sure that GEF is installed, see the wiki for more details.
 
Mark
Manukyan, Sergey wrote:
  

Folks,
 
I have Rational Application Developer 7.0.0.2 , it uses Eclipse
3.2.2
 
Need to install JBoss rules Eclipse plugin v. 4
 
What is the best way to do it, and is it possible at all?
 
I tried this URL:
 


http://anonsvn.labs.jboss.com/labs/jbossrules/updates/drools-ide-update/
  

but it leads to installation of v 3.
 
The I downloaded the zip file with v 4., but when installing it
gives


an
  

error:
 
 



  

**
Network connection problems encountered during search.
  Unable to access
"jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/"
 .
Unable to access site:
"jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/"
  [no entry
name specified]
Unable to access site:
"jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/"
  [no entry
name specified]
 



  

**
 
 
Any ideas...?
 
-Sergey
 
 
 
**
** LEGAL DISCLAIMER **
**
 
This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.
 
___
rules-users mailing list
  

RE: [rules-users] installing eclipse plugin for rules v. 4

2007-05-31 Thread Manukyan, Sergey
Thanks Mike & Mark,

It helped! 

Here is what I did:

1. Downloaded
http://download.jboss.org/jbossrules/release/4.0.0.11754MR2/jbossrules-4
.0.0.11754MR2-eclipse.zip

2. Stopped RAD 7.0

3. Unzipped it to temporary folder and copied:
\features\org.drools.eclipse.feature_4.0.0.11754MR2  ->
IBM\SDP70\features
\plugins\org.drools.eclipse_4.0.0.11754MR2.jar   ->
IBM\SDP70\plugins

3. Started RAD 7.0

4. The feature was disabled by default. So I went to menu:
Help/Software Updates/Manage Configuration
Clicked button show disabled feature and enabled it. Required another
restart and then it worked.

One more question, will JBoss Rules Engine v. 4 work on J2EE container
with JDK 1.4? 

As I am using Webshphere 6.0 ...

Thanks again!

-Sergey



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anstis,
Michael (M.)
Sent: Thursday, May 31, 2007 10:19 AM
To: Rules Users List
Subject: RE: [rules-users] installing eclipse plugin for rules v. 4

Works for me too.

I've got "org.drools.eclipse_4.0.0.11754MR2.jar" in "C:\Program
Files\IBM\SDP70\plugins".

Cheers,

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: 31 May 2007 15:10
To: Rules Users List
Subject: Re: [rules-users] installing eclipse plugin for rules v. 4

the download url works fine for me:
http://download.jboss.org/jbossrules/release/4.0.0.11754MR2/jbossrules-4
.0.0.11754MR2-eclipse.zip

You'll need to unzip that into your eclipse directory, you will also 
need to make sure that GEF is installed, see the wiki for more details.

Mark
Manukyan, Sergey wrote:
> Folks,
>
> I have Rational Application Developer 7.0.0.2 , it uses Eclipse 3.2.2
>
> Need to install JBoss rules Eclipse plugin v. 4
>
> What is the best way to do it, and is it possible at all?
>
> I tried this URL:
>
http://anonsvn.labs.jboss.com/labs/jbossrules/updates/drools-ide-update/
>
> but it leads to installation of v 3.
>
> The I downloaded the zip file with v 4., but when installing it gives
an
> error:
>
>

> **
> Network connection problems encountered during search.
>   Unable to access
> "jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/".
> Unable to access site:
> "jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/" [no entry
> name specified]
> Unable to access site:
> "jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/" [no entry
> name specified]
>

> **
>
>
> Any ideas...?
>
> -Sergey
>
>
>
> **
> ** LEGAL DISCLAIMER **
> **
>
> This E-mail message and any attachments may contain 
> legally privileged, confidential or proprietary 
> information. If you are not the intended recipient(s),
> or the employee or agent responsible for delivery of 
> this message to the intended recipient(s), you are 
> hereby notified that any dissemination, distribution 
> or copying of this E-mail message is strictly 
> prohibited. If you have received this message in 
> error, please immediately notify the sender and 
> delete this E-mail message from your computer.
>
> ___
> 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] installing eclipse plugin for rules v. 4

2007-05-31 Thread Manukyan, Sergey

Folks,

I have Rational Application Developer 7.0.0.2 , it uses Eclipse 3.2.2

Need to install JBoss rules Eclipse plugin v. 4

What is the best way to do it, and is it possible at all?

I tried this URL:
http://anonsvn.labs.jboss.com/labs/jbossrules/updates/drools-ide-update/

but it leads to installation of v 3.

The I downloaded the zip file with v 4., but when installing it gives an
error:


**
Network connection problems encountered during search.
  Unable to access
"jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/".
Unable to access site:
"jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/" [no entry
name specified]
Unable to access site:
"jar:file:C:/Sergey/jbossrules-4.0.0.11754MR2-eclipse.zip!/" [no entry
name specified]

**


Any ideas...?

-Sergey



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

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