cpee 1.3.129 → 1.3.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/cpee.gemspec +1 -1
- data/lib/cpee/processtransformation/bpel/Repository/booking.bpel +125 -0
- data/lib/cpee/processtransformation/bpel/Repository/booking.wsdl +72 -0
- data/lib/cpee/processtransformation/bpel/Repository/booking/airline.wsdl +71 -0
- data/lib/cpee/processtransformation/bpel/Repository/booking/hotel.wsdl +64 -0
- data/lib/cpee/processtransformation/bpel/Repository/booking/report.wsdl +71 -0
- data/lib/cpee/processtransformation/bpel/bpel2wee.rb +34 -0
- data/lib/cpee/processtransformation/bpel/bpelserver.ru +64 -0
- data/lib/cpee/processtransformation/bpel/bpelserver.xml +70 -0
- data/lib/cpee/processtransformation/bpel/lib/BPEL_Transform.rb +367 -0
- data/lib/cpee/processtransformation/bpmn2.rb +273 -0
- data/lib/cpee/processtransformation/cpee.rb +118 -0
- data/lib/cpee/processtransformation/structures.rb +426 -0
- data/server/instances/1/properties.xml +101 -69
- data/server/instances/10/properties.xml +109 -0
- data/server/instances/11/properties.xml +109 -0
- data/server/instances/2/properties.xml +44 -191
- data/server/instances/3/properties.xml +44 -70
- data/server/instances/4/properties.xml +68 -28
- data/server/instances/5/properties.xml +70 -10
- data/server/instances/6/properties.xml +55 -175
- data/server/instances/7/properties.xml +83 -0
- data/server/instances/8/properties.xml +83 -0
- data/server/instances/9/properties.xml +77 -0
- metadata +111 -111
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/consumer-secret +0 -1
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret +0 -1
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml +0 -27
- data/server/instances/6/notifications/5c8c36c3dfcec8e36c3b25859a71778c/consumer-secret +0 -1
- data/server/instances/6/notifications/5c8c36c3dfcec8e36c3b25859a71778c/producer-secret +0 -1
- data/server/instances/6/notifications/5c8c36c3dfcec8e36c3b25859a71778c/subscription.xml +0 -27
- data/server/server.pid +0 -1
| @@ -1,65 +1,90 @@ | |
| 1 1 | 
             
            <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
         | 
| 2 | 
            -
              <info> | 
| 3 | 
            -
              <state> | 
| 2 | 
            +
              <info>Enter info here</info>
         | 
| 3 | 
            +
              <state>ready</state>
         | 
| 4 4 | 
             
              <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
         | 
| 5 | 
            -
              <positions | 
| 6 | 
            -
                <a1>after</a1>
         | 
| 7 | 
            -
              </positions>
         | 
| 5 | 
            +
              <positions/>
         | 
| 8 6 | 
             
              <dataelements>
         | 
| 9 | 
            -
                < | 
| 7 | 
            +
                <persons>3</persons>
         | 
| 8 | 
            +
                <card>Visa_12345</card>
         | 
| 9 | 
            +
                <airline>null</airline>
         | 
| 10 | 
            +
                <hotels>[]</hotels>
         | 
| 11 | 
            +
                <from>Vienna</from>
         | 
| 12 | 
            +
                <to>Prague</to>
         | 
| 13 | 
            +
                <costs>0</costs>
         | 
| 10 14 | 
             
              </dataelements>
         | 
| 11 15 | 
             
              <endpoints>
         | 
| 12 | 
            -
                < | 
| 16 | 
            +
                <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
         | 
| 17 | 
            +
                <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
         | 
| 18 | 
            +
                <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
         | 
| 13 19 | 
             
              </endpoints>
         | 
| 14 | 
            -
              <dsl> | 
| 15 | 
            -
               | 
| 16 | 
            -
                 | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 20 | 
            +
              <dsl>call :a1, :bookAir, { :method => "post", :parameters => { :from => data.from, :to => data.to, :persons => data.persons } }, <<-end 
         | 
| 21 | 
            +
              data.airline = result.value('id')
         | 
| 22 | 
            +
                data.costs += result.value('costs').to_f
         | 
| 23 | 
            +
                status.update 1, 'Hotel'
         | 
| 24 | 
            +
            end
         | 
| 25 | 
            +
            parallel do
         | 
| 26 | 
            +
              loop pre_test{data.persons > 0} do
         | 
| 27 | 
            +
                parallel_branch data.persons do |p|
         | 
| 28 | 
            +
                  call :a2, :bookHotel, { :method => "post", :parameters => { :to => data.to } }, <<-end 
         | 
| 29 | 
            +
                    data.hotels << result.value('id')
         | 
| 30 | 
            +
                      data.costs += result.value('costs').to_f
         | 
| 31 | 
            +
                  end
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
                manipulate :a3, <<-end 
         | 
| 34 | 
            +
                  data.persons -= 1
         | 
| 35 | 
            +
                end
         | 
| 20 36 | 
             
              end
         | 
| 21 37 | 
             
            end
         | 
| 22 | 
            -
             | 
| 23 | 
            -
            data. | 
| 38 | 
            +
            choose do
         | 
| 39 | 
            +
              alternative data.costs > 700 do
         | 
| 40 | 
            +
                call :a4, :approve, { :method => "post", :parameters => { :costs => data.costs } }
         | 
| 41 | 
            +
              end
         | 
| 24 42 | 
             
            end
         | 
| 25 43 | 
             
            </dsl>
         | 
| 26 44 | 
             
              <dslx>
         | 
| 27 45 | 
             
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 28 | 
            -
                   | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
            -
                      < | 
| 32 | 
            -
                        < | 
| 33 | 
            -
             | 
| 34 | 
            -
             | 
| 46 | 
            +
                  <call id="a1" endpoint="bookAir">
         | 
| 47 | 
            +
                    <parameters>
         | 
| 48 | 
            +
                      <method>post</method>
         | 
| 49 | 
            +
                      <parameters>
         | 
| 50 | 
            +
                        <from>data.from</from>
         | 
| 51 | 
            +
                        <to>data.to</to>
         | 
| 52 | 
            +
                        <persons>data.persons</persons>
         | 
| 53 | 
            +
                      </parameters>
         | 
| 54 | 
            +
                    </parameters>
         | 
| 55 | 
            +
                    <manipulate output="result">  data.airline = result.value('id')
         | 
| 56 | 
            +
                data.costs += result.value('costs').to_f
         | 
| 57 | 
            +
                status.update 1, 'Hotel'</manipulate>
         | 
| 58 | 
            +
                  </call>
         | 
| 59 | 
            +
                  <parallel>
         | 
| 60 | 
            +
                    <loop pre_test="data.persons > 0">
         | 
| 61 | 
            +
                      <parallel_branch pass="data.persons" local="p">
         | 
| 62 | 
            +
                        <call id="a2" endpoint="bookHotel">
         | 
| 35 63 | 
             
                          <parameters>
         | 
| 36 | 
            -
                            < | 
| 64 | 
            +
                            <method>post</method>
         | 
| 65 | 
            +
                            <parameters>
         | 
| 66 | 
            +
                              <to>data.to</to>
         | 
| 67 | 
            +
                            </parameters>
         | 
| 37 68 | 
             
                          </parameters>
         | 
| 38 | 
            -
             | 
| 39 | 
            -
                      </ | 
| 40 | 
            -
             | 
| 41 | 
            -
             | 
| 42 | 
            -
                      < | 
| 69 | 
            +
                          <manipulate output="result">        data.hotels << result.value('id')
         | 
| 70 | 
            +
                      data.costs += result.value('costs').to_f</manipulate>
         | 
| 71 | 
            +
                        </call>
         | 
| 72 | 
            +
                      </parallel_branch>
         | 
| 73 | 
            +
                      <manipulate id="a3">      data.persons -= 1</manipulate>
         | 
| 74 | 
            +
                    </loop>
         | 
| 75 | 
            +
                  </parallel>
         | 
| 76 | 
            +
                  <choose>
         | 
| 77 | 
            +
                    <alternative condition="data.costs > 700">
         | 
| 78 | 
            +
                      <call id="a4" endpoint="approve">
         | 
| 43 79 | 
             
                        <parameters>
         | 
| 44 | 
            -
                          <label/>
         | 
| 45 80 | 
             
                          <method>post</method>
         | 
| 46 81 | 
             
                          <parameters>
         | 
| 47 | 
            -
                            < | 
| 82 | 
            +
                            <costs>data.costs</costs>
         | 
| 48 83 | 
             
                          </parameters>
         | 
| 49 84 | 
             
                        </parameters>
         | 
| 50 85 | 
             
                      </call>
         | 
| 51 | 
            -
                    </ | 
| 52 | 
            -
                  </ | 
| 53 | 
            -
                  <call id="a2" endpoint="timeout">
         | 
| 54 | 
            -
                    <parameters>
         | 
| 55 | 
            -
                      <label/>
         | 
| 56 | 
            -
                      <method>post</method>
         | 
| 57 | 
            -
                      <parameters>
         | 
| 58 | 
            -
                        <timeout>b</timeout>
         | 
| 59 | 
            -
                      </parameters>
         | 
| 60 | 
            -
                    </parameters>
         | 
| 61 | 
            -
                    <manipulate>data.x += "a2,"</manipulate>
         | 
| 62 | 
            -
                  </call>
         | 
| 86 | 
            +
                    </alternative>
         | 
| 87 | 
            +
                  </choose>
         | 
| 63 88 | 
             
                </description>
         | 
| 64 89 | 
             
              </dslx>
         | 
| 65 90 | 
             
              <status>
         | 
| @@ -68,41 +93,48 @@ end | |
| 68 93 | 
             
              </status>
         | 
| 69 94 | 
             
              <description>
         | 
| 70 95 | 
             
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 71 | 
            -
                   | 
| 72 | 
            -
             | 
| 73 | 
            -
             | 
| 74 | 
            -
                      < | 
| 75 | 
            -
                        < | 
| 76 | 
            -
             | 
| 77 | 
            -
             | 
| 96 | 
            +
                  <call id="a1" endpoint="bookAir">
         | 
| 97 | 
            +
                    <parameters>
         | 
| 98 | 
            +
                      <method>post</method>
         | 
| 99 | 
            +
                      <parameters>
         | 
| 100 | 
            +
                        <from>data.from</from>
         | 
| 101 | 
            +
                        <to>data.to</to>
         | 
| 102 | 
            +
                        <persons>data.persons</persons>
         | 
| 103 | 
            +
                      </parameters>
         | 
| 104 | 
            +
                    </parameters>
         | 
| 105 | 
            +
                    <manipulate output="result">  data.airline = result.value('id')
         | 
| 106 | 
            +
                data.costs += result.value('costs').to_f
         | 
| 107 | 
            +
                status.update 1, 'Hotel'</manipulate>
         | 
| 108 | 
            +
                  </call>
         | 
| 109 | 
            +
                  <parallel>
         | 
| 110 | 
            +
                    <loop pre_test="data.persons > 0">
         | 
| 111 | 
            +
                      <parallel_branch pass="data.persons" local="p">
         | 
| 112 | 
            +
                        <call id="a2" endpoint="bookHotel">
         | 
| 78 113 | 
             
                          <parameters>
         | 
| 79 | 
            -
                            < | 
| 114 | 
            +
                            <method>post</method>
         | 
| 115 | 
            +
                            <parameters>
         | 
| 116 | 
            +
                              <to>data.to</to>
         | 
| 117 | 
            +
                            </parameters>
         | 
| 80 118 | 
             
                          </parameters>
         | 
| 81 | 
            -
             | 
| 82 | 
            -
                      </ | 
| 83 | 
            -
             | 
| 84 | 
            -
             | 
| 85 | 
            -
                      < | 
| 119 | 
            +
                          <manipulate output="result">        data.hotels << result.value('id')
         | 
| 120 | 
            +
                      data.costs += result.value('costs').to_f</manipulate>
         | 
| 121 | 
            +
                        </call>
         | 
| 122 | 
            +
                      </parallel_branch>
         | 
| 123 | 
            +
                      <manipulate id="a3">      data.persons -= 1</manipulate>
         | 
| 124 | 
            +
                    </loop>
         | 
| 125 | 
            +
                  </parallel>
         | 
| 126 | 
            +
                  <choose>
         | 
| 127 | 
            +
                    <alternative condition="data.costs > 700">
         | 
| 128 | 
            +
                      <call id="a4" endpoint="approve">
         | 
| 86 129 | 
             
                        <parameters>
         | 
| 87 | 
            -
                          <label/>
         | 
| 88 130 | 
             
                          <method>post</method>
         | 
| 89 131 | 
             
                          <parameters>
         | 
| 90 | 
            -
                            < | 
| 132 | 
            +
                            <costs>data.costs</costs>
         | 
| 91 133 | 
             
                          </parameters>
         | 
| 92 134 | 
             
                        </parameters>
         | 
| 93 135 | 
             
                      </call>
         | 
| 94 | 
            -
                    </ | 
| 95 | 
            -
                  </ | 
| 96 | 
            -
                  <call id="a2" endpoint="timeout">
         | 
| 97 | 
            -
                    <parameters>
         | 
| 98 | 
            -
                      <label/>
         | 
| 99 | 
            -
                      <method>post</method>
         | 
| 100 | 
            -
                      <parameters>
         | 
| 101 | 
            -
                        <timeout>b</timeout>
         | 
| 102 | 
            -
                      </parameters>
         | 
| 103 | 
            -
                    </parameters>
         | 
| 104 | 
            -
                    <manipulate>data.x += "a2,"</manipulate>
         | 
| 105 | 
            -
                  </call>
         | 
| 136 | 
            +
                    </alternative>
         | 
| 137 | 
            +
                  </choose>
         | 
| 106 138 | 
             
                </description>
         | 
| 107 139 | 
             
              </description>
         | 
| 108 140 | 
             
              <transformation>
         | 
| @@ -0,0 +1,109 @@ | |
| 1 | 
            +
            <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
         | 
| 2 | 
            +
              <info>Enter info here</info>
         | 
| 3 | 
            +
              <state>ready</state>
         | 
| 4 | 
            +
              <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
         | 
| 5 | 
            +
              <positions>
         | 
| 6 | 
            +
                <a1>after</a1>
         | 
| 7 | 
            +
              </positions>
         | 
| 8 | 
            +
              <dataelements>
         | 
| 9 | 
            +
                <x/>
         | 
| 10 | 
            +
              </dataelements>
         | 
| 11 | 
            +
              <endpoints>
         | 
| 12 | 
            +
                <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
         | 
| 13 | 
            +
              </endpoints>
         | 
| 14 | 
            +
              <dsl>call :a1, :timeout, { :method => "post", :parameters => { :timeout => 2 } }, <<-end 
         | 
| 15 | 
            +
              data.x += "a1,"
         | 
| 16 | 
            +
            end
         | 
| 17 | 
            +
            call :a2, :timeout, { :method => "post", :parameters => { :timeout => 4 } }, <<-end 
         | 
| 18 | 
            +
              data.x += "a2,"
         | 
| 19 | 
            +
            end
         | 
| 20 | 
            +
            call :a3, :timeout, { :method => "post", :parameters => { :timeout => 4 } }, <<-end 
         | 
| 21 | 
            +
              data.x += "a3,"
         | 
| 22 | 
            +
            end
         | 
| 23 | 
            +
            </dsl>
         | 
| 24 | 
            +
              <dslx>
         | 
| 25 | 
            +
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 26 | 
            +
                  <!--{{{-->
         | 
| 27 | 
            +
                  <call id="a1" endpoint="timeout">
         | 
| 28 | 
            +
                    <parameters>
         | 
| 29 | 
            +
                      <!--{{{-->
         | 
| 30 | 
            +
                      <method>post</method>
         | 
| 31 | 
            +
                      <parameters>
         | 
| 32 | 
            +
                        <timeout>2</timeout>
         | 
| 33 | 
            +
                      </parameters>
         | 
| 34 | 
            +
                    </parameters>
         | 
| 35 | 
            +
                    <!--}}}-->
         | 
| 36 | 
            +
                    <manipulate output="result">  data.x += "a1,"</manipulate>
         | 
| 37 | 
            +
                  </call>
         | 
| 38 | 
            +
                  <call id="a2" endpoint="timeout">
         | 
| 39 | 
            +
                    <parameters>
         | 
| 40 | 
            +
                      <!--{{{-->
         | 
| 41 | 
            +
                      <method>post</method>
         | 
| 42 | 
            +
                      <parameters>
         | 
| 43 | 
            +
                        <timeout>4</timeout>
         | 
| 44 | 
            +
                      </parameters>
         | 
| 45 | 
            +
                    </parameters>
         | 
| 46 | 
            +
                    <!--}}}-->
         | 
| 47 | 
            +
                    <manipulate output="result">  data.x += "a2,"</manipulate>
         | 
| 48 | 
            +
                  </call>
         | 
| 49 | 
            +
                  <call id="a3" endpoint="timeout">
         | 
| 50 | 
            +
                    <parameters>
         | 
| 51 | 
            +
                      <!--{{{-->
         | 
| 52 | 
            +
                      <method>post</method>
         | 
| 53 | 
            +
                      <parameters>
         | 
| 54 | 
            +
                        <timeout>4</timeout>
         | 
| 55 | 
            +
                      </parameters>
         | 
| 56 | 
            +
                    </parameters>
         | 
| 57 | 
            +
                    <!--}}}-->
         | 
| 58 | 
            +
                    <manipulate output="result">  data.x += "a3,"</manipulate>
         | 
| 59 | 
            +
                  </call>
         | 
| 60 | 
            +
                </description>
         | 
| 61 | 
            +
              </dslx>
         | 
| 62 | 
            +
              <status>
         | 
| 63 | 
            +
                <id>0</id>
         | 
| 64 | 
            +
                <message>undefined</message>
         | 
| 65 | 
            +
              </status>
         | 
| 66 | 
            +
              <description>
         | 
| 67 | 
            +
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 68 | 
            +
                  <!--{{{-->
         | 
| 69 | 
            +
                  <call id="a1" endpoint="timeout">
         | 
| 70 | 
            +
                    <parameters>
         | 
| 71 | 
            +
                      <!--{{{-->
         | 
| 72 | 
            +
                      <method>post</method>
         | 
| 73 | 
            +
                      <parameters>
         | 
| 74 | 
            +
                        <timeout>2</timeout>
         | 
| 75 | 
            +
                      </parameters>
         | 
| 76 | 
            +
                    </parameters>
         | 
| 77 | 
            +
                    <!--}}}-->
         | 
| 78 | 
            +
                    <manipulate output="result">  data.x += "a1,"</manipulate>
         | 
| 79 | 
            +
                  </call>
         | 
| 80 | 
            +
                  <call id="a2" endpoint="timeout">
         | 
| 81 | 
            +
                    <parameters>
         | 
| 82 | 
            +
                      <!--{{{-->
         | 
| 83 | 
            +
                      <method>post</method>
         | 
| 84 | 
            +
                      <parameters>
         | 
| 85 | 
            +
                        <timeout>4</timeout>
         | 
| 86 | 
            +
                      </parameters>
         | 
| 87 | 
            +
                    </parameters>
         | 
| 88 | 
            +
                    <!--}}}-->
         | 
| 89 | 
            +
                    <manipulate output="result">  data.x += "a2,"</manipulate>
         | 
| 90 | 
            +
                  </call>
         | 
| 91 | 
            +
                  <call id="a3" endpoint="timeout">
         | 
| 92 | 
            +
                    <parameters>
         | 
| 93 | 
            +
                      <!--{{{-->
         | 
| 94 | 
            +
                      <method>post</method>
         | 
| 95 | 
            +
                      <parameters>
         | 
| 96 | 
            +
                        <timeout>4</timeout>
         | 
| 97 | 
            +
                      </parameters>
         | 
| 98 | 
            +
                    </parameters>
         | 
| 99 | 
            +
                    <!--}}}-->
         | 
| 100 | 
            +
                    <manipulate output="result">  data.x += "a3,"</manipulate>
         | 
| 101 | 
            +
                  </call>
         | 
| 102 | 
            +
                </description>
         | 
| 103 | 
            +
              </description>
         | 
| 104 | 
            +
              <transformation>
         | 
| 105 | 
            +
                <description type="copy"/>
         | 
| 106 | 
            +
                <dataelements type="rest"/>
         | 
| 107 | 
            +
                <endpoints type="rest"/>
         | 
| 108 | 
            +
              </transformation>
         | 
| 109 | 
            +
            </properties>
         | 
| @@ -0,0 +1,109 @@ | |
| 1 | 
            +
            <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
         | 
| 2 | 
            +
              <info/>
         | 
| 3 | 
            +
              <state>ready</state>
         | 
| 4 | 
            +
              <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
         | 
| 5 | 
            +
              <positions>
         | 
| 6 | 
            +
                <a1>after</a1>
         | 
| 7 | 
            +
              </positions>
         | 
| 8 | 
            +
              <dataelements>
         | 
| 9 | 
            +
                <x/>
         | 
| 10 | 
            +
              </dataelements>
         | 
| 11 | 
            +
              <endpoints>
         | 
| 12 | 
            +
                <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
         | 
| 13 | 
            +
              </endpoints>
         | 
| 14 | 
            +
              <dsl>call :a1, :timeout, { :method => "post", :parameters => { :timeout => 2 } }, <<-end 
         | 
| 15 | 
            +
              data.x += "a1,"
         | 
| 16 | 
            +
            end
         | 
| 17 | 
            +
            call :a2, :timeout, { :method => "post", :parameters => { :timeout => 4 } }, <<-end 
         | 
| 18 | 
            +
              data.x += "a2,"
         | 
| 19 | 
            +
            end
         | 
| 20 | 
            +
            call :a3, :timeout, { :method => "post", :parameters => { :timeout => 4 } }, <<-end 
         | 
| 21 | 
            +
              data.x += "a3,"
         | 
| 22 | 
            +
            end
         | 
| 23 | 
            +
            </dsl>
         | 
| 24 | 
            +
              <dslx>
         | 
| 25 | 
            +
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 26 | 
            +
                  <!--{{{-->
         | 
| 27 | 
            +
                  <call id="a1" endpoint="timeout">
         | 
| 28 | 
            +
                    <parameters>
         | 
| 29 | 
            +
                      <!--{{{-->
         | 
| 30 | 
            +
                      <method>post</method>
         | 
| 31 | 
            +
                      <parameters>
         | 
| 32 | 
            +
                        <timeout>2</timeout>
         | 
| 33 | 
            +
                      </parameters>
         | 
| 34 | 
            +
                    </parameters>
         | 
| 35 | 
            +
                    <!--}}}-->
         | 
| 36 | 
            +
                    <manipulate output="result">  data.x += "a1,"</manipulate>
         | 
| 37 | 
            +
                  </call>
         | 
| 38 | 
            +
                  <call id="a2" endpoint="timeout">
         | 
| 39 | 
            +
                    <parameters>
         | 
| 40 | 
            +
                      <!--{{{-->
         | 
| 41 | 
            +
                      <method>post</method>
         | 
| 42 | 
            +
                      <parameters>
         | 
| 43 | 
            +
                        <timeout>4</timeout>
         | 
| 44 | 
            +
                      </parameters>
         | 
| 45 | 
            +
                    </parameters>
         | 
| 46 | 
            +
                    <!--}}}-->
         | 
| 47 | 
            +
                    <manipulate output="result">  data.x += "a2,"</manipulate>
         | 
| 48 | 
            +
                  </call>
         | 
| 49 | 
            +
                  <call id="a3" endpoint="timeout">
         | 
| 50 | 
            +
                    <parameters>
         | 
| 51 | 
            +
                      <!--{{{-->
         | 
| 52 | 
            +
                      <method>post</method>
         | 
| 53 | 
            +
                      <parameters>
         | 
| 54 | 
            +
                        <timeout>4</timeout>
         | 
| 55 | 
            +
                      </parameters>
         | 
| 56 | 
            +
                    </parameters>
         | 
| 57 | 
            +
                    <!--}}}-->
         | 
| 58 | 
            +
                    <manipulate output="result">  data.x += "a3,"</manipulate>
         | 
| 59 | 
            +
                  </call>
         | 
| 60 | 
            +
                </description>
         | 
| 61 | 
            +
              </dslx>
         | 
| 62 | 
            +
              <status>
         | 
| 63 | 
            +
                <id>0</id>
         | 
| 64 | 
            +
                <message>undefined</message>
         | 
| 65 | 
            +
              </status>
         | 
| 66 | 
            +
              <description>
         | 
| 67 | 
            +
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 68 | 
            +
                  <!--{{{-->
         | 
| 69 | 
            +
                  <call id="a1" endpoint="timeout">
         | 
| 70 | 
            +
                    <parameters>
         | 
| 71 | 
            +
                      <!--{{{-->
         | 
| 72 | 
            +
                      <method>post</method>
         | 
| 73 | 
            +
                      <parameters>
         | 
| 74 | 
            +
                        <timeout>2</timeout>
         | 
| 75 | 
            +
                      </parameters>
         | 
| 76 | 
            +
                    </parameters>
         | 
| 77 | 
            +
                    <!--}}}-->
         | 
| 78 | 
            +
                    <manipulate output="result">  data.x += "a1,"</manipulate>
         | 
| 79 | 
            +
                  </call>
         | 
| 80 | 
            +
                  <call id="a2" endpoint="timeout">
         | 
| 81 | 
            +
                    <parameters>
         | 
| 82 | 
            +
                      <!--{{{-->
         | 
| 83 | 
            +
                      <method>post</method>
         | 
| 84 | 
            +
                      <parameters>
         | 
| 85 | 
            +
                        <timeout>4</timeout>
         | 
| 86 | 
            +
                      </parameters>
         | 
| 87 | 
            +
                    </parameters>
         | 
| 88 | 
            +
                    <!--}}}-->
         | 
| 89 | 
            +
                    <manipulate output="result">  data.x += "a2,"</manipulate>
         | 
| 90 | 
            +
                  </call>
         | 
| 91 | 
            +
                  <call id="a3" endpoint="timeout">
         | 
| 92 | 
            +
                    <parameters>
         | 
| 93 | 
            +
                      <!--{{{-->
         | 
| 94 | 
            +
                      <method>post</method>
         | 
| 95 | 
            +
                      <parameters>
         | 
| 96 | 
            +
                        <timeout>4</timeout>
         | 
| 97 | 
            +
                      </parameters>
         | 
| 98 | 
            +
                    </parameters>
         | 
| 99 | 
            +
                    <!--}}}-->
         | 
| 100 | 
            +
                    <manipulate output="result">  data.x += "a3,"</manipulate>
         | 
| 101 | 
            +
                  </call>
         | 
| 102 | 
            +
                </description>
         | 
| 103 | 
            +
              </description>
         | 
| 104 | 
            +
              <transformation>
         | 
| 105 | 
            +
                <description type="copy"/>
         | 
| 106 | 
            +
                <dataelements type="rest"/>
         | 
| 107 | 
            +
                <endpoints type="rest"/>
         | 
| 108 | 
            +
              </transformation>
         | 
| 109 | 
            +
            </properties>
         | 
| @@ -1,127 +1,51 @@ | |
| 1 1 | 
             
            <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
         | 
| 2 | 
            -
              <info> | 
| 3 | 
            -
              <state> | 
| 2 | 
            +
              <info>Enter info here</info>
         | 
| 3 | 
            +
              <state>finished</state>
         | 
| 4 4 | 
             
              <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
         | 
| 5 5 | 
             
              <positions/>
         | 
| 6 | 
            -
              <dataelements | 
| 6 | 
            +
              <dataelements>
         | 
| 7 | 
            +
                <json>{"lv":"Workflow Technologies","id":{"lvnr":"050311","gruppe":1}}</json>
         | 
| 8 | 
            +
                <json_lv>Workflow Technologies</json_lv>
         | 
| 9 | 
            +
                <json_lvnr/>
         | 
| 10 | 
            +
                <xml_lv>Workflow Technologies</xml_lv>
         | 
| 11 | 
            +
                <xml_lvnr>050311</xml_lvnr>
         | 
| 12 | 
            +
              </dataelements>
         | 
| 7 13 | 
             
              <endpoints>
         | 
| 8 14 | 
             
                <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
         | 
| 15 | 
            +
                <json>http://cpee.org/services/json.php</json>
         | 
| 16 | 
            +
                <xml>http://cpee.org/services/xml.php</xml>
         | 
| 9 17 | 
             
              </endpoints>
         | 
| 10 | 
            -
              <dsl>call : | 
| 11 | 
            -
            data. | 
| 18 | 
            +
              <dsl>call :a1, :json, { :label => "Get JSON", :method => "get", :parameters => nil }, <<-end 
         | 
| 19 | 
            +
            data.json = result
         | 
| 20 | 
            +
            data.json_lv = result['lv']
         | 
| 21 | 
            +
            data.json_lvnr = result['lv']['lvnr']
         | 
| 12 22 | 
             
            end
         | 
| 13 | 
            -
            call : | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 16 | 
            -
                alternative "data.a >= 3 && data.a < 6" do
         | 
| 17 | 
            -
                  call :a62, :timeout, { :label => "D", :method => nil, :type => "serviceTask", :mid => "sid-0937F905-A975-4DB2-A8C9-CD523611AEF5", :parameters => { :timeout => 1 } }
         | 
| 18 | 
            -
                  call :a58, :timeout, { :label => "A", :method => nil, :type => "serviceTask", :mid => "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters => { :timeout => 1 } }, <<-end 
         | 
| 19 | 
            -
            data.a += 1
         | 
| 20 | 
            -
                  end
         | 
| 21 | 
            -
                  call :a61, :timeout, { :label => "B", :method => nil, :type => "serviceTask", :mid => "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters => { :timeout => 1 } }
         | 
| 22 | 
            -
                end
         | 
| 23 | 
            -
                alternative "data.a < 3" do
         | 
| 24 | 
            -
                  call :a60, :timeout, { :label => "C", :method => nil, :type => "serviceTask", :mid => "sid-7E70A0D7-660E-4C1B-B377-64387F99BD87", :parameters => { :timeout => 1 } }
         | 
| 25 | 
            -
                  call :a61, :timeout, { :label => "B", :method => nil, :type => "serviceTask", :mid => "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters => { :timeout => 1 } }
         | 
| 26 | 
            -
                end
         | 
| 27 | 
            -
                otherwise do
         | 
| 28 | 
            -
                  break
         | 
| 29 | 
            -
                end
         | 
| 30 | 
            -
              end
         | 
| 23 | 
            +
            call :a2, :xml, { :label => "Get XML", :method => "get", :parameters => nil }, <<-end 
         | 
| 24 | 
            +
            data.xml_lv = result.find('string(/data/lv)')
         | 
| 25 | 
            +
            data.xml_lvnr = result.find('string(/data/lv/@id)')
         | 
| 31 26 | 
             
            end
         | 
| 32 27 | 
             
            </dsl>
         | 
| 33 28 | 
             
              <dslx>
         | 
| 34 29 | 
             
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 35 | 
            -
                  <call id=" | 
| 30 | 
            +
                  <call id="a1" endpoint="json" svg-label="Get JSON">
         | 
| 36 31 | 
             
                    <parameters>
         | 
| 37 | 
            -
                      <label> | 
| 38 | 
            -
                      <method | 
| 39 | 
            -
                      < | 
| 40 | 
            -
                      <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
         | 
| 41 | 
            -
                      <parameters>
         | 
| 42 | 
            -
                        <timeout>1</timeout>
         | 
| 43 | 
            -
                      </parameters>
         | 
| 32 | 
            +
                      <label>Get JSON</label>
         | 
| 33 | 
            +
                      <method>get</method>
         | 
| 34 | 
            +
                      <parameters/>
         | 
| 44 35 | 
             
                    </parameters>
         | 
| 45 | 
            -
                    <manipulate | 
| 36 | 
            +
                    <manipulate>data.json = result
         | 
| 37 | 
            +
            data.json_lv = result['lv']
         | 
| 38 | 
            +
            data.json_lvnr = result['lv']['lvnr']</manipulate>
         | 
| 46 39 | 
             
                  </call>
         | 
| 47 | 
            -
                  <call id=" | 
| 40 | 
            +
                  <call id="a2" endpoint="xml">
         | 
| 48 41 | 
             
                    <parameters>
         | 
| 49 | 
            -
                      <label> | 
| 50 | 
            -
                      <method | 
| 51 | 
            -
                      < | 
| 52 | 
            -
                      <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
         | 
| 53 | 
            -
                      <parameters>
         | 
| 54 | 
            -
                        <timeout>1</timeout>
         | 
| 55 | 
            -
                      </parameters>
         | 
| 42 | 
            +
                      <label>Get XML</label>
         | 
| 43 | 
            +
                      <method>get</method>
         | 
| 44 | 
            +
                      <parameters/>
         | 
| 56 45 | 
             
                    </parameters>
         | 
| 46 | 
            +
                    <manipulate>data.xml_lv = result.find('string(/data/lv)')
         | 
| 47 | 
            +
            data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
         | 
| 57 48 | 
             
                  </call>
         | 
| 58 | 
            -
                  <loop pre_test="true">
         | 
| 59 | 
            -
                    <choose mode="exclusive">
         | 
| 60 | 
            -
                      <alternative condition="data.a >= 3 && data.a < 6" language="text/javascript">
         | 
| 61 | 
            -
                        <call id="a62" endpoint="timeout">
         | 
| 62 | 
            -
                          <parameters>
         | 
| 63 | 
            -
                            <label>D</label>
         | 
| 64 | 
            -
                            <method/>
         | 
| 65 | 
            -
                            <type>serviceTask</type>
         | 
| 66 | 
            -
                            <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
         | 
| 67 | 
            -
                            <parameters>
         | 
| 68 | 
            -
                              <timeout>1</timeout>
         | 
| 69 | 
            -
                            </parameters>
         | 
| 70 | 
            -
                          </parameters>
         | 
| 71 | 
            -
                        </call>
         | 
| 72 | 
            -
                        <call id="a58" endpoint="timeout">
         | 
| 73 | 
            -
                          <parameters>
         | 
| 74 | 
            -
                            <label>A</label>
         | 
| 75 | 
            -
                            <method/>
         | 
| 76 | 
            -
                            <type>serviceTask</type>
         | 
| 77 | 
            -
                            <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
         | 
| 78 | 
            -
                            <parameters>
         | 
| 79 | 
            -
                              <timeout>1</timeout>
         | 
| 80 | 
            -
                            </parameters>
         | 
| 81 | 
            -
                          </parameters>
         | 
| 82 | 
            -
                          <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
         | 
| 83 | 
            -
                        </call>
         | 
| 84 | 
            -
                        <call id="a61" endpoint="timeout">
         | 
| 85 | 
            -
                          <parameters>
         | 
| 86 | 
            -
                            <label>B</label>
         | 
| 87 | 
            -
                            <method/>
         | 
| 88 | 
            -
                            <type>serviceTask</type>
         | 
| 89 | 
            -
                            <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
         | 
| 90 | 
            -
                            <parameters>
         | 
| 91 | 
            -
                              <timeout>1</timeout>
         | 
| 92 | 
            -
                            </parameters>
         | 
| 93 | 
            -
                          </parameters>
         | 
| 94 | 
            -
                        </call>
         | 
| 95 | 
            -
                      </alternative>
         | 
| 96 | 
            -
                      <alternative condition="data.a < 3" language="text/javascript">
         | 
| 97 | 
            -
                        <call id="a60" endpoint="timeout">
         | 
| 98 | 
            -
                          <parameters>
         | 
| 99 | 
            -
                            <label>C</label>
         | 
| 100 | 
            -
                            <method/>
         | 
| 101 | 
            -
                            <type>serviceTask</type>
         | 
| 102 | 
            -
                            <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
         | 
| 103 | 
            -
                            <parameters>
         | 
| 104 | 
            -
                              <timeout>1</timeout>
         | 
| 105 | 
            -
                            </parameters>
         | 
| 106 | 
            -
                          </parameters>
         | 
| 107 | 
            -
                        </call>
         | 
| 108 | 
            -
                        <call id="a61" endpoint="timeout">
         | 
| 109 | 
            -
                          <parameters>
         | 
| 110 | 
            -
                            <label>B</label>
         | 
| 111 | 
            -
                            <method/>
         | 
| 112 | 
            -
                            <type>serviceTask</type>
         | 
| 113 | 
            -
                            <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
         | 
| 114 | 
            -
                            <parameters>
         | 
| 115 | 
            -
                              <timeout>1</timeout>
         | 
| 116 | 
            -
                            </parameters>
         | 
| 117 | 
            -
                          </parameters>
         | 
| 118 | 
            -
                        </call>
         | 
| 119 | 
            -
                      </alternative>
         | 
| 120 | 
            -
                      <otherwise>
         | 
| 121 | 
            -
                        <break/>
         | 
| 122 | 
            -
                      </otherwise>
         | 
| 123 | 
            -
                    </choose>
         | 
| 124 | 
            -
                  </loop>
         | 
| 125 49 | 
             
                </description>
         | 
| 126 50 | 
             
              </dslx>
         | 
| 127 51 | 
             
              <status>
         | 
| @@ -130,96 +54,25 @@ end | |
| 130 54 | 
             
              </status>
         | 
| 131 55 | 
             
              <description>
         | 
| 132 56 | 
             
                <description xmlns="http://cpee.org/ns/description/1.0">
         | 
| 133 | 
            -
                  <call id=" | 
| 57 | 
            +
                  <call id="a1" endpoint="json" svg-label="Get JSON">
         | 
| 134 58 | 
             
                    <parameters>
         | 
| 135 | 
            -
                      <label> | 
| 136 | 
            -
                      <method | 
| 137 | 
            -
                      < | 
| 138 | 
            -
                      <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
         | 
| 139 | 
            -
                      <parameters>
         | 
| 140 | 
            -
                        <timeout>1</timeout>
         | 
| 141 | 
            -
                      </parameters>
         | 
| 59 | 
            +
                      <label>Get JSON</label>
         | 
| 60 | 
            +
                      <method>get</method>
         | 
| 61 | 
            +
                      <parameters/>
         | 
| 142 62 | 
             
                    </parameters>
         | 
| 143 | 
            -
                    <manipulate | 
| 63 | 
            +
                    <manipulate>data.json = result
         | 
| 64 | 
            +
            data.json_lv = result['lv']
         | 
| 65 | 
            +
            data.json_lvnr = result['lv']['lvnr']</manipulate>
         | 
| 144 66 | 
             
                  </call>
         | 
| 145 | 
            -
                  <call id=" | 
| 67 | 
            +
                  <call id="a2" endpoint="xml">
         | 
| 146 68 | 
             
                    <parameters>
         | 
| 147 | 
            -
                      <label> | 
| 148 | 
            -
                      <method | 
| 149 | 
            -
                      < | 
| 150 | 
            -
                      <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
         | 
| 151 | 
            -
                      <parameters>
         | 
| 152 | 
            -
                        <timeout>1</timeout>
         | 
| 153 | 
            -
                      </parameters>
         | 
| 69 | 
            +
                      <label>Get XML</label>
         | 
| 70 | 
            +
                      <method>get</method>
         | 
| 71 | 
            +
                      <parameters/>
         | 
| 154 72 | 
             
                    </parameters>
         | 
| 73 | 
            +
                    <manipulate>data.xml_lv = result.find('string(/data/lv)')
         | 
| 74 | 
            +
            data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
         | 
| 155 75 | 
             
                  </call>
         | 
| 156 | 
            -
                  <loop pre_test="true">
         | 
| 157 | 
            -
                    <choose mode="exclusive">
         | 
| 158 | 
            -
                      <alternative condition="data.a >= 3 && data.a < 6" language="text/javascript">
         | 
| 159 | 
            -
                        <call id="a62" endpoint="timeout">
         | 
| 160 | 
            -
                          <parameters>
         | 
| 161 | 
            -
                            <label>D</label>
         | 
| 162 | 
            -
                            <method/>
         | 
| 163 | 
            -
                            <type>serviceTask</type>
         | 
| 164 | 
            -
                            <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
         | 
| 165 | 
            -
                            <parameters>
         | 
| 166 | 
            -
                              <timeout>1</timeout>
         | 
| 167 | 
            -
                            </parameters>
         | 
| 168 | 
            -
                          </parameters>
         | 
| 169 | 
            -
                        </call>
         | 
| 170 | 
            -
                        <call id="a58" endpoint="timeout">
         | 
| 171 | 
            -
                          <parameters>
         | 
| 172 | 
            -
                            <label>A</label>
         | 
| 173 | 
            -
                            <method/>
         | 
| 174 | 
            -
                            <type>serviceTask</type>
         | 
| 175 | 
            -
                            <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
         | 
| 176 | 
            -
                            <parameters>
         | 
| 177 | 
            -
                              <timeout>1</timeout>
         | 
| 178 | 
            -
                            </parameters>
         | 
| 179 | 
            -
                          </parameters>
         | 
| 180 | 
            -
                          <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
         | 
| 181 | 
            -
                        </call>
         | 
| 182 | 
            -
                        <call id="a61" endpoint="timeout">
         | 
| 183 | 
            -
                          <parameters>
         | 
| 184 | 
            -
                            <label>B</label>
         | 
| 185 | 
            -
                            <method/>
         | 
| 186 | 
            -
                            <type>serviceTask</type>
         | 
| 187 | 
            -
                            <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
         | 
| 188 | 
            -
                            <parameters>
         | 
| 189 | 
            -
                              <timeout>1</timeout>
         | 
| 190 | 
            -
                            </parameters>
         | 
| 191 | 
            -
                          </parameters>
         | 
| 192 | 
            -
                        </call>
         | 
| 193 | 
            -
                      </alternative>
         | 
| 194 | 
            -
                      <alternative condition="data.a < 3" language="text/javascript">
         | 
| 195 | 
            -
                        <call id="a60" endpoint="timeout">
         | 
| 196 | 
            -
                          <parameters>
         | 
| 197 | 
            -
                            <label>C</label>
         | 
| 198 | 
            -
                            <method/>
         | 
| 199 | 
            -
                            <type>serviceTask</type>
         | 
| 200 | 
            -
                            <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
         | 
| 201 | 
            -
                            <parameters>
         | 
| 202 | 
            -
                              <timeout>1</timeout>
         | 
| 203 | 
            -
                            </parameters>
         | 
| 204 | 
            -
                          </parameters>
         | 
| 205 | 
            -
                        </call>
         | 
| 206 | 
            -
                        <call id="a61" endpoint="timeout">
         | 
| 207 | 
            -
                          <parameters>
         | 
| 208 | 
            -
                            <label>B</label>
         | 
| 209 | 
            -
                            <method/>
         | 
| 210 | 
            -
                            <type>serviceTask</type>
         | 
| 211 | 
            -
                            <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
         | 
| 212 | 
            -
                            <parameters>
         | 
| 213 | 
            -
                              <timeout>1</timeout>
         | 
| 214 | 
            -
                            </parameters>
         | 
| 215 | 
            -
                          </parameters>
         | 
| 216 | 
            -
                        </call>
         | 
| 217 | 
            -
                      </alternative>
         | 
| 218 | 
            -
                      <otherwise>
         | 
| 219 | 
            -
                        <break/>
         | 
| 220 | 
            -
                      </otherwise>
         | 
| 221 | 
            -
                    </choose>
         | 
| 222 | 
            -
                  </loop>
         | 
| 223 76 | 
             
                </description>
         | 
| 224 77 | 
             
              </description>
         | 
| 225 78 | 
             
              <transformation>
         |