05-14-2007 08:58 AM - edited 03-14-2019 12:51 AM
Is there a way to launch a script from an already running script. I need to start multiple instances of a callback script from a master script. Is there a way to create an HTTP request from a script that would kick off another script and pass some data into the new script?
Thanks.
Pavel Bogomolnyi
05-17-2007 10:57 AM
Yes, it is possible but you'll need to write your own step in java that executes an HTTP Post or if you're running Premium Edition you can script it through Java in the script editor - a little bit messier.
--Borislav
05-18-2007 01:36 PM
You can use the "Call Subflow" expression. For example, if you want to set the variable X and Y from two different scripts, it should look like this:
X=Call Subflow ("YourFirstScript.aef",variableX)
Y=Call Subflow ("YourSecondScript.aef",variableY)
Not sure of the layout but it should be possible like that. try to adapt it with your http requests.
cheers.
jp
05-22-2007 12:45 AM
I agree with JP on the above post. Call flow you will see input variables and output variables where you can map some variables from one sript calling other script.
We have done that at one of our designing where in one script i was calling other script via "call subflow" and mapping the variables from there.
For Eg i have created variable "X" as string and passing the variable as parameter in main script.
And in sub flow i have Variable "Y" as string and again i am passing the variable as parameter in sub script.
Now if i want to pass my information from X to Y, all i need to do is goto Call subflow input mapping..
under "sources" i need to put "X" and under "subflow destination" i need to put "Y"
It worked for me. I hope you are looking for something like this only.
Else please explain your need.
Thanks,
Daljeet
PS : Please donot forgot to Rate the post if helpfull.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide