Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: gibbo on March 30, 2007, 03:31:15 PM
-
Hi!
I am a GIS developer. I have a problem: when send the statistic write as:
Statistic statistic=new Statistic();
statistic.setStatisticId("agentState");
ObjectIdType objectid=new ObjectIdType();
objectid.setId(this.getEmployeeID(agentName));
objectid.setTenantName("Resources");
statistic.setObjectId(objectid);
Metric metric=new Metric();
metric.setTypeName("CurrentAgentState");
StatisticType statisticType = new StatisticType();
statisticType.setSubject("AgentState");
ObjectType[] objectType = new ObjectType[]{ObjectType.Agent};
statisticType.setCategory("CurrentState");
statisticType.setObjectType(objectType);
metric.setStatisticType(statisticType);
TimeInterval timeInterval = new TimeInterval();
timeInterval.setIntervalType(TimeIntervalType.GrowingWindow);
metric.setInterval(timeInterval);
statistic.setMetric(metric);
Schedule schedule=new Schedule();
schedule.setNotificationMode(ScheduleMode.TimeBased);
schedule.setInsensitivity(new Integer(1));
schedule.setTimeout(new Integer(2));
statistic.setSchedule(schedule);
RetrieveStatisticResponse retStat = this.statPort.retrieveStatistic(statistic,statServer);
StatisticValue stat = retStat.getStatisticValue();
in stat.getEventValues()[0].getAgentStatus() there are the property of the agent
but stat.getEventValues()[0].getAgentStatus().getDns() is = null...
I think this an error because the agent has a place with a right DN...
There is someone that can tell me how obtain the info of the dn?
thanks!
-
If you're after the current agent status then I don't think you can get it through GIS.
-
Please check out WSDL of request message, where you find the answer.