Re: [rules-users] Eclipse Agenda View

2012-03-29 Thread youssef azbakh
Hello,
I used WorkingMemoryFileLogge

  WorkingMemoryFileLogger logger = new
WorkingMemoryFileLogger(session);
  logger.setFileName(
src\\main\\rules\\package2\\log );

But the agenda view is always empty, it doesn't contain anything
Thank you
-- 
Youssef
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Eclipse Agenda View

2012-03-29 Thread youssef azbakh
Thank you very much ;)
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] POJO accessors method in Drools facts

2012-02-27 Thread youssef azbakh
Hi
I think that yo have to instanciate the object and insert it into the
working memory then you fire all rules like this :


bMyClass x= new MyClass();

ksession.insert(x);
ksession.fireAllRules();/b

it will work without problem !

2012/2/27 aliosha79 alex_orl1...@yahoo.it:
 Hi,
 i have some troubles to undestand how drools processes FACTS. I have a POJO
 class resulted from an UnMarshal jaxb processing like this:

 public MyClass {

 protected String className = Class1;

 public getClassName(){
        return className;
 }

 public setClassName(String className){
        this.className = className
 }

 }


 Now i have to compose a drl file with a rule like this:


 when
        $Class : MyClass()
        eval ($Class.getClassName() == Class1)
 then
        System.out.println(ok!!!);
 end


 This syntax doesn't rise errors BUT doesn't match the real name... no ok
 message are printed.


 when
        $Class : MyClass (getClassName() == Class1)
 then
        System.out.println(ok!!!);
 end

 This syntax raises me a null pointer exception!!!


 What's the right syntax?
 Can i use the accessor methods building drools facts?
 Thanks a lot!

 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/POJO-accessors-method-in-Drools-facts-tp3780363p3780363.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



-- 
Youssef AZBAKH
Elève ingénieur en 3ème année informatique.
Institut National de Statiqtique et d'Economie Appliquée (INSEA).

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


[rules-users] (no subject)

2012-02-24 Thread youssef azbakh
Hello every body !

I'm a new drools Fusion user, And I'm now facing a real problem which
is that my events attriutes values doesn't  go to starttimestam and
endtimestamp, I explain :

when declaring a new event

declare Evenement
@role(event)
@startimestamp(attr1)
@endtimestamp(attr2)
end



And in the java code when I call the methods (getStartTimeStamp() end
getEndTimeStamp()) of EventFactHandle object which is used to insert a
nuw event in the working memrory.

it gives me a very different values of what give (getAttr1() and getAttr2().

I want to know what is my error and also what is exactely the
relationship between starttimestamp of EventFactHandle  and attr1 ??


Thank you
Merci :)

-- 
Youssef AZBAKH
Elève ingénieur en 3ème année informatique.
Institut National de Statiqtique et d'Economie Appliquée (INSEA).

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