Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: gibbo on March 30, 2007, 03:31:15 PM

Title: GIS: like interacting with the statserver
Post 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!
Title: Re: GIS: like interacting with the statserver
Post by: Ben on April 17, 2007, 10:23:51 AM
If you're after the current agent status then I don't think you can get it through GIS.
Title: Re: GIS: like interacting with the statserver
Post by: Ali on May 02, 2007, 01:08:50 PM
Please check out WSDL of request message, where you find the answer.