Author Topic: GIS: getDNAction with statserver  (Read 10612 times)

gibbo

  • Guest
GIS: getDNAction with statserver
« on: March 30, 2007, 07:51:22 PM »
Hi, I am using gis to do statistics: I want recover the relative ConnID to the call managed from an agent?
Is It possibile?
I see the libraries and I find in
stat.getEventValues()[0].getAgentStatus()
the method getDns() but this is always empty why?
Moreover I find the getDNAction method, that return StateDNAction object.
StateDNAction object has the method getConnID... problem... getDNAction is always null why?
thanks!

Marked as best answer by on August 05, 2018, 06:18:47 PM

Offline Ali

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
  • Haunted by Genesys
    • My Web Site
Re: GIS: getDNAction with statserver
« Reply #1 on: March 31, 2007, 04:46:27 AM »
Hi, Gibbo,

Did you check the related WSDL, where you can see the attributes and their values that you want to retrieve?

Ali
Ali

"beer makes you smart
it made budwiser"

gibbo

  • Guest
Re: GIS: getDNAction with statserver
« Reply #2 on: April 02, 2007, 06:23:18 PM »
the statistics that send is created like follows:

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);

and the relative soap message is corrected...
I dont know where there is error...

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1399
  • Karma: 17
Re: GIS: getDNAction with statserver
« Reply #3 on: April 03, 2007, 02:18:54 PM »
Ok,

let's start with basics (forgive me if I sound condescending):

1. do you have DN registered and have a place entered under "Pllace" for that agent in CME?
2. what does GIS server's log say?

Best regards,
Vic

gibbo

  • Guest
Re: GIS: getDNAction with statserver
« Reply #4 on: April 03, 2007, 11:24:17 PM »
well...
for the first point, yes the dn is ok
for the second point there is a problem... I can't see the log file of GIS server...

Offline mark

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: GIS: getDNAction with statserver
« Reply #5 on: April 04, 2007, 01:16:09 AM »
for the second point there is a problem... I can't see the log file of GIS server...


Is it outputting a log file to somewhere that you can access?
Don't wish it were easier, wish you were better

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1399
  • Karma: 17
Re: GIS: getDNAction with statserver
« Reply #6 on: April 06, 2007, 01:55:01 PM »
If you could show us GIS log, it would make it much easier!  :D

Otherwise, we would be poking in the dark (unless someone can spot a problem with the code!)  :'(

gibbo

  • Guest
Re: GIS: getDNAction with statserver
« Reply #7 on: April 06, 2007, 08:49:23 PM »
sorry but it's impossible for me get the log file...  :'(

my problem is that I don't understand why when I create a statistic (example CurrentDNState) with gis, the object stat2.getEventValues()[0].getDnStatus().getDnAction() is null...



Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1399
  • Karma: 17
Re: GIS: getDNAction with statserver
« Reply #8 on: April 10, 2007, 01:16:29 PM »
No log, eh?
You will have a log of problem debugging then.... :-\

There are several reason why it might be like this.
First of all, does this statistic exist in statserver?

The fastest way to check would be to see if you can get the same value using CCP.
Can you see the value in CCP? (Since you can create an identical request in there for the same DN)

... wait a second....

I am curious - how can you get a DN-related status from Agent?
From Person - yes, if you have DN assigned to it, but from agent...
Can this even be done?

Where in the manual did you find that this is supposed to retrieve something?


gibbo

  • Guest
Re: GIS: getDNAction with statserver
« Reply #9 on: April 11, 2007, 11:35:25 PM »
well... I have made some checks in these days
I think that gis stat lib has a variable to store the information of dn of an agent but not used this variable in statistic...
so I think to use AIL Interaction Service to get the connID... and in this way is all ok
bye thanks!