×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

UCCX 8.02 Call Subflow

Unanswered Question
Oct 8th, 2010
User Badges:

I created a script to be a subflow named parseSchedule.aef.  I created another script to be a subflow and to encapsulate the first, named getSchedule.aef.  I can run both of these in the debugger without any trouble.  When I create another script that uses a Call Subflow node to call getSchedule.aef, I get an error


166583: Oct 08 08:24:03.710 EDT %MIVR-APP_MGR-3-STEP_FAILURE:Failure to execute a step: Application=App[name=Eng_Build_App,type=Cisco Script Application,id=1,desc=Eng_Build_App,enabled=true,max=5,valid=true,cfg=[ApplicationConfig[schema=ApplicationConfig,time=2010-10-07 17:38:01.0,recordId=1,desc=Eng_Build_App,name=Eng_Build_App,type=Cisco Script Application,id=1,enabled=true,sessions=5,script=SCRIPT[Eng_Build_App.aef],defaultScript=,vars=[],defaultVars=null]]],Task id=25000000019,Step id=107,Step Class=com.cisco.wfframework.steps.core.StepCallSubflow,Step Description=Call Subflow(SCRIPT[getSchedule.aef] ),Exception=java.lang.ArrayIndexOutOfBoundsException
166584: Oct 08 08:24:03.710 EDT %MIVR-APP_MGR-3-EXCEPTION:java.lang.ArrayIndexOutOfBoundsException


There are no subscripted variables in the Input Mappings or the Output Mappings.


Is this notation "SCRIPT[getSchedule.aef]" causing the ArrayIndexOutOfBoundsException?


How do I get past this?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Anthony Holloway Fri, 10/08/2010 - 09:13
User Badges:
  • Purple, 4500 points or more

Using SCRIPT[filename.aef] is the method you should use, to indicate you are calling a script file from the repo.


Do not confuse that with Java arrays:  e.g.,  String[], int[], or other.


I too have a strange issue with calling subflows in 8.0(2), and have a TAC case open on it.  My subflows run fine stand alone, but not when called from another script.  My case is with the developers, but I have not heard back yet.


If you could turn on ENG debugging, then run the test again, and post your new logs, just the section of the failure, that might show more detail about whats going on.

d.freedman Fri, 10/08/2010 - 10:36
User Badges:

The problem was a mismatch in Output Mappings between the name of the

variable in the Subflow Sources and the name in the script.


The error message is not helpful at all. The script editor should use a

drop-down selector for variables in the subflow.


Thanks,

David

ruimartins1000 Fri, 07/15/2011 - 03:16
User Badges:

Hi,

I've you come up with an explanation form the TAC team?

I'm running UCCX 8.0(2)SU2 and I have the same exception when I call a subflow.


The interestening part is that it only happens one time. When I make a refresh on the AppAdmin of the Application that calls my primary script, then the first time I execute that script it blows with that exception on the call subflow step.


The following times it doesn't return any error....


any hints?!

Thanks in advacne,

Rui

Actions

This Discussion