rngtest1.rng 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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">
  3. <data type="string" rngui:readonly="true" rngui:default="javascript:generate_id()"/>
  4. </attribute>
  5. <attribute name="endpoint" rngui:label="Endpoint">
  6. <data type="string"/>
  7. </attribute>
  8. <element name='parameters' rngui:header="Parameters">
  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>
  29. <element name="finalize" rngui:header="Finalize" rngui:label="Code">
  30. <attribute name="output" rngui:label="Access Variable">
  31. <data type="string" rngui:readonly="true" rngui:default="result"/>
  32. </attribute>
  33. <text rngui:label='Script that is executed, when a service returns data'/>
  34. </element>
  35. <element name="update" rngui:header="Update" rngui:label="Code">
  36. <attribute name="output" rngui:label="Access Variable">
  37. <data type="string" rngui:readonly="true" rngui:default="result"/>
  38. </attribute>
  39. <text rngui:label='Script that is executed, when a service sends intermediate data'/>
  40. </element>
  41. </element>