How is it not working for you? It's difficult to assess your difficulty here. Have
you ever passed a parameter by reference to a method, then examined the referenced
parameter after the method call? That's basically it.
--- On Mon, 1/19/09, Ashish Soni <ashish.usoni(a)gmail.com> wrote:
From: Ashish Soni <ashish.usoni(a)gmail.com>
Subject: Re: [rules-users] Regarding BRMS
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Date: Monday, January 19, 2009, 8:42 AM
I tried the suggestion of keeping reference of the object
but it is not
working , Please let me know if there is way to do that.
Regards,
Ashish
On Sun, Jan 18, 2009 at 2:47 PM, Edson Tirelli
<tirelli(a)post.com> wrote:
>
> 6 days ago we had this very same question and a
thread discussing the
> options:
>
>
http://lists.jboss.org/pipermail/rules-users/2009-January/007529.html
>
> Please use the mail list archive.
>
> []s
> Edson
>
> 2009/1/18 Ashish Soni <ashish.usoni(a)gmail.com>
>
>> Hi Mark ,
>> I am evaluating Drools BRMS for our upcoming
projects and have below
>> questions it would be great if you can help ..
>> I have created a rules package using BRMS and then
trying to execute rules
>> using below code can you please let me know how i
can see the modified
>> object back.
>>
>> The Rules is very simple as if the name of the
customer is "Ashish' then
>> set the phone to some value as given in the rule .
>>
>>
>> public static void main(String[] args) {
>>
>> Properties properties = new Properties();
>> try {
>> properties.load(new
>>
FileInputStream("C:\\Dev\\MyTest\\src\\com\\mytest\\MyRules.properties"));
>> } catch (IOException e) {
>> }
>>
>> RuleAgent ruleAgent =
RuleAgent.newRuleAgent(properties);
>> RuleBase rb = ruleAgent.getRuleBase();
>> StatefulSession session =
rb.newStatefulSession();
>> session.addEventListener( new
DebugAgendaEventListener() );
>> session.addEventListener( new
DebugWorkingMemoryEventListener() );
>> WorkingMemoryFileLogger logger = new
WorkingMemoryFileLogger(
>> session );
>> Customer customer = new Customer();
>> customer.setName("Ashish");
>> logger.setFileName(
>>
"C:\\Dev\\MyTest\\src\\com\\mytest\\helloworld.txt"
);
>> session.insert(customer);
>> session.fireAllRules();
>>
>> logger.writeToDisk();
>> session.dispose();
>>
>>
>> Properties File
>>
>> newInstance=true
>> url=
>>
http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/AshwinPK...
>> poll=30
>> name=MyConfig
>>
>>
>> Regards,
>> Ashish soni
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
> Edson Tirelli
> JBoss Drools Core Development
> JBoss, a division of Red Hat @
www.jboss.com
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users