I've got an Event Handler for a specific event which is SERVICESTART(MY_SERVICE).
Is there a chance I can use a java script in condition itself or invoke a script from the condition?
The goal is to perform action only in case if script returns TRUE.
Thanks in advance .
This is what I'm typing in the condition section: var test1=<CheckDate>; return test1;
when I'm getting the SERVICESTART this could be seen in logs:
17:17:27.859 MSD 22.09.2011 [Thread-163 (group:HornetQ-client-global-threads-21704826)] [ScriptParser]  Script execution result: CheckBalance_condition(null)=null
And my script is:
var test1= new Boolean(true);
In 'return atrribute' I typed in "test1"