rngtest1.rng 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
  2. <attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
  3. <data type="string" rngui:readonly="true"/>
  4. </attribute>
  5. <attribute name="endpoint" rngui:label="Endpoint">
  6. <data type="string"/>
  7. </attribute>
  8. <element name='parameters' rngui:header="Properties">
  9. <element name="label" rngui:label="Label">
  10. <data type="string" rngui:label="Short description of the task"/>
  11. </element>
  12. <element name="method" rngui:label="Method">
  13. <choice>
  14. <value>:post</value>
  15. <value>:get</value>
  16. <value>:put</value>
  17. <value>:delete</value>
  18. </choice>
  19. </element>
  20. <element name="arguments" rngui:header="Arguments">
  21. <zeroOrMore rngui:label="Create Argument Pair">
  22. <element rngui:label='Name'>
  23. <anyName/>
  24. <data type="string" rngui:label="Value"/>
  25. </element>
  26. </zeroOrMore>
  27. </element>
  28. <element name="stream" rngui:header="Data Stream Handling" rngui:fold="closed">
  29. <element name="sensors" rngui:header="Sensors" rngui:fold="closed">
  30. <zeroOrMore rngui:label="Add Sensor">
  31. <element name="sensor">
  32. <element name="name" rngui:label="Label">
  33. <data type="string" rngui:label="Label"/>
  34. </element>
  35. <element name="extractor_url" rngui:label="Extractor Url">
  36. <data type="string" rngui:label="Service Url"/>
  37. </element>
  38. <element name="extractor_arg" rngui:label="Extractor Argument">
  39. <data type="string" rngui:label="Value / Json"/>
  40. </element>
  41. <element name="visualizer_url" rngui:label="Visualizer Url">
  42. <data type="string" rngui:label="Service Url"/>
  43. </element>
  44. <element name="visualizer_params" rngui:header="Visualizer Arguments">
  45. <zeroOrMore rngui:label="Create Visualizer Argument Pairs">
  46. <element rngui:label='Name'>
  47. <anyName/>
  48. <data type="string" rngui:label="Value / Json"/>
  49. </element>
  50. </zeroOrMore>
  51. </element>
  52. </element>
  53. </zeroOrMore>
  54. </element>
  55. <element name="aggregators" rngui:header="Aggregators" rngui:fold="closed">
  56. <zeroOrMore rngui:label="Add Aggregator">
  57. <element name="aggregator">
  58. <element name="name" rngui:label="Label">
  59. <data type="string" rngui:label="Label"/>
  60. </element>
  61. <element name="aggregator_url" rngui:label="Aggregator Url">
  62. <data type="string" rngui:label="Service Url"/>
  63. </element>
  64. <element name="aggregator_arg" rngui:label="Aggregator Argument">
  65. <data type="string" rngui:label="Value / Json"/>
  66. </element>
  67. </element>
  68. </zeroOrMore>
  69. </element>
  70. <element name="_cost" rngui:header="Costs" rngui:fold="closed">
  71. <zeroOrMore rngui:label="Create Cost Factor">
  72. <element name='_cost_factor'>
  73. <element name="name" rngui:label="Label">
  74. <data type="string" rngui:label="Label"/>
  75. </element>
  76. <element name="target" rngui:label="Target Value">
  77. <data type="string" rngui:label="Value"/>
  78. </element>
  79. <element name="vfunc_url" rngui:label="Violation Function Url">
  80. <data type="string" rngui:label="Service Url"/>
  81. </element>
  82. <element name="vfunc_arg" rngui:label="Violation Function Argument">
  83. <data type="string" rngui:label="Service Url"/>
  84. </element>
  85. <element name="vcost" rngui:label="Violation Cost">
  86. <data type="string" rngui:label="Value"/>
  87. </element>
  88. </element>
  89. </zeroOrMore>
  90. </element>
  91. </element>
  92. </element>
  93. <element name="code" rngui:header="Implementation">
  94. <element name="prepare" rngui:header="Prepare" rngui:label="Code" rngui:fold='closed_conditional'>
  95. <text rngui:label='Script that is executed, before a service call'/>
  96. </element>
  97. <element name="finalize" rngui:header="Finalize" rngui:label="Code" rngui:fold='closed_conditional'>
  98. <attribute name="output" rngui:label="Access Variable" rngui:default="result">
  99. <data type="string" rngui:readonly="true"/>
  100. </attribute>
  101. <text rngui:label='Script that is executed, when a service returns data'/>
  102. </element>
  103. <element name="update" rngui:header="Update" rngui:label="Code" rngui:fold='closed_conditional'>
  104. <attribute name="output" rngui:label="Access Variable" rngui:default="result">
  105. <data type="string" rngui:readonly="true"/>
  106. </attribute>
  107. <text rngui:label='Script that is executed, when a service sends intermediate data'/>
  108. </element>
  109. <element name="rescue" rngui:header="Rescue" rngui:label="Code" rngui:fold='closed_conditional'>
  110. <attribute name="output" rngui:label="Access Variable" rngui:default="result">
  111. <data type="string" rngui:readonly="true"/>
  112. </attribute>
  113. <text rngui:label='Script that is executed, if a service call fails'/>
  114. </element>
  115. </element>
  116. <element name="annotations" rngui:header="Annotations">
  117. <element name="_timing" rngui:header="Timing" rngui:fold="closed">
  118. <element name="_timing_min" rngui:label='Min in min'>
  119. <data type='float' rngui:label='Minutes'/>
  120. </element>
  121. <element name="_timing_max" rngui:label='Max in min'>
  122. <data type='float' rngui:label='Minutes'/>
  123. </element>
  124. <element name="_timing_avg" rngui:label='Avg in min'>
  125. <data type='float' rngui:label='Minutes'/>
  126. </element>
  127. </element>
  128. <element name="_notes" rngui:header="Notes" rngui:fold="closed">
  129. <element name="_notes_general" rngui:label='General'>
  130. <text rngui:wrap='true' rngui:label='Notes'/>
  131. </element>
  132. <element name="_notes_output" rngui:label='Output'>
  133. <text rngui:wrap='true' rngui:label='Notes'/>
  134. </element>
  135. <element name="_attachments">
  136. <zeroOrMore rngui:label="Create Attachment">
  137. <element name='_attachment' rngui:label='Attachment'>
  138. <attribute name="label" rngui:label="Note">
  139. <data type="string"/>
  140. </attribute>
  141. <data type="string" rngui:label="Url"/>
  142. </element>
  143. </zeroOrMore>
  144. </element>
  145. </element>
  146. </element>
  147. </element>