cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying a condition for SRC-VTA event handler with a Java Script

Terebok_
Contributor

Specifying a condition for SRC-VTA event handler with a Java Script

Hello everybody!

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 .

1 REPLY 1
Terebok_
Contributor

Re: Specifying a condition for SRC-VTA event handler with a Java Script

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] [10] Script execution result: CheckBalance_condition(null)=null_

And my script is:

var test1= new Boolean(true);

return test1;_

In 'return atrribute' I typed in "test1"

Thanks.