03-22-2011 12:43 PM - edited 03-14-2019 07:37 AM
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?
03-22-2011 12:54 PM
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
03-22-2011 02:18 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide