我在“GetAttachedDataInformationUCS”命令之前的链“BundleClose”中插入了一个自定义命令,但它在“Close”命令之后执行该命令。我曾尝试在“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