We are customizing GAD for outbound with customized outbound fields. We have set the “send_attribute” and the respective fields are shown in GAD. Below is the code taken from a working GAD where it was customized to save the customized fields for outbound.
String CCU_CallStatus="asdadasdasdadsdasd";
com.genesyslab.ail.AilFactory factory = com.genesyslab.ail.AilLoader.getAilFactory();
String idInteraction=(String)request.getParameter( "idInteraction" ) ;
com.genesyslab.ail.Interaction interaction = factory.getInteraction( (String)request.getParameter( "idInteraction" ) );
com.genesyslab.ail.InteractionVoiceOutbound IVO = (com.genesyslab.ail.InteractionVoiceOutbound) factory.getInteraction( (String)request.getParameter( "idInteraction" ) );
com.genesyslab.ail.OutboundRecord outboundRecord ;
outboundRecord=IVO.getActiveRecord();
if (CCU_CallStatus != null) {
interaction.setAttachedData("CCU_CallStatus",CCU_CallStatus);
outboundRecord.setCustomField("CCU_CallStatus",CCU_CallStatus);
}
interaction.saveAttachedData();
But when i run this code i am getting “com.genesyslab.ail.core.InteractionVoiceImpl cannot be cast to com.genesyslab.ail.InteractionVoiceOutbound” error. I have been breaking my head camparing both the GAD and was not able to find anything.
Am I missing any jar file or missing any setting in OCS?