cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1455
Views
0
Helpful
2
Replies

Programmatically Calling Cisco Steps in Custom Code

DrEAmlessoD
Level 1
Level 1

I'm trying to write a consolidated date check function.  Rather than have ~20 steps (cluttering the GUI) I want to collapse this all down into a single Do step with textual code embedded.  I can do this no problem for the date information:

{
String currentYear, currentMonth, currentDay, currentDate;
currentYear = D[now].year.toString();
currentMonth = D[now].month.toString();
currentDay = D[now].dom.toString();
currentDate = currentMonth + "/" + currentDay + "/" + currentYear;
}

Where it hits a brick wall is the XML document pulls.  The Document data type doesn't have any methods/functions for pulling a document or executing anything similar to Get XML Document Data.  I'm certain I can reference these functions by Cisco's own names, but there is no reference that I can find with class definitions.  Is anyone privy to this information, or has anyone done anything similar?

2 Replies 2

Tanner Ezell
Level 4
Level 4

I have experimented with this with zero success. Without internal

system documentation on the functions (Steps) I fear this is not

possible. I would to hear if you have any success here.

Tanner Ezell

On Tue, Mar 22, 2011 at 12:43 PM, DrEAmlessoD

Tanner Ezell www.ctilogic.com

Anthony Holloway
Cisco Employee
Cisco Employee

I too have tried to invoke native steps in Java blocks with no success.

I didn't need to, I just wanted to try.

For you, I would say, simplify your scripts, and modularize them, by way of call subflow. I.e., you call a subflow that does nothing but check business hours and calls another subflow that checks holidays.

Sent from Cisco Technical Support iPhone App