This page last changed on Nov 28, 2013 by florian.

Hello,

I'm trying to use System.out.println to output a value to the console.

have you any idea how to do that?
Here is my rule:

rule "Etat radiateurs salon"
when
Switch(source == "Chauffage Salon Cuisine (Etat Pilotage Radiateurs)", value == "on")

then
System.out.println(Chauffage Salon Cuisine (Etat Pilotage Radiateurs).GetValue()); <----- I'd like to print the switch value here (expected result is "on" or 1)

end

Many thanks!

I'm not developper but I think you should write into a log file not on console.

Look at this comment : http://www.openremote.org/display/forums/Rules+Logging?focusedCommentId=22873675#comment-22873675

Posted by bourrin at Nov 28, 2013 19:42
Document generated by Confluence on Jun 05, 2016 09:38