telephony - Inserted Chain of Command not executing in correct order -


i inserting custom command in chain "bundleclose" before "getattacheddatainformationucs" command, executing command after "close" command. have tried inserting before, after , commands other "getattacheddatainformationucs", gets executed after "close" command. how can work intended?

_commandmanager.insertcommandtochainofcommandafter("bundleclose", "getattacheddatainformationucs",     new list<commandactivator>     {         new commandactivator         {             commandtype = typeof(updatedispositiondatecommand),             name = "updatedispositiondatecommand"         }     }); 

here custom command:

public class updatedispositiondatecommand : ielementofcommand {     public updatedispositiondatecommand()     {         name = "updatedispositiondatecommand";     }      public bool execute(idictionary<string, object> parameters, iprogressupdater progressupdater)     {         return false;     }      public string name { get; set; } } 

here shortened version of log shows incorrect command execution:

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 

there bug on sdk. can guarantee it. submit many ticket iws/wde sdk. there command usage bug because of unity container. best way using this.

as can see @ bottom of page there getattacheddatainformationucs "0" command of chain. if insert 0 command first. if insert "1", be; getattach. -> command -> update ......

p.s. on execute method of command, false continue next command, true break command chain.

p.s. it's provided solution official 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  

Comments