Genesys Engage on-premises

 View Only

Discussion Thread View
  • 1.  Customized Commands are not executing in Workspace Desktop Edition

    NEW MEMBER
    Posted 02-25-2024 03:16

    Hi Guys,

    I am customizing WDE and want to customize Hold and Resume Call command. I am adding my custom commands in the following chains:

    •  InteractionVoiceHoldCall
    •  InteractionVoiceResume
    commandManager.CommandsByName["InteractionVoiceHoldCall"].Insert(0, new CommandActivator() { CommandType = typeof(OnHoldStart) });
                       
    commandManager.CommandsByName["InteractionVoiceResume"].Insert(0, new CommandActivator() { CommandType = typeof(OnHoldEnd) });

    But Unfortunately, it is not executing these two custom commands. However, I am also using other custom commands in different chains and they are executing successfully.

    Let me know, whether I am missing anything here? or is there any other way around to capture Before Hold and Before Resume Event.

    Best Regards,

    Faris Hasan


    #GenesysEngagePremDev

    ------------------------------
    Faris Hasan
    Fourth Dimension Systems LLC
    ------------------------------


  • 2.  RE: Customized Commands are not executing in Workspace Desktop Edition

    Posted 02-26-2024 05:09

    Hi Faris

    Although I use a different way to add to the chain-of-command the above seems ok and the right chains (I saw the same ones in my log file).

    What does your log file say after:

    DEBUG InteractionWorkspace.Infrastructure.ChainOfCommand - Execute of Chain of Command InteractionVoiceHoldCall -> Name:HoldCall Type:Genesyslab.Desktop.Modules.Voice.Model.Interactions.HoldCallCommand 

    BR Anders



    ------------------------------
    Anders Vejen
    NetDesign A/S, a part of Nuuday A/S
    ------------------------------



  • 3.  RE: Customized Commands are not executing in Workspace Desktop Edition

    NEW MEMBER
    Posted 02-26-2024 05:41

    Hi Anders,

    Thanks for the reply, Hope you're doing well!

    The log File say same as you shared:

    DEBUG InteractionWorkspace.Infrastructure.ChainOfCommand - Execute of Chain of Command InteractionVoiceHoldCall -> Name:HoldCall Type:Genesyslab.Desktop.Modules.Voice.Model.Interactions.HoldCallCommand

    During debugging, I found that InteractionVoiceHoldCall chain contains default command i.e. Name:HoldCall and for InteractionVoiceResume Chain the name of the default command is ResumeCommand. Following are the snapshots of Debugging View:

    In Debugging view, You can clearly see that this chain already contains the command which is here by default by Genesys.
    This is the InteractionVoiceResume Chain Debugging View, You can clearly see the Default command by Genesys.

    As far as I know that this is normal, All commands chain contains list of default commands and we can also insert our customized commands in any chain to achieve our requirements using customizations.

    However, I tried inserting command before and after these default commands but nothing works for me. On other hand I tried, BundleClose and InteractionVoiceReleaseCall Chains and they all are executing normally even they all contains some default commands despite that my custom commands are working. 

    I am customizing WDE from a long time and I never got this issue. But it's my first time that I am using these commands chain.

    Best Regards,

    Faris Hasan



    ------------------------------
    Faris Hasan
    Fourth Dimension Systems LLC
    ------------------------------



  • 4.  RE: Customized Commands are not executing in Workspace Desktop Edition

    Posted 02-26-2024 06:25

    Hi Faris

    Okay, sorry :(

    I don't really have any ideas.

    If pressing the hold/resume button on the call executes that particular chain, then your custom command should execute as well.

    If you see your new command added to the command chain before the default command, it should show it as being executed at least in the logfile, like the normal command does:

    DEBUG InteractionWorkspace.Infrastructure.ChainOfCommand - Execute of Chain of Command InteractionVoiceHoldCall -> Name:HoldCall Type:Genesyslab.Desktop.Modules.Voice.Model.Interactions.HoldCallCommand 
    INFO  InteractionWorkspace.Voice.InteractionVoiceCommand - HoldCallCommand

    BR



    ------------------------------
    Anders Vejen
    NetDesign A/S, a part of Nuuday A/S
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources