Genesys CTI User Forum > Genesys-related Development

WDE 8.5 Customization How to receive event notification for Agent Skills update?

(1/2) > >>

CarloACN:
Hi all,

how can i receive and notify to the agent his skills update?

I tried using the IConfigurationService  in the following way:
this.configurationService.PropertyChanged += new PropertyChangedEventHandler(notifyPropertyChanged_PropertyChanged);
but the method notifyPropertyChanged_PropertyChanged is not invoked for the skills update.

I saw that the IConfigurationService  has the following methods:
[list]
[li]SubscribeNotification(Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.ICfgObject CfgObject, object asker);[/li]
[li]SubscribeNotification(Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.NotificationQuery notificationQuery, object asker);[/li]
[/list]

Can they help?
if yes how to apply those subscription?

Thanks a lot.

Carlo

daniel_san:
[quote author=CarloACN link=topic=8873.msg39568#msg39568 date=1432663074]
Hi all,

how can i receive and notify to the agent his skills update?

I tried using the IConfigurationService  in the following way:
this.configurationService.PropertyChanged += new PropertyChangedEventHandler(notifyPropertyChanged_PropertyChanged);
but the method notifyPropertyChanged_PropertyChanged is not invoked for the skills update.

I saw that the IConfigurationService  has the following methods:
[list]
[li]SubscribeNotification(Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.ICfgObject CfgObject, object asker);[/li]
[li]SubscribeNotification(Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.NotificationQuery notificationQuery, object asker);[/li]
[/list]

Can they help?
if yes how to apply those subscription?

Thanks a lot.

Carlo
[/quote]

I was trying to do something similar but it was not able.

You may try to get the groups who agent belongs.

CarloACN:
Thanks daniel_san and Regard Miyagi san by me  ;D

Talking seriously...how to apply your advise? how to retrieve the agent group? my problem is that i need a notification of this update and not a simple retriev...
My biggest problem is that i dont understand how to invoke the SubscribeNotification method...what are the input parameter?
[list type=decimal]
[li]ICfgObject CfgObject...Is it my agent's skill? is it a new instance of CfgSkill in my case??[/li]
[li]object asker...What is it? a new EventHandler? My own class?  a reference of something else?[/li]
[li]the Subscription return value...what to do with it?[/li]
[/list]

Please Help...

cavagnaro:
Usually you convert them to IMessages and then you can work with them. but now...a listener to an update...CfgServer propagates changes to all its clients. Maybe see what CfgServer sends when you do that change and try to capture that.

The fact you have a query means it limits what it listens...shouldn't be that...

daniel_san:
[quote author=CarloACN link=topic=8873.msg39582#msg39582 date=1432741173]
Thanks daniel_san and Regard Miyagi san by me  ;D

Talking seriously...how to apply your advise? how to retrieve the agent group? my problem is that i need a notification of this update and not a simple retriev...
My biggest problem is that i dont understand how to invoke the SubscribeNotification method...what are the input parameter?
[list type=decimal]
[li]ICfgObject CfgObject...Is it my agent's skill? is it a new instance of CfgSkill in my case??[/li]
[li]object asker...What is it? a new EventHandler? My own class?  a reference of something else?[/li]
[li]the Subscription return value...what to do with it?[/li]
[/list]

Please Help...
[/quote]

Regards from miyagi  ;D

I didnīt konw that you can subscribe to skill events. Something new i know now  :)

I needed to do someting similar, Refresh Skills on Agent. I did it working with events of WD. For example on makecallcommand, i read directly the configuration of the agent on configuration manager to see what groups has the agent. The IAgent on constructor was not refreshing and i did it reading on configuration.

I donīt know if itīs usefull for you, i think that i can not help you  :(

Navigation

[0] Message Index

[#] Next page

Go to full version