11-26-2010 08:56 AM - edited 03-14-2019 06:57 AM
We have had a UCCX 7 installed for a while, however been asked to look through it as we have had issues. I`ve already located one issue to be the format of recordings but now I have to look at a subscripts which does not seem to be called
I understand that Subscripts are used to call a second script as in a holiday check and then return to the main script
Question- What makes subscript return back to the main script is it purely the commend "end" within the subscript and so it returns to the main script where it left or is there more to it
How does the Input and Output mapping work on the Call Subflow ? are these the items which make the script interflow from main to sub and back again ?
Input mapping- Source - Item in the main script which calls the subscript ??? and Subflow Destination - point in the subscript where the flow from the main enters the subscript?
Output mapping -Subflow Sources - the point in the subscript where it leaves and Destination - where it re-joins the main script
thanks
Solved! Go to Solution.
11-26-2010 10:00 AM
What makes subscript return back to the main script is it purely the commend "end" within the subscript and so it returns to the main script where it left or is there more to it
It's as simple as it looks. When the End step is reached within the subflow it terminates and the parent script continues on to the next step following the Subflow step.
How does the Input and Output mapping work on the Call Subflow ? are these the items which make the script interflow from main to sub and back again ?
These are used to copy variable or literal values between the two scripts. Input values are passed before starting the subflow script. Output values are passed back to the parent script when the subflow reaches the end step. The variable types must match (e.g. String to String).
Input mapping- Source - Item in the main script which calls the subscript ??? and Subflow Destination - point in the subscript where the flow from the main enters the subscript?
Output mapping -Subflow Sources - the point in the subscript where it leaves and Destination - where it re-joins the main script
The Subflow Destination and Subflow Source is the variable name within the subflow script. The Source or Destination is the variable name from the parent script.
The thinking is that a subscript can be used, called upon by more then one main script so may need to jump out of the single subscript at different points based upon possible different if statements, when etc - is this where the input, output mapping came in to play ?
Just write expressions in the subflow script that go to the end step if the condition is met.
11-29-2010 05:10 AM
Based on the example you are citing the next step that can be processed is the End step. Only one of the If step conditions can be matched at a time, not both. It will "skip" the false condition and any steps within if you prefer that wording.
11-26-2010 08:59 AM
Just to add, if I was to relate it to a Nortel Symposium , there are commends in a subscript which I can add so to make the call go back to a main script from the subscript . The thinking is that a subscript can be used, called upon by more then one main script so may need to jump out of the single subscript at different points based upon possible different if statements, when etc - is this where the input, output mapping came in to play ?
11-26-2010 10:00 AM
What makes subscript return back to the main script is it purely the commend "end" within the subscript and so it returns to the main script where it left or is there more to it
It's as simple as it looks. When the End step is reached within the subflow it terminates and the parent script continues on to the next step following the Subflow step.
How does the Input and Output mapping work on the Call Subflow ? are these the items which make the script interflow from main to sub and back again ?
These are used to copy variable or literal values between the two scripts. Input values are passed before starting the subflow script. Output values are passed back to the parent script when the subflow reaches the end step. The variable types must match (e.g. String to String).
Input mapping- Source - Item in the main script which calls the subscript ??? and Subflow Destination - point in the subscript where the flow from the main enters the subscript?
Output mapping -Subflow Sources - the point in the subscript where it leaves and Destination - where it re-joins the main script
The Subflow Destination and Subflow Source is the variable name within the subflow script. The Source or Destination is the variable name from the parent script.
The thinking is that a subscript can be used, called upon by more then one main script so may need to jump out of the single subscript at different points based upon possible different if statements, when etc - is this where the input, output mapping came in to play ?
Just write expressions in the subflow script that go to the end step if the condition is met.
11-29-2010 05:04 AM
Jonathan
thanks for the details
A further question
At the end of our Subscript there is a if statement along the lines
The above is a normal if, true, false statement . my question is that if the statement is true then it sets a condition to be "true " Should there be a GO TO statement to make the call flow go to the END statement and so return to the main script?
Example in a if agents are logged<1 then
if TRUE GO TO EMERGENCY
if FALSE carry on to next step
.
.
Select Resource
.
.
.
.
Label EMERGENCY
Or Does it automatically miss the FALSE substep and go to the next Step in our case END
thanks
11-29-2010 05:10 AM
Based on the example you are citing the next step that can be processed is the End step. Only one of the If step conditions can be matched at a time, not both. It will "skip" the false condition and any steps within if you prefer that wording.
11-29-2010 05:14 AM
thanks again-got all the info. I need now . I`ve just now got to work out why our Subscript for Holiday is not working
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: