Identity & Policy Control - SBR Carrier & SRC
Identity & Policy Control - SBR Carrier & SRC

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

‎09-22-2011 05:33 AM

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
Identity & Policy Control - SBR Carrier & SRC

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

‎09-22-2011 06:20 AM

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.