Hi Martin
You might need to look at the PossibleToClose chains? Below is code extract from one WDE customisation trying to prevent the agent from leaving interaction before filling out extra information about the call ("Samtaleemner").
// Add SamtaleEmner check in BundleClose CommandChain instead to ensure
// that user data is actually attached. We add before IsPossibleToClose
// because Done cannot be done (no pun intended) if valid SamtaleEmner is
// not selected.
commandManager.InsertCommandToChainOfCommandBefore( "BundleClose", "IsPossibleToClose",
new List<CommandActivator>()
{
new CommandActivator() { CommandType = typeof(CompletedSamtaleEmnerSelection), Name = "CompletedSamtaleEmnerSelection" }
} );
// Add SamtaleEmner check in InteractionVoiceIsPossibleToClose CommandChain to
// make sure that SamtaleEmner are filled out even if WDE is closed with an interaction
// not done marked.
commandManager.InsertCommandToChainOfCommandBefore( "InteractionVoiceIsPossibleToClose", "IsPossibleToMarkDone",
new List<CommandActivator>()
{
new CommandActivator() { CommandType = typeof(CompletedSamtaleEmnerSelection), Name = "CompletedSamtaleEmnerSelection" }
} );
// Add SamtaleEmner check in InteractionVoiceIfPossibleCloseInteraction CommandChain to
// make sure that SamtaleEmner are filled out even if WDE is closed with an interaction
// not done marked.
commandManager.InsertCommandToChainOfCommandBefore( "InteractionVoiceIfPossibleCloseInteraction", "IsPossibleToMarkDone",
new List<CommandActivator>()
{
new CommandActivator() { CommandType = typeof(CompletedSamtaleEmnerSelection), Name = "CompletedSamtaleEmnerSelection" }
} );
// Add SamtaleEmner check in InteractionVoiceIfPossibleCloseInteraction CommandChain to
// make sure that SamtaleEmner are filled out even if WDE is closed with an interaction
// not done marked.
commandManager.InsertCommandToChainOfCommandBefore( "PossibleToCloseAllInteractions", "IsPossibleToClose",
new List<CommandActivator>()
{
new CommandActivator() { CommandType = typeof(CompletedSamtaleEmnerSelection), Name = "CompletedSamtaleEmnerSelection" }
} );
BR
Anders
------------------------------
Anders Vejen
NetDesign A/S, a part of Nuuday A/S
------------------------------