GetDATA.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package flow;
  2. /**
  3. * The Data class handles many types of server-side operations including data
  4. * collection (from a data sources such as a database, or web service), variable
  5. * assignments and operations (like copying variable values, performing mathematic
  6. * operations, and collection iteration), conditional evaluation to control callflow
  7. * execution based on variable values, and logging/tracing statements.
  8. *
  9. * Items created in the getDataActions() method are executed/evaluated in order
  10. * and if a condional branch condition evaluates to "true" then the branch is
  11. * activated and the execution of data actions is halted. If no "true" conditions
  12. * are encountered, then all data actions will be executed/evaluated and the
  13. * application will proceed to the "Default" servlet.
  14. * Last generated by Orchestration Designer at: 2020年5月18日 上午11时09分43秒
  15. */
  16. public class GetDATA extends com.avaya.sce.runtime.Data {
  17. //{{START:CLASS:FIELDS
  18. //}}END:CLASS:FIELDS
  19. /**
  20. * Default constructor
  21. * Last generated by Orchestration Designer at: 2020年5月18日 上午11时09分43秒
  22. */
  23. public GetDATA() {
  24. //{{START:CLASS:CONSTRUCTOR
  25. super();
  26. //}}END:CLASS:CONSTRUCTOR
  27. }
  28. /**
  29. * Returns the Next item which will forward application execution
  30. * to the next form in the call flow.
  31. * Last generated by Orchestration Designer at: 2021年12月20日 下午09时59分54秒
  32. */
  33. public com.avaya.sce.runtime.Next getNext(com.avaya.sce.runtimecommon.SCESession mySession) {
  34. com.avaya.sce.runtime.Next next = null;
  35. return next;
  36. }
  37. /**
  38. * Create a list of local variables used by items in the data node.
  39. *
  40. * This method is generated automatically by the code generator
  41. * and should not be manually edited. Manual edits may be overwritten
  42. * by the code generator.
  43. * Last generated by Orchestration Designer at: 2021年12月20日 下午09时59分54秒
  44. */
  45. public java.util.Collection<VariableInfo> getLocalVariables(){
  46. java.util.Collection<VariableInfo> variables = new java.util.ArrayList<VariableInfo>();
  47. return variables;
  48. }
  49. /**
  50. * Creates and conditionally executes operations that have been configured
  51. * in the Callflow. This method will build a collection of operations and
  52. * have the framework execute the operations by calling evaluateActions().
  53. * If the evaluation causes the framework to forward to a different servlet
  54. * then execution stops.
  55. * Returning true from this method means that the framework has forwarded the
  56. * request to a different servlet. Returning false means that the default
  57. * Next will be invoked.
  58. *
  59. * This method is generated automatically by the code generator
  60. * and should not be manually edited. Manual edits may be overwritten
  61. * by the code generator.
  62. * Last generated by Orchestration Designer at: 2021年12月20日 下午09时59分54秒
  63. */
  64. public boolean executeDataActions(com.avaya.sce.runtimecommon.SCESession mySession) throws Exception {
  65. java.util.Collection actions = null;
  66. actions = new java.util.ArrayList(2);
  67. //{{START:CODEGEN:EXTENSIONPOINT:com.avaya.sce.cti.ui.callInfo
  68. actions.add(com.avaya.sce.runtime.connectivity.cti.CTIOpFactory.createCallInfoInitialCallOperation(mySession));
  69. //}}END:CODEGEN:EXTENSIONPOINT:com.avaya.sce.cti.ui.callInfo
  70. if(evaluateActions(actions, mySession)) {
  71. return true;
  72. }
  73. actions = null;
  74. if(((com.avaya.sce.runtime.Condition)new com.avaya.sce.runtime.Condition("condition1", "isVIP", com.avaya.sce.runtime.Expression.STRING_EQUAL_IGNORE, "1", false).setDebugId(193)).evaluate(mySession)) {
  75. actions = new java.util.ArrayList(1);
  76. actions.add(new com.avaya.sce.runtime.Next("OUTDataServlet", "VIP").setDebugId(195));
  77. if(evaluateActions(actions, mySession)) {
  78. return true;
  79. }
  80. actions = null;
  81. } else {
  82. actions = new java.util.ArrayList(1);
  83. actions.add(new com.avaya.sce.runtime.Next("ZcdMenu", "普通用户").setDebugId(43));
  84. if(evaluateActions(actions, mySession)) {
  85. return true;
  86. }
  87. actions = null;
  88. }
  89. // return false if the evaluation of actions did not cause a servlet forward or redirect
  90. return false;
  91. }
  92. }