01-02-2016 06:19 AM - edited 03-14-2019 03:36 PM
Hello Team,
I have one scenario where end user (agents) can invoke the script which can play the message to callers in the situation of bad weather, emergency situation or all the team attending day long meeting / workshop. This script will play in the normal business days in the situation of emergency.
Thanks for your response.
Regards,
Akhilesh
01-02-2016 07:46 PM
You will need to use an XML file which will have options for emergency/meeting.
That XML file will be referenced a script to which your main script will refer through sublow for each call (just like holiday.aef).
For agents to call in to change the option you will need to create a separate script that will use keyword transform step which will make changes to XML file for emergency/meeting depending what option agents press.
Let me know if you already have a script in place for this and need assistance modifying it.
Regards,
Chakshu Piplani
-rate helpful posts-
01-04-2016 05:50 AM
Thanks Chakshu.
Currently I don't have the script. I am starting from scratch.
01-04-2016 06:40 AM
You can locate sample scripts which include emergency trigger script from here:
01-04-2016 06:46 AM
01-04-2016 06:49 AM
Looks like this site is no longer working, try from here:
01-04-2016 07:08 AM
Thanks a lot. it's working.
01-21-2016 06:21 AM
Hi Chakshu,
Can you please have look on this attached script. I am new to this scripting part and your help really appreciated. Also how can we call this emergency script in main script.
Thanks,
Akhilesh
01-21-2016 06:21 AM
Akhilesh,
Use the Call Subflow step in the main script to point to this particular Weatherline script. You can leave the Input Mappings blank and for the Output Mappings, choose the variable that will store the value locally in the main script under Destination and for subflow source, choose the variable that will store the required value in the subflow script i.e. Weatherline.aef script.
Subflow Sources: Names of the variables in the subflow which value at the end of executing the subfow must be returned to the main workflow variables specified in the "Destinations" field.
Destination: Names of the variables in the main flow where the last value of the subflow variables specified in the "Sources" field will be stored when the subflow terminates executing. The "Destinations" subflow variable must be of the same type of the subflow variable specified in the "Subflow Sources" field or a Java base class of it.
Once you have done this, simply perform a reactive debug on the main script and check if it is pulling the correct value or not from the subflow script. In case, there are any concerns apply the Weatherline.aef script. to one of a test application directly and then do a debug on that as well to see if the value is coming correct or not.
Regards
Deepak
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