Re: [rules-users] Order of firing rules

2007-06-04 Thread Krishnan

Hi Rajesh,

Let us say Object obj is of type Foo and both rule1 and rule2 work on
Foo, then both rule1 and rule 2 will work
on obj.

Let us say when obj is added into working memory, rule 1 is fired based on
some criterion and rule 2 would not fire on this. However, since rule1 was
fired which modified it in some way that rule 2 can be fired, then this will
also happen.

Send an example of what you are trying.

-Krishnan.


On 6/4/07, Rajesh.Sachin10 [EMAIL PROTECTED] wrote:



Hi,

I asserted 4 objects of a class with class name DemoClass  in to
working memory. In rule one I am creating a reference for the DemoClass
and
implementing the logic.

In rule2,… I am creating another reference of the DemoClass .so that time
it
is accessing the next asserted object present in the workingmemory. But my
requirement is to access the same object which is accessed in rule 1. I
don't need to access other 3 objects in working memory.

  It is possible to access the same object in rule 2, which I accessed in
rule 1?
--
View this message in context:
http://www.nabble.com/Order-of-firing-rules-tf3865719.html#a10951337
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





--
Sivaramakrishna Iyer Krishnan (Anand)

Never assume the obvious is true.
- William Safire
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] new patch

2007-06-04 Thread Krishnan

Hi,

I am using the 4.0 M2 branch currently and it prints out any function that I
write in the rule file during
loading of the rule. I need to add this into production code, will I be able
to get a new patch so that
I can check in right set of jars.

thanks,
Krishnan.

--
Sivaramakrishna Iyer Krishnan (Anand)

Never assume the obvious is true.
- William Safire
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Accessing an object in multiple rule

2007-06-04 Thread Rajesh.Sachin10

Hi,

I asserted 4 objects of a class with class name “DemoClass”  in to
working memory. In rule one I am creating a reference for the DemoClass and
implementing the logic. 

In rule2,… I am creating another reference of the DemoClass .so that time it
is accessing the next asserted object present in the workingmemory. But my
requirement is to access the same object which is accessed in rule 1. I
don't need to access other 3 objects in working memory.
  
  It is possible to access the same object in rule 2, which I accessed in
rule 1?
-- 
View this message in context: 
http://www.nabble.com/Accessing-an-object-in-multiple-rule-tf3866060.html#a10952423
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] Order of firing rules

2007-06-04 Thread Rajesh.Sachin10

Hi,

If we wrote 6 [when] [then] rules in an drl file, there is any order in
firing the rules or the rules get fired in random? 

If it is fired in random, there is any method or keywords to control the
order of firing the rules?
-- 
View this message in context: 
http://www.nabble.com/Order-of-firing-rules-tf3866064.html#a10952429
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


Re: [rules-users] Accessing an object in multiple rule

2007-06-04 Thread Mark Proctor

The object will be available in any rule that matches it.

Mark
Rajesh.Sachin10 wrote:

Hi,

I asserted 4 objects of a class with class name “DemoClass”  in to
working memory. In rule one I am creating a reference for the DemoClass and
implementing the logic. 


In rule2,… I am creating another reference of the DemoClass .so that time it
is accessing the next asserted object present in the workingmemory. But my
requirement is to access the same object which is accessed in rule 1. I
don't need to access other 3 objects in working memory.
  
  It is possible to access the same object in rule 2, which I accessed in

rule 1?
  


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


Re: [rules-users] new patch

2007-06-04 Thread Mark Proctor
M3 is out this week, that printout will be removed. Um why are you 
putting milestone releases into a production build? These are not 
production releases, but snapshots of unstable development releases. 
It's your choice, but just don't moan when api's change or you find some 
bug, like print statements.


Mark
Krishnan wrote:


Hi,

I am using the 4.0 M2 branch currently and it prints out any function 
that I write in the rule file during
loading of the rule. I need to add this into production code, will I 
be able to get a new patch so that

I can check in right set of jars.

thanks,
Krishnan.

--
Sivaramakrishna Iyer Krishnan (Anand)

Never assume the obvious is true.
- William Safire


___
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] Localization in DSL

2007-06-04 Thread Fernando Meyer
In theory you can write DSLs in any languages, I ain't sure about  
encoding issues, need to check with tirelli.
btw, just try with the japanese encoding and give us your feedback  
and some screenshots, then we can change that pt_br dsl in jbossrules  
home ;)


We have a ticket to implement i18n internationalization support in BRMS,
http://jira.jboss.com/jira/browse/JBRULES-872
It isn't an easy task at moment, because mostly of the BRMS strings  
are inside widget's code.
So, probably this feature will be available on next version's  
milestones.


Contributors are welcome.

Fernando Meyer
[EMAIL PROTECTED]
GPG: 5A6D 3374 B055 A513 9A02  A03B 3DB3 7485 D804 DDFB


On Jun 4, 2007, at 11:22 AM, Shigeaki Wakizaka wrote:


Hello.

I'd like to use Japanese in DSL.
Is it possible?
Do you have a plan to do the localize-thing with DSL and
brand-new BRMS?

Thanks in advance

Shige

___
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] Localization in DSL

2007-06-04 Thread Shigeaki Wakizaka

2007/6/5, Fernando Meyer [EMAIL PROTECTED]:

In theory you can write DSLs in any languages, I ain't sure about
encoding issues, need to check with tirelli.
btw, just try with the japanese encoding and give us your feedback
and some screenshots, then we can change that pt_br dsl in jbossrules
home ;)


Ok, I'l try it. ;-)

Thanks!!

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