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

How to see programming Code for UCCX Script

Hi All,

How can I  see the programming Code for UCCX Script? I have a script and want to see its Code , something like :

int sum = 0;

boolean alternate = false;

boolean isValid = false;

try {

int i = 0;

for (i = ccnumber.length() - 1; i >= 0; i--) {

  int n = Integer.parseInt(ccnumber.substring(i, i + 1));

  if (alternate) {

   n = n * 2;

   if (n > 9) {

    n = (n % 10) + 1;

   }

  }

  sum += n;

  alternate = !alternate;

}

isValid = (sum % 10 == 0);

} catch (Exception e) {

return -1;

}

return (isValid == true ? 1 : 0);

thanks,

Hamed

1 REPLY

How to see programming Code for UCCX Script

You're not going to find code per se, unless you have some java class you wrote and then you would only see the code if you had the source java file.  The script is the only interface you get for "code".

david

243
Views
0
Helpful
1
Replies
CreatePlease login to create content