Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Silver

Subscript question

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
VIP Super Bronze

Re: Subscript 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

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.

VIP Super Bronze

Re: Subscript question

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.

5 REPLIES
Silver

Re: Subscript question

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 ?

VIP Super Bronze

Re: Subscript 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

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.

Silver

Re: Subscript question

Jonathan

thanks for the details

A further question

At the end of our Subscript there is a if statement along the lines

  • If (todaysDataString--date) then
    1. TRUE- Set todayIsAHoliday= true
    2. False  loop around to retest

  • END

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

VIP Super Bronze

Re: Subscript question

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.

Silver

Re: Subscript question

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

474
Views
0
Helpful
5
Replies
CreatePlease login to create content