UtilityTest.xaction 2.69 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
<action-sequence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <name>UtilityTest.xaction</name>
  <title>Utility Test</title>
  <version>1</version>
  <logging-level>DEBUG</logging-level>

  <documentation>
    <author>Doug Moran</author>
    <description>Test of the utility component functionality</description>
    <help></help>
  </documentation>

  <inputs>
    <a-map type="property-map-list">
      <default-value type="property-map-list">
        <property-map>
          <entry key="apple">Good</entry>
          <entry key="orange">Sweet</entry>
          <entry key="grapefruit">Sour</entry>
          <entry key="pomegranate">Funny</entry>
        </property-map>
        <property-map>
          <entry key="carrot">Good</entry>
          <entry key="cucumber">Long</entry>
          <entry key="potato">Dimply</entry>
          <entry key="broccoli">Flowery</entry>
          <entry key="zucchini">Funny</entry>
        </property-map>
        <property-map>
          <entry key="big mac">Sloppy</entry>
          <entry key="whopper">Lame</entry>
          <entry key="taco">Greasy</entry>
        </property-map>
      </default-value>
    </a-map>
    
    <a-string type="string">
      <default-value type="string">A String</default-value>    
    </a-string>

    <b-string type="string">
      <default-value type="string">B String</default-value>    
    </b-string>

    <c-string type="string">
      <default-value type="string">This is the Message - Param {0} Param {1}</default-value>    
    </c-string>

    <z-out type="property-map-list" />

  </inputs>
  
  <outputs>
    <z-out type="property-map-list" />
  </outputs>
  
  <actions>
    <action-definition>
      <action-name>format</action-name>
      <component-name>UtilityComponent</component-name>

      <action-inputs>
        <a-string type="string"/>
        <b-string type="string"/>
        <c-string type="string"/>

        <d-string type="string">
          <default-value type="string">D String</default-value>    
        </d-string>
      </action-inputs>

      <action-outputs>
        <action1-out type="string"/>
      </action-outputs>

      <component-definition>
        <format>
          <format-string>"This is the Message - Param {0} Param {1}"</format-string>
          <arg>a-string</arg>
          <arg>b-string</arg>
          <return>tmp-out</return>
        </format>
        <copy>
          <from>tmp-out</from>
          <return>action1-out</return>
        </copy>
        <print>
          <delimiter>" - "</delimiter>
          <arg>tmp-out</arg>
          <arg>" Constant "</arg>
          <arg>d-string</arg>
        </print>
      </component-definition>
    </action-definition>

  </actions>
</action-sequence>