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.

New Member

Branching out to another script

How do you call a script from a CRS script? I am trying to give the caller option to "branch out" to another prompt (script) in case they made a mistake calling this prompt. Please advise, thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: Branching out to another script

Use the "subflow" step.

Chris

2 REPLIES
Hall of Fame Super Silver

Re: Branching out to another script

Use the "subflow" step.

Chris

New Member

Re: Branching out to another script

And don't forget to map variables. By doing this you say that variable X in the subflow script, will be the value of variable Y in your main script. And it can also work the other way around.

For example, we have added a variable to our script that defines the opening and closing time of the CSQ. Since we have bad experiences with the Time-variable, we use a string variable "8:00" as opening time. We call a subflow to have these variables split to 8 hours 00 minutes. So we've mapped the "8:00" string variable to a String var in the subflow script. Then the subflow script splits the String, calculates each hour and minute seperately and then makes the boolean 'isOpened' true or false. This boolean is then mapped to a boolean variable in the main script.

115
Views
4
Helpful
2
Replies