Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: RDB on May 03, 2012, 10:39:42 PM
-
Hi,
we are trying to work upon a scenario here where we are trying to pull up Forecast data
and the Current data using GetPerformanceData as below:
// getuser getglobal settings
SPerfItemDataAndTotal[] enterprisePerfInfo = perfService.getPerformanceData(
EPerfTargets.PERF_TARGET_ENTERPRISE,
0,
new OleDateTime(2005, 04, 14).asDouble(), // start
new OleDateTime(2005, 04, 15).asDouble(), // end
new OleDateTime(2005, 04, 15).asDouble(), // current
15, // granularity
EPerfTimeZoneOptions.PERF_TZ_OPTION_USER_TZ,
0,
0, // Master schedule
0, // Master forecast
types, // IV and AHT
EFrcDataTargets.FRC_TARGET_SITE // site branch
);
for (int j = 0; j < enterprisePerfInfo.length; ++j)
{
System.out.print("Data granularity: " + enterprisePerfInfo[j].getGranularity() + " (minutes)\n");
OleDateTime start = new OleDateTime(enterprisePerfInfo[j].getStart());
switch (enterprisePerfInfo[j].getItem())
{
case EPerfInfoItems.PERF_ITEM_ACT_IV:
System.out.print("Actual Interaction Volume:\n");
break;
case EPerfInfoItems.PERF_ITEM_ACT_AHT:
System.out.print("Actual Average Handle Time:\n");
break;
}
SPerfData[] theData = enterprisePerfInfo[j].getData();
for (int d = 0; d < theData.length; ++d)
{
System.out.print(start.toDateTimeString() + "|" + theData[d].getValue() + ";\n");
start = start.addDateTimeSpan(0, 0, enterprisePerfInfo[j].getGranularity());
}
System.out.print("Total:" + enterprisePerfInfo[j].getTotalValue() + ".");
System.out.println();
where we are facing trouble in passing OleDateTime Object params, since it shows the
Current Data DateTime value to be 12/30/1899. We are able to retrieve Forecast data all fine but its the
Current Data which is giving problems. Any pointers for assistance appreciated.