我在“GetAttachedDataInformationUCS”命令之前在“BundleClose”链中插入自定义命令,但它在“关闭”命令之后执行命令。我尝试在“GetAttachedDataInformationUCS”以外的命令之前,之后和之后插入它,但它总是在“关闭”命令之后执行。我怎样才能让它按预期工作?
_commandManager.InsertCommandToChainOfCommandAfter("BundleClose", "GetAttachedDataInformationUCS",
new List<CommandActivator>
{
new CommandActivator
{
CommandType = typeof(UpdateDispositionDateCommand),
Name = "UpdateDispositionDateCommand"
}
});
这是自定义命令:
public class UpdateDispositionDateCommand : IElementOfCommand
{
public UpdateDispositionDateCommand()
{
Name = "UpdateDispositionDateCommand";
}
public bool Execute(IDictionary<string, object> parameters, IProgressUpdater progressUpdater)
{
return false;
}
public string Name { get; set; }
}
以下是日志的缩短版本,显示了错误的命令执行:
Exe CoC BundleClose -> Name:GetAttachedDataInformationUCS
Exe CoC BundleClose -> Name:UpdateNotePadForVoice
Exe CoC BundleClose -> Name:ResetInteractionChatConsultation
Exe CoC BundleClose -> Name:IsContactModified
Exe CoC BundleClose -> Name:SipEndpointAskClearSEPCalls
Exe CoC BundleClose -> Name:IsPossibleToClose
Exe CoC BundleClose -> Name:CompleteDispositionCodeOnBundle
Exe CoC BundleClose -> Name:ValidateEditableDataBundle
Exe CoC BundleClose -> Name:Close
Exe CoC InteractionVoiceBeforeClose -> Name:DoNotCallOutboundChain
Exe CoC InteractionVoiceBeforeClose -> Name:SetCallResultOutboundRecord
Exe CoC InteractionVoiceBeforeClose -> Name:RescheduleOutboundRecord
Exe CoC InteractionVoiceBeforeClose -> Name:UpdateRecordCommand
Exe CoC InteractionVoiceBeforeClose -> Name:MarkProcessedOutboundChainCommand
Exe CoC InteractionVoiceBeforeClose -> Name:RescheduleGMECallback
Exe CoC InteractionVoiceBeforeClose -> Name:SetGMECallbackDisposition
Exe CoC InteractionVoiceBeforeClose -> Name:ClearSessionCommand
Exe CoC InteractionVoiceBeforeClose -> Name:IsContactModified
Exe CoC InteractionVoiceBeforeClose -> Name:SipEndpointClearSEPCalls
Exe CoC InteractionVoiceBeforeClose -> Name:Close
Exe CoC BundleClose -> Name:UpdateDispositionDateCommand
Exe CoC BundleClose -> Name:StopInteractionVoiceUCS
Exe CoC BundleClose -> Name:GetOutboundPreviewRecord
答案 0 :(得分:1)
该SDK存在错误。我可以保证。我提交了很多关于IWS / WDE sdk的门票。由于Unity Container,有命令使用错误。使用此功能的最佳方法。
正如您在页面底部所见,GetAttachedDataInformationUCS是&#34; 0&#34;链的命令。如果你插入0,你的命令将是第一个。如果你插入&#34; 1&#34;,则会; getattach。 - &GT;你的命令 - &gt;更新......
P.S。在执行命令的方法中,false是继续下一个命令,true是中断命令链。
P.S。它由Genesys官方提供解决方案。
this.commandManager.CommandsByName["BundleClose"].Insert(0,
new CommandActivator() { CommandType = typeof(InteractionChatDisconnectChatEx) });
ChainBundleClose
0 GetAttachedDataInformationUCS
1 UpdateNotePadForVoice
2 ResetInteractionChatConsultation
3 IsContactModified
4 IsPossibleToClose
5 CompleteDispositionCodeOnBundle
6 Close
7 StopInteractionVoiceUCS
8 GetOutboundPreviewRecord
答案 1 :(得分:0)
不确定原因,但在&#34;关闭&#34;之前添加它?命令工作。