Author Message
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
It's brought to our attention that customers might encounter a coding error if they used the Event class in their custom code in OD 6, and tried to upgrade to 7.0. For example:

in the updateFields method:

OD 6 code:
ArrayList eventPromptNames = new java.util.ArrayList(1);
eventPromptNames.add("myprompt");
event = new com.avaya.sce.runtime.Event(com.avaya.sce.runtimecommon.SCERT.EVENT_NOINPUT, (String[])eventPromptNames.toArray(new String[0]), new com.avaya.sce.runtime.Goto("node2", "countvar:countname", true, ""));

The way to correct this code is -
OD 7 code:
ArrayList<com.avaya.sce.runtime.PromptRefInfo> eventPromptNames = new java.util.ArrayList(1);
eventPromptNames.add(new com.avaya.sce.runtime.PromptRefInfo("myprompt", ""));
event = new com.avaya.sce.runtime.Event(com.avaya.sce.runtimecommon.SCERT.EVENT_NOINPUT, eventPromptNames.toArray(new com.avaya.sce.runtime.PromptRefInfo[0]), new com.avaya.sce.runtime.Goto("node2", "countvar:countname", true, ""));
Go to:   
Mobile view