Markus, did you tried:

[consequence][]write {value} to stdout=System.out.println({value});

   With the line:

write $item.getMessage() to stdout

    []s
    Edson

2007/11/7, Markus Helbig <mhelbig81@googlemail.com>:
Hi,

following example:

Item Class:

public class MyItem {

      public MyItem() {}

      public String getMessage()
      {
            return "Hello World!";
      }

}

DSL:

[condition][]is of type MyItem=MyItem()
[consequence][]write "{value}" to stdout=System.out.println("{value}");

DSRL File:

rule
    when
           $item: is of type MyItem
    then
           write $item.getMessage() to stdout
end

Is this "write $item.getMessage() to stdout" possible in any way?
Currently i'm not able to get it to work ...

Cheers

Markus
_______________________________________________
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