|
@@ -0,0 +1,231 @@
|
|
|
|
|
+package flow;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * Class that represents a form. A form can contain prompts, fields and links
|
|
|
|
|
+ * as well as handlers for various events that may occur while the form is executing
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2021年11月22日 下午12时04分19秒
|
|
|
|
|
+ */
|
|
|
|
|
+public class GetDocuments extends com.avaya.sce.runtime.Form {
|
|
|
|
|
+
|
|
|
|
|
+ //{{START:CLASS:FIELDS
|
|
|
|
|
+ //}}END:CLASS:FIELDS
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Default constructor
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2021年11月22日 下午12时04分19秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public GetDocuments() {
|
|
|
|
|
+ //{{START:CLASS:CONSTRUCTOR
|
|
|
|
|
+ super();
|
|
|
|
|
+ setNeedsDefaultDisconnectHandler(false);
|
|
|
|
|
+ //}}END:CLASS:CONSTRUCTOR
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * This method is generated automatically and should not be manually edited.
|
|
|
|
|
+ * To manually edit the links for the node, override:
|
|
|
|
|
+ * void updateLinks(Collection links, SCESession mySession)
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ * @return a collection of links
|
|
|
|
|
+ */
|
|
|
|
|
+ public java.util.Collection getLinks(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ com.avaya.sce.runtime.Link link;
|
|
|
|
|
+ java.util.List list;
|
|
|
|
|
+ java.util.Collection grammarInfo = null;
|
|
|
|
|
+ java.util.Collection<com.avaya.sce.runtime.CaptureExpression> captureExpr = null;
|
|
|
|
|
+ // This item does not have any defined links
|
|
|
|
|
+ list = new java.util.ArrayList();
|
|
|
|
|
+ String ___tempGrammarName = null;
|
|
|
|
|
+
|
|
|
|
|
+ return(list);
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * This method is generated automatically and should not be manually edited.
|
|
|
|
|
+ * To manually edit the properties for the node, override:
|
|
|
|
|
+ * void updateProperties(Collection properties, SCESession mySession)
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ * @return a collection of properties
|
|
|
|
|
+ */
|
|
|
|
|
+ public java.util.Collection getProperties(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ com.avaya.sce.runtime.Property property;
|
|
|
|
|
+ java.util.List list;
|
|
|
|
|
+ // This item does not have any defined properties
|
|
|
|
|
+ list = new java.util.ArrayList();
|
|
|
|
|
+
|
|
|
|
|
+ return(list);
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * This method is generated automatically and should not be manually edited.
|
|
|
|
|
+ * To manually edit the event handlers for the node, override:
|
|
|
|
|
+ * void updateEvents(Collection events, SCESession mySession)
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ * @return a collection of Events
|
|
|
|
|
+ */
|
|
|
|
|
+ public java.util.Collection getEvents(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ java.util.List list;
|
|
|
|
|
+ com.avaya.sce.runtime.Event event;
|
|
|
|
|
+ list = new java.util.ArrayList(1);
|
|
|
|
|
+ java.util.List eventPromptNames = null;
|
|
|
|
|
+ String ___tempPromptName = null;
|
|
|
|
|
+ event = new com.avaya.sce.runtime.OnDisconnect("EndDocuments", false);
|
|
|
|
|
+ list.add(event);
|
|
|
|
|
+ return(list);
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Builds the list of fields for the form. This list is built
|
|
|
|
|
+ * by the code generator based on items in the call flow editor.
|
|
|
|
|
+ * This method should not be manually edited as changes may be
|
|
|
|
|
+ * overwritten by the code generator. <br>
|
|
|
|
|
+ * To update the fields for the form, override
|
|
|
|
|
+ * public void updateFields(Collection fields, com.avaya.sce.runtimecommon.SCESession mySession)
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public java.util.Collection getFields(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ java.util.List list = null;
|
|
|
|
|
+ java.util.List promptNames = null;
|
|
|
|
|
+ java.util.List eventPromptNames = null;
|
|
|
|
|
+ java.util.List grammarInfo = null;
|
|
|
|
|
+ java.util.List events = null;
|
|
|
|
|
+ java.util.List properties = null;
|
|
|
|
|
+ com.avaya.sce.runtime.Field field = null;
|
|
|
|
|
+ com.avaya.sce.runtime.Event event = null;
|
|
|
|
|
+ com.avaya.sce.runtime.Property property = null;
|
|
|
|
|
+
|
|
|
|
|
+ list = new java.util.ArrayList(1);
|
|
|
|
|
+ String ___tempPromptName = null;
|
|
|
|
|
+ // build the list of prompt names
|
|
|
|
|
+ promptNames = new java.util.ArrayList(1);
|
|
|
|
|
+
|
|
|
|
|
+ promptNames.add(new com.avaya.sce.runtime.PromptRefInfo("getDocuments", ""));
|
|
|
|
|
+
|
|
|
|
|
+ // build the list of grammar information objects for the field
|
|
|
|
|
+ String ___tempGrammarName = null;
|
|
|
|
|
+ grammarInfo = new java.util.ArrayList(2);
|
|
|
|
|
+ grammarInfo.add(new com.avaya.sce.runtime.GrammarInfo("getDocuments2", "1.0"));
|
|
|
|
|
+ grammarInfo.add(new com.avaya.sce.runtime.GrammarInfo("getDocuments1", "1.0"));
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // build events for the field: "GetDocuments"
|
|
|
|
|
+ events = new java.util.ArrayList(2);
|
|
|
|
|
+
|
|
|
|
|
+ // Item has no prompts associated
|
|
|
|
|
+ eventPromptNames = new java.util.ArrayList();
|
|
|
|
|
+
|
|
|
|
|
+ event = new com.avaya.sce.runtime.Event(com.avaya.sce.runtimecommon.SCERT.EVENT_NOINPUT, (com.avaya.sce.runtime.PromptRefInfo[])eventPromptNames.toArray(new com.avaya.sce.runtime.PromptRefInfo[0]), new com.avaya.sce.runtime.Goto("SetDocuments", 0, true, ""));
|
|
|
|
|
+ events.add(event);
|
|
|
|
|
+
|
|
|
|
|
+ // Item has no prompts associated
|
|
|
|
|
+ eventPromptNames = new java.util.ArrayList();
|
|
|
|
|
+
|
|
|
|
|
+ event = new com.avaya.sce.runtime.Event(com.avaya.sce.runtimecommon.SCERT.EVENT_NOMATCH, (com.avaya.sce.runtime.PromptRefInfo[])eventPromptNames.toArray(new com.avaya.sce.runtime.PromptRefInfo[0]), new com.avaya.sce.runtime.Goto("SetDocuments", 0, true, ""));
|
|
|
|
|
+ events.add(event);
|
|
|
|
|
+ properties = new java.util.ArrayList();
|
|
|
|
|
+
|
|
|
|
|
+ int nbest = 1;
|
|
|
|
|
+ field = new com.avaya.sce.runtime.Field("GetDocuments", false, true, grammarInfo, promptNames, events, properties, nbest, false, false, com.avaya.sce.runtimecommon.SCERT.RECTARG_BODYTEXT_GEN);
|
|
|
|
|
+ list.add(field);
|
|
|
|
|
+
|
|
|
|
|
+ return(list);
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Builds the list of prompts that are used by this flow item<br>
|
|
|
|
|
+ * This method is generated automatically and changes to it may
|
|
|
|
|
+ * be overwritten next time code is generated. To modify the list
|
|
|
|
|
+ * of prompts for the flow item, override:
|
|
|
|
|
+ * updatePrompts(Collection prompts, SCESession mySession)
|
|
|
|
|
+ * @return list of prompts for the menu
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public java.util.Collection getPrompts(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ java.util.List list = null;
|
|
|
|
|
+ String ___tempPromptName = null;
|
|
|
|
|
+ // Item has no prompts associated
|
|
|
|
|
+ list = new java.util.ArrayList();
|
|
|
|
|
+
|
|
|
|
|
+ return(list);
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Returns the submit item that identifies the next form to transition to.
|
|
|
|
|
+ * This method is generated automatically by the code generator
|
|
|
|
|
+ * and should not be manually edited. Manual edits may be overwritten
|
|
|
|
|
+ * by the code generator.
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public com.avaya.sce.runtime.Submit getSubmit(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ com.avaya.sce.runtime.Submit submit = null;
|
|
|
|
|
+ submit = new com.avaya.sce.runtime.Submit("SetDocuments");
|
|
|
|
|
+ return submit;
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Returns the record item for the form.
|
|
|
|
|
+ * This method is generated automatically by the code generator
|
|
|
|
|
+ * and should not be manually edited. Manual edits may be overwritten
|
|
|
|
|
+ * by the code generator.
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public com.avaya.sce.runtime.Record getRecord(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ com.avaya.sce.runtime.Record record = null;
|
|
|
|
|
+ java.util.Collection events = null;
|
|
|
|
|
+ java.util.Collection promptNames = null;
|
|
|
|
|
+ java.util.Collection eventPromptNames = null;
|
|
|
|
|
+ java.util.Collection grammarInfo = null;
|
|
|
|
|
+ com.avaya.sce.runtime.Event event = null;
|
|
|
|
|
+ return record;
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Returns the transfer item for the form.
|
|
|
|
|
+ * This method is generated automatically by the code generator
|
|
|
|
|
+ * and should not be manually edited. Manual edits may be overwritten
|
|
|
|
|
+ * by the code generator.
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public com.avaya.sce.runtime.Transfer getTransfer(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ com.avaya.sce.runtime.Transfer transfer = null;
|
|
|
|
|
+ return transfer;
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Returns a Throw object that will throw an event at runtime if set.
|
|
|
|
|
+ * This method is generated automatically by the code generator
|
|
|
|
|
+ * and should not be manually edited. Manual edits may be overwritten
|
|
|
|
|
+ * by the code generator.
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public com.avaya.sce.runtime.Throw getThrow(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ com.avaya.sce.runtime.Throw event = null;
|
|
|
|
|
+ return event;
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Builds the list of tracking items that are generated by this flow item<br>
|
|
|
|
|
+ * This method is generated automatically and changes to it may
|
|
|
|
|
+ * be overwritten next time code is generated.
|
|
|
|
|
+ * @return list of tracking items for the item
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public java.util.Collection getTrackingActions(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ java.util.List list = null;
|
|
|
|
|
+
|
|
|
|
|
+ // Item has no tracking items.
|
|
|
|
|
+ list = new java.util.ArrayList();
|
|
|
|
|
+ return(list);
|
|
|
|
|
+ }
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Returns a collection of platform objects, or extensions to VXML.
|
|
|
|
|
+ * These objects result in the generation of the VXML object tag that
|
|
|
|
|
+ * the VXML platform attempts to use to load the runtime library that implements
|
|
|
|
|
+ * the extension.
|
|
|
|
|
+ *
|
|
|
|
|
+ * This method is generated automatically by the code generator
|
|
|
|
|
+ * and should not be manually edited. Manual edits may be overwritten
|
|
|
|
|
+ * by the code generator.
|
|
|
|
|
+ * Last generated by Orchestration Designer at: 2022年3月3日 下午08时34分41秒
|
|
|
|
|
+ */
|
|
|
|
|
+ public java.util.Collection getPlatformObjects(com.avaya.sce.runtimecommon.SCESession mySession) {
|
|
|
|
|
+ java.util.Collection objectList = null;
|
|
|
|
|
+ java.util.Collection promptNames = null;
|
|
|
|
|
+ com.avaya.sce.runtime.PlatformObject platformObject = null;
|
|
|
|
|
+
|
|
|
|
|
+ // Form has no extension objects defined
|
|
|
|
|
+ objectList = new java.util.ArrayList();
|
|
|
|
|
+ return(objectList);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|