I've inherited some 99% completed Agent Scripts, used in an Inbound environment.
However, I am not seeing the reporting activity which I expect to see (attached data written to ICON and then into INFOMART).
I can see KVPs in messages in the log files, so the output from the Script is sending something back to SIP Server, but have narrowed down the issue to the way in which the API call in the Agent Script is configured.
On the JSP tab, I have:
com.genesyslab.ail.AilFactory factory = com.genesyslab.ail.AilLoader.getAilFactory();
com.genesyslab.ail.Dn dn = factory.getDn(dnId);
com.genesyslab.ail.Interaction ixn = factory.getInteraction(interactionId);
if(ixn != null) {
java.util.Hashtable map = new java.util.Hashtable();
map.put("ValueA",A);
map.put("ValueB",B);
map.put("ValueC",C);
map.put("ValueD",D);
map.put("ValueE",E);
map.put("AttributeConnectionID",ixn.getTConnectionId());
map.put("AttributeConnID",ixn.getTConnectionId());
try{
dn.sendUserEvent(map);
}catch(com.genesyslab.ail.exception.RequestFailedException exp) {}
}
So it is using the sendUserEvent and the AttributeConnID is set.
Would this work better if it was using be RequestUpdateUserData or RequestAttachuserData instead? Bearing in mind this could, in theory, happen after the call has ended?
If it should be using either of those, what change do I need to make to the JSP?
If using sendUserEvent is correct, and the AttributeConnID is set, why is the data not being attached?