Setting the Required Function in Inlined Scripts

2008-08-26 Thread Saliya Ekanayake
Hi all, I am bit new to the script mediator. The synapse configuration language mentions that we can define the which function to be executed in the script if the script already exists (i.e. referred by a key). The script can also be inlined according to the document, but in this case it does

Re: Setting the Required Function in Inlined Scripts

2008-08-26 Thread Asankha C. Perera
Saliya If I remember correctly, if you do not specify the name of the function, we look for a function named "mediate".. However, I agree with your view that we should execute anything outside the functions.. we also need someone to take the Script mediator to support JDK 1.6 :-) ! asankha

Re: Setting the Required Function in Inlined Scripts

2008-08-26 Thread Ruwan Linton
Saliya and Asankha, I disagree here, note that these two modes handle two different scopes of the scripts. Yes, it is possible to add a script with functions in the inline scripting case, but this mode is rather expected to be used in very simple mediation. In that case you do not have functions d

Re: Setting the Required Function in Inlined Scripts

2008-08-26 Thread Saliya Ekanayake
Ruwan Linton wrote: Saliya and Asankha, I disagree here, note that these two modes handle two different scopes of the scripts. Yes, it is possible to add a script with functions in the inline scripting case, but this mode is rather expected to be used in very simple mediation. In that case yo

Re: Setting the Required Function in Inlined Scripts

2008-08-26 Thread Ruwan Linton
+1, and you are more than welcome to contribute to the project with these documentation changes. >> >> If the concept is to facilitate simple scripts (i.e. without methods) in > the inlined case and support any sort of a script in the external case then > that's fine. Anyway it's useless to hav