Genesys CTI User Forum > Genesys-related Development

IWS - Custom ready state

(1/4) > >>

Kubig:
Hi All,
did somebody solve following requirement:

I want to change agent's state from IWS.So,I wrote custom code,but current DLL files from IWS (Genesys.Desktop) does not contain method,which allows to send "ReasonCodes" for Ready state.

Could you,please,point me to the solution - have to use other namespace(PSDK)?

Many thanks

RobertH:
Hi

Are you sure?
Did you try this?

Interaction Workspace 8.1.1 .NET Developer's Guide and API Reference
NotReady Method

Namespaces ► Genesyslab.Desktop.Modules.Core.Model.Agents ► IAgent ► NotReady()

NotReady() Sets the agent's state to Not Ready.

NotReady(String) Sets the current agent's state to Not Ready with Action Code. 

Regards
Robert

Kubig:
But,as I wrote...I need set [b]Ready [/b]state with ReasonCode. In BusinessAttributes I can create ReadyState with ReasonCode,but in IWS I cannot use it.

RobertH:
Hi

Sorry my fault.

Then you need to use enterprise SDK.
using Genesyslab.Enterprise.Extensions;

IEnterpriseServiceProvider serviceProvider = agent_.EntrepriseService.Provider;
IDeviceService deviceService = serviceProvider.Resolve<IDeviceService>("deviceService");
IIdentityService identityService = serviceProvider.Resolve<IIdentityService>("identityService");

Genesyslab.Enterprise.Model.Device.IDevice deviceS = deviceService.GetDevice(deviceName, tenantName, channelName);

KeyValueCollection Reasons = new KeyValueCollection();
KeyValueCollection Extensions = new KeyValueCollection();
AgentServiceExtensions.Ready(identityService, agentESDK_, deviceS, null, WorkMode.Unknown, Reasons, Extensions);

I used it for NotReady lond time ago but can see it is available also for ready status.
Consult ESDK AgentServiceExtensions..::.Ready Method (IIdentityService, IAgent, IDevice, String, WorkMode, KeyValueCollection, KeyValueCollection)

Regards
Robert

Kubig:
Hi,
does not matter. Where do you get "agentESDK_",which you used as argument in method AgentServiceExtensions.Ready()?

thx

Navigation

[0] Message Index

[#] Next page

Go to full version