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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f7acf1f8bf20b24b43f3765ffcc616c5f71051ef
|
4
|
+
data.tar.gz: 0ed81baa817d32ac410172c1e91461a96c2f69da
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 28074a7996e5cc84ab73db9e9ef218804a39dfa8978178462af4683ea6faed0ee0a3fec0038c3fa1ab4345bda804b3d13b4c38ab4b0baaaba68695c2659f5d24
|
7
|
+
data.tar.gz: 39889f27699ded62010df5f19bfb880fa0d355ec789bb0b4055db3749501164e61691dd37706737d525827ec808d643857978353c992e7b2aced3cde30d896de
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.3.
|
3
|
+
s.version = "1.3.130"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3"
|
6
6
|
s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
|
@@ -0,0 +1,125 @@
|
|
1
|
+
<bpel:process
|
2
|
+
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
|
3
|
+
xmlns:ns1="uri:company/booking"
|
4
|
+
xmlns:ns2="uri:air/booking"
|
5
|
+
xmlns:ns3="uri:hotel/booking"
|
6
|
+
xmlns:ns4="uri:company/report"
|
7
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
8
|
+
name="book_and_report"
|
9
|
+
suppressJoinFailure="yes"
|
10
|
+
targetNamespace="http://cpee.org/bpel/booking.bpel">
|
11
|
+
|
12
|
+
<bpel:import importType="http://www.w3.org/ns/wsdl" location="booking.wsdl" namespace="uri:company/booking"/>
|
13
|
+
<bpel:import importType="http://www.w3.org/ns/wsdl" location="booking/airline.wsdl" namespace="uri:air/booking"/>
|
14
|
+
<bpel:import importType="http://www.w3.org/ns/wsdl" location="booking/hotel.wsdl" namespace="uri:hotel/booking"/>
|
15
|
+
<bpel:import importType="http://www.w3.org/ns/wsdl" location="booking/report.wsdl" namespace="uri:company/report"/>
|
16
|
+
|
17
|
+
<bpel:partnerLinks>
|
18
|
+
<bpel:partnerLink myRole="book_and_report" name="book_and_report" partnerLinkType="ns1:bookPLT"/>
|
19
|
+
<bpel:partnerLink partnerRole="book_airline" name="book_airline" partnerLinkType="ns2:bookPLT"/>
|
20
|
+
<bpel:partnerLink partnerRole="book_hotel" name="book_hotel" partnerLinkType="ns3:bookPLT"/>
|
21
|
+
<bpel:partnerLink partnerRole="report" name="report" partnerLinkType="ns4:reportPLT"/>
|
22
|
+
</bpel:partnerLinks>
|
23
|
+
|
24
|
+
<bpel:variables>
|
25
|
+
<bpel:variable name="input" messageType="ns1:input"/>
|
26
|
+
<bpel:variable name="airlineInput" messageType="ns2:input"/>
|
27
|
+
<bpel:variable name="airlineResult" messageType="ns2:output"/>
|
28
|
+
<bpel:variable name="hotelInput" messageType="ns3:input"/>
|
29
|
+
<bpel:variable name="hotelOutput" messageType="ns3:output"/>
|
30
|
+
<bpel:variable name="reportInput" messageType="ns4:input"/>
|
31
|
+
<bpel:variable name="output" messageType="ns1:output"/>
|
32
|
+
</bpel:variables>
|
33
|
+
|
34
|
+
<bpel:sequence>
|
35
|
+
<bpel:receive createInstance="yes" operation="book_and_report" partnerLink="book_and_report" portType="ns1:BookAndReportInterface" variable="input"/>
|
36
|
+
|
37
|
+
<bpel:assign name="Initialization">
|
38
|
+
<bpel:copy>
|
39
|
+
<bpel:from>0</bpel:from>
|
40
|
+
<bpel:to part="costs" variable="output"/>
|
41
|
+
</bpel:copy>
|
42
|
+
<bpel:copy>
|
43
|
+
<bpel:from>''</bpel:from>
|
44
|
+
<bpel:to part="airline" variable="output"/>
|
45
|
+
</bpel:copy>
|
46
|
+
</bpel:assign>
|
47
|
+
|
48
|
+
<bpel:assign name="airlineInput">
|
49
|
+
<bpel:copy>
|
50
|
+
<bpel:from>$input/ns1:from</bpel:from>
|
51
|
+
<bpel:to part="from" variable="airlineInput"/>
|
52
|
+
</bpel:copy>
|
53
|
+
<bpel:copy>
|
54
|
+
<bpel:from>$input/ns1:to</bpel:from>
|
55
|
+
<bpel:to part="to" variable="airlineInput"/>
|
56
|
+
</bpel:copy>
|
57
|
+
<bpel:copy>
|
58
|
+
<bpel:from>$input/ns1:persons</bpel:from>
|
59
|
+
<bpel:to part="persons" variable="airlineInput"/>
|
60
|
+
</bpel:copy>
|
61
|
+
</bpel:assign>
|
62
|
+
<bpel:invoke inputVariable="airlineInput" operation="book" outputVariable="airlineResult" partnerLink="book_airline" portType="ns2:book"/>
|
63
|
+
<bpel:assign name="airlineResult">
|
64
|
+
<bpel:copy>
|
65
|
+
<bpel:from>$airlineResult/ns2:costs + $output/ns1:costs</bpel:from>
|
66
|
+
<bpel:to part="costs" variable="output"/>
|
67
|
+
</bpel:copy>
|
68
|
+
<bpel:copy>
|
69
|
+
<bpel:from>$airlineResult/ns1:name</bpel:from>
|
70
|
+
<bpel:to>$output.airline</bpel:to>
|
71
|
+
</bpel:copy>
|
72
|
+
</bpel:assign>
|
73
|
+
|
74
|
+
<bpel:forEach counterName="counter" parallel="yes">
|
75
|
+
<bpel:startCounterValue>1</bpel:startCounterValue>
|
76
|
+
<bpel:finalCounterValue>count($input/ns1:persons/ns1:item)</bpel:finalCounterValue>
|
77
|
+
<bpel:scope>
|
78
|
+
<bpel:sequence>
|
79
|
+
<bpel:assign name="hotelInput">
|
80
|
+
<bpel:copy>
|
81
|
+
<bpel:from>$input/ns1:to</bpel:from>
|
82
|
+
<bpel:to part="to" variable="hotelInput"/>
|
83
|
+
</bpel:copy>
|
84
|
+
<bpel:copy>
|
85
|
+
<bpel:from>$input/ns1:persons/ns1:item[$counter]</bpel:from>
|
86
|
+
<bpel:to part="person" variable="hotelInput"/>
|
87
|
+
</bpel:copy>
|
88
|
+
</bpel:assign>
|
89
|
+
<bpel:invoke inputVariable="hotelInput" operation="book" outputVariable="hotelOutput" partnerLink="book_hotel" portType="ns3:book"/>
|
90
|
+
<bpel:assign name="hotelOutput">
|
91
|
+
<bpel:copy>
|
92
|
+
<bpel:from>$hotelOutput/ns3:costs + $output/ns1:costs</bpel:from>
|
93
|
+
<bpel:to part="costs" variable="output"/>
|
94
|
+
</bpel:copy>
|
95
|
+
<bpel:copy>
|
96
|
+
<bpel:from>$hotelOutput/ns3:name</bpel:from>
|
97
|
+
<bpel:to>$output.hotels/ns1:item[$counter]</bpel:to>
|
98
|
+
</bpel:copy>
|
99
|
+
</bpel:assign>
|
100
|
+
</bpel:sequence>
|
101
|
+
</bpel:scope>
|
102
|
+
</bpel:forEach>
|
103
|
+
|
104
|
+
<bpel:if>
|
105
|
+
<bpel:condition>$output.costs > 1000</bpel:condition>
|
106
|
+
<bpel:assign name="reportInput">
|
107
|
+
<bpel:copy>
|
108
|
+
<bpel:from>$input/ns1:to</bpel:from>
|
109
|
+
<bpel:to part="to" variable="reportInput"/>
|
110
|
+
</bpel:copy>
|
111
|
+
<bpel:copy>
|
112
|
+
<bpel:from>$input/ns1:persons</bpel:from>
|
113
|
+
<bpel:to part="persons" variable="reportInput"/>
|
114
|
+
</bpel:copy>
|
115
|
+
<bpel:copy>
|
116
|
+
<bpel:from>$output/ns1:costs</bpel:from>
|
117
|
+
<bpel:to part="costs" variable="reportInput"/>
|
118
|
+
</bpel:copy>
|
119
|
+
</bpel:assign>
|
120
|
+
<bpel:invoke inputVariable="reportInput" operation="report" partnerLink="report" portType="ns4:report"/>
|
121
|
+
</bpel:if>
|
122
|
+
|
123
|
+
<bpel:reply operation="book_and_report" partnerLink="book_and_report" portType="ship:BookAndReportInterface" variable="output"/>
|
124
|
+
</bpel:sequence>
|
125
|
+
</bpel:process>
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<wsdl:description
|
2
|
+
targetNamespace="http://cpee.org/wsdl/booking.wsdl"
|
3
|
+
xmlns:wsdl="http://www.w3.org/ns/wsdl"
|
4
|
+
xmlns:whttp="http://www.w3.org/ns/wsdl/http"
|
5
|
+
xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions"
|
6
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
7
|
+
xmlns:msg="http://cpee.org/wsdl/booking.wsdl/msg"
|
8
|
+
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
|
9
|
+
|
10
|
+
<wsdl:types>
|
11
|
+
<xs:schema
|
12
|
+
targetNamespace="http://cpee.org/wsdl/booking.wsdl/msg"
|
13
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
14
|
+
xmlns="http://cpee.org/wsdl/booking.wsdl/msg"
|
15
|
+
xmlns:msg="http://cpee.org/wsdl/booking.wsdl/msg"
|
16
|
+
elementFormDefault="qualified">
|
17
|
+
|
18
|
+
<xs:element name="input" type="inputType"/>
|
19
|
+
<xs:element name="output" type="outputType"/>
|
20
|
+
|
21
|
+
<xs:complexType name="inputType">
|
22
|
+
<xs:sequence>
|
23
|
+
<xs:element name="from" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
24
|
+
<xs:element name="to" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
25
|
+
<xs:element name="persons" type="arrayType" minOccurs="0" maxOccurs="1"/>
|
26
|
+
</xs:sequence>
|
27
|
+
</xs:complexType>
|
28
|
+
|
29
|
+
<xs:complexType name="outputType">
|
30
|
+
<xs:sequence>
|
31
|
+
<xs:element name="costs" type="xs:integer" minOccurs="0" maxOccurs="1"/>
|
32
|
+
<xs:element name="airline" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
33
|
+
<xs:element name="hotels" type="arrayType" minOccurs="0" maxOccurs="1"/>
|
34
|
+
</xs:sequence>
|
35
|
+
</xs:complexType>
|
36
|
+
|
37
|
+
<xs:complexType name="arrayType">
|
38
|
+
<xs:sequence>
|
39
|
+
<xs:element name="item" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
|
40
|
+
</xs:sequence>
|
41
|
+
</xs:complexType>
|
42
|
+
|
43
|
+
</xs:schema>
|
44
|
+
</wsdl:types>
|
45
|
+
|
46
|
+
<plnk:partnerLinkType name="bookPLT">
|
47
|
+
<plnk:role name="book_and_report" portType="BookAndReportInterface"/>
|
48
|
+
</plnk:partnerLinkType>
|
49
|
+
|
50
|
+
<wsdl:interface name="BookAndReportInterface">
|
51
|
+
<wsdl:operation name="book_and_report"
|
52
|
+
pattern="http://www.w3.org/ns/wsdl/in-out"
|
53
|
+
style="http://www.w3.org/ns/wsdl/style/iri"
|
54
|
+
wsdlx:safe="true">
|
55
|
+
<wsdl:input element="msg:input"/>
|
56
|
+
<wsdl:output element="msg:output"/>
|
57
|
+
</wsdl:operation>
|
58
|
+
</wsdl:interface>
|
59
|
+
|
60
|
+
<wsdl:binding name="BookAndReportHTTPBinding"
|
61
|
+
type="http://www.w3.org/ns/wsdl/http"
|
62
|
+
interface="BookAndReportInterface">
|
63
|
+
<wsdl:operation ref="book_and_report" whttp:method="POST"/>
|
64
|
+
</wsdl:binding>
|
65
|
+
|
66
|
+
<wsdl:service name="BookAndReport" interface="BookAndReportInterface">
|
67
|
+
<wsdl:endpoint name="BookAndReportHTTPEndpoint"
|
68
|
+
binding="BookAndReportHTTPBinding"
|
69
|
+
address="http://www.pri.univie.ac.at/~mangler/book_and_report/">
|
70
|
+
</wsdl:endpoint>
|
71
|
+
</wsdl:service>
|
72
|
+
</wsdl:description>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<wsdl:description
|
2
|
+
targetNamespace="uri:air/booking"
|
3
|
+
xmlns:wsdl="http://www.w3.org/ns/wsdl"
|
4
|
+
xmlns:whttp="http://www.w3.org/ns/wsdl/http"
|
5
|
+
xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions"
|
6
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
7
|
+
xmlns:msg="uri:air/booking/msg"
|
8
|
+
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
|
9
|
+
|
10
|
+
<wsdl:types>
|
11
|
+
<xs:schema
|
12
|
+
targetNamespace="uri:air/booking/msg"
|
13
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
14
|
+
xmlns="uri:air/booking/msg"
|
15
|
+
xmlns:msg="uri:air/booking/msg"
|
16
|
+
elementFormDefault="qualified">
|
17
|
+
|
18
|
+
<xs:element name="input" type="inputType"/>
|
19
|
+
<xs:element name="output" type="outputType"/>
|
20
|
+
|
21
|
+
<xs:complexType name="inputType">
|
22
|
+
<xs:sequence>
|
23
|
+
<xs:element name="from" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
24
|
+
<xs:element name="to" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
25
|
+
<xs:element name="persons" type="arrayType" minOccurs="0" maxOccurs="1"/>
|
26
|
+
</xs:sequence>
|
27
|
+
</xs:complexType>
|
28
|
+
|
29
|
+
<xs:complexType name="outputType">
|
30
|
+
<xs:sequence>
|
31
|
+
<xs:element name="costs" type="xs:integer" minOccurs="0" maxOccurs="1"/>
|
32
|
+
<xs:element name="name" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
33
|
+
</xs:sequence>
|
34
|
+
</xs:complexType>
|
35
|
+
|
36
|
+
<xs:complexType name="arrayType">
|
37
|
+
<xs:sequence>
|
38
|
+
<xs:element name="item" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
|
39
|
+
</xs:sequence>
|
40
|
+
</xs:complexType>
|
41
|
+
|
42
|
+
</xs:schema>
|
43
|
+
</wsdl:types>
|
44
|
+
|
45
|
+
<plnk:partnerLinkType name="bookPLT">
|
46
|
+
<plnk:role name="book_airline" portType="BookInterface"/>
|
47
|
+
</plnk:partnerLinkType>
|
48
|
+
|
49
|
+
<wsdl:interface name="BookInterface">
|
50
|
+
<wsdl:operation name="book"
|
51
|
+
pattern="http://www.w3.org/ns/wsdl/in-out"
|
52
|
+
style="http://www.w3.org/ns/wsdl/style/iri"
|
53
|
+
wsdlx:safe="true">
|
54
|
+
<wsdl:input element="msg:input"/>
|
55
|
+
<wsdl:output element="msg:output"/>
|
56
|
+
</wsdl:operation>
|
57
|
+
</wsdl:interface>
|
58
|
+
|
59
|
+
<wsdl:binding name="BookHTTPBinding"
|
60
|
+
type="http://www.w3.org/ns/wsdl/http"
|
61
|
+
interface="BookInterface">
|
62
|
+
<wsdl:operation ref="book" whttp:method="POST"/>
|
63
|
+
</wsdl:binding>
|
64
|
+
|
65
|
+
<wsdl:service name="BookAirline" interface="BookInterface">
|
66
|
+
<wsdl:endpoint name="BookHTTPEndpoint"
|
67
|
+
binding="BookHTTPBinding"
|
68
|
+
address="http://www.pri.univie.ac.at/~mangler/book_airline/">
|
69
|
+
</wsdl:endpoint>
|
70
|
+
</wsdl:service>
|
71
|
+
</wsdl:description>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<wsdl:description
|
2
|
+
targetNamespace="uri:hotel/booking"
|
3
|
+
xmlns:wsdl="http://www.w3.org/ns/wsdl"
|
4
|
+
xmlns:whttp="http://www.w3.org/ns/wsdl/http"
|
5
|
+
xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions"
|
6
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
7
|
+
xmlns:msg="uri:hotel/booking/msg"
|
8
|
+
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
|
9
|
+
|
10
|
+
<wsdl:types>
|
11
|
+
<xs:schema
|
12
|
+
targetNamespace="uri:hotel/booking/msg"
|
13
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
14
|
+
xmlns="uri:hotel/booking/msg"
|
15
|
+
xmlns:msg="uri:hotel/booking/msg"
|
16
|
+
elementFormDefault="qualified">
|
17
|
+
|
18
|
+
<xs:element name="input" type="inputType"/>
|
19
|
+
<xs:element name="output" type="outputType"/>
|
20
|
+
|
21
|
+
<xs:complexType name="inputType">
|
22
|
+
<xs:sequence>
|
23
|
+
<xs:element name="from" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
24
|
+
<xs:element name="person" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
25
|
+
</xs:sequence>
|
26
|
+
</xs:complexType>
|
27
|
+
|
28
|
+
<xs:complexType name="outputType">
|
29
|
+
<xs:sequence>
|
30
|
+
<xs:element name="costs" type="xs:integer" minOccurs="0" maxOccurs="1"/>
|
31
|
+
<xs:element name="name" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
32
|
+
</xs:sequence>
|
33
|
+
</xs:complexType>
|
34
|
+
|
35
|
+
</xs:schema>
|
36
|
+
</wsdl:types>
|
37
|
+
|
38
|
+
<plnk:partnerLinkType name="bookPLT">
|
39
|
+
<plnk:role name="book_hotel" portType="BookInterface"/>
|
40
|
+
</plnk:partnerLinkType>
|
41
|
+
|
42
|
+
<wsdl:interface name="BookInterface">
|
43
|
+
<wsdl:operation name="book"
|
44
|
+
pattern="http://www.w3.org/ns/wsdl/in-out"
|
45
|
+
style="http://www.w3.org/ns/wsdl/style/iri"
|
46
|
+
wsdlx:safe="true">
|
47
|
+
<wsdl:input element="msg:input"/>
|
48
|
+
<wsdl:output element="msg:output"/>
|
49
|
+
</wsdl:operation>
|
50
|
+
</wsdl:interface>
|
51
|
+
|
52
|
+
<wsdl:binding name="BookHTTPBinding"
|
53
|
+
type="http://www.w3.org/ns/wsdl/http"
|
54
|
+
interface="BookInterface">
|
55
|
+
<wsdl:operation ref="book" whttp:method="POST"/>
|
56
|
+
</wsdl:binding>
|
57
|
+
|
58
|
+
<wsdl:service name="BookHotel" interface="BookInterface">
|
59
|
+
<wsdl:endpoint name="BookHTTPEndpoint"
|
60
|
+
binding="BookHTTPBinding"
|
61
|
+
address="http://www.pri.univie.ac.at/~mangler/book_hotel/">
|
62
|
+
</wsdl:endpoint>
|
63
|
+
</wsdl:service>
|
64
|
+
</wsdl:description>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<wsdl:description
|
2
|
+
targetNamespace="uri:company/report"
|
3
|
+
xmlns:wsdl="http://www.w3.org/ns/wsdl"
|
4
|
+
xmlns:whttp="http://www.w3.org/ns/wsdl/http"
|
5
|
+
xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions"
|
6
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
7
|
+
xmlns:msg="uri:company/report/msg"
|
8
|
+
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
|
9
|
+
|
10
|
+
<wsdl:types>
|
11
|
+
<xs:schema
|
12
|
+
targetNamespace="uri:company/report/msg"
|
13
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
14
|
+
xmlns="uri:company/report/msg"
|
15
|
+
xmlns:msg="uri:company/report/msg"
|
16
|
+
elementFormDefault="qualified">
|
17
|
+
|
18
|
+
<xs:element name="input" type="inputType"/>
|
19
|
+
<xs:element name="output" type="outputType"/>
|
20
|
+
|
21
|
+
<xs:complexType name="inputType">
|
22
|
+
<xs:sequence>
|
23
|
+
<xs:element name="from" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
24
|
+
<xs:element name="to" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
25
|
+
<xs:element name="persons" type="arrayType" minOccurs="0" maxOccurs="1"/>
|
26
|
+
</xs:sequence>
|
27
|
+
</xs:complexType>
|
28
|
+
|
29
|
+
<xs:complexType name="outputType">
|
30
|
+
<xs:sequence>
|
31
|
+
<xs:element name="costs" type="xs:integer" minOccurs="0" maxOccurs="1"/>
|
32
|
+
<xs:element name="name" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
33
|
+
</xs:sequence>
|
34
|
+
</xs:complexType>
|
35
|
+
|
36
|
+
<xs:complexType name="arrayType">
|
37
|
+
<xs:sequence>
|
38
|
+
<xs:element name="item" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
|
39
|
+
</xs:sequence>
|
40
|
+
</xs:complexType>
|
41
|
+
|
42
|
+
</xs:schema>
|
43
|
+
</wsdl:types>
|
44
|
+
|
45
|
+
<plnk:partnerLinkType name="reportPLT">
|
46
|
+
<plnk:role name="report" portType="ReportInterface"/>
|
47
|
+
</plnk:partnerLinkType>
|
48
|
+
|
49
|
+
<wsdl:interface name="ReportInterface">
|
50
|
+
<wsdl:operation name="report"
|
51
|
+
pattern="http://www.w3.org/ns/wsdl/in-out"
|
52
|
+
style="http://www.w3.org/ns/wsdl/style/iri"
|
53
|
+
wsdlx:safe="true">
|
54
|
+
<wsdl:input element="msg:input"/>
|
55
|
+
<wsdl:output element="msg:output"/>
|
56
|
+
</wsdl:operation>
|
57
|
+
</wsdl:interface>
|
58
|
+
|
59
|
+
<wsdl:binding name="ReportHTTPBinding"
|
60
|
+
type="http://www.w3.org/ns/wsdl/http"
|
61
|
+
interface="ReportInterface">
|
62
|
+
<wsdl:operation ref="report" whttp:method="POST"/>
|
63
|
+
</wsdl:binding>
|
64
|
+
|
65
|
+
<wsdl:service name="ReportAirline" interface="ReportInterface">
|
66
|
+
<wsdl:endpoint name="ReportHTTPEndpoint"
|
67
|
+
binding="ReportHTTPBinding"
|
68
|
+
address="http://www.pri.univie.ac.at/~mangler/report/">
|
69
|
+
</wsdl:endpoint>
|
70
|
+
</wsdl:service>
|
71
|
+
</wsdl:description>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
require 'optparse'
|
3
|
+
require ::File.dirname(__FILE__) + '/lib/BPEL_Transform.rb'
|
4
|
+
|
5
|
+
dowhat = nil
|
6
|
+
ARGV.options { |opt|
|
7
|
+
opt.summary_indent = ' ' * 2
|
8
|
+
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [FILENAME]\nExample:\n#{opt.summary_indent}#{File.basename($0)} -d hotel.bpel\n"
|
9
|
+
opt.on("Options:")
|
10
|
+
opt.on("--help", "-h", "This text") { puts opt; exit }
|
11
|
+
opt.on("--dsl", "-d", "For each tile visualize the resource tree and the layers.") { dowhat = "dsl" }
|
12
|
+
opt.on("--dataelements", "-D", "For each tile visualize the resource tree and the resulting compositions.") { dowhat = "dataelements" }
|
13
|
+
opt.on("--endpoints", "-e", "Visualize the resulting facade.") { dowhat = "endpoints" }
|
14
|
+
opt.on("--invocation", "-i", "Invocation messages.") { dowhat = "invocation" }
|
15
|
+
opt.on("Filename must be a BPEL file.")
|
16
|
+
opt.parse!
|
17
|
+
}
|
18
|
+
if ARGV.length == 0 || !File.exists?(ARGV[0]) || dowhat.nil?
|
19
|
+
puts ARGV.options
|
20
|
+
exit
|
21
|
+
end
|
22
|
+
fname = ARGV[0]
|
23
|
+
|
24
|
+
bt = BPEL_Transform.new(fname)
|
25
|
+
case dowhat
|
26
|
+
when "dsl"
|
27
|
+
puts bt.transform_dsl
|
28
|
+
when "endpoints"
|
29
|
+
puts bt.transform_endpoints
|
30
|
+
when "dataelements"
|
31
|
+
puts bt.transform_data
|
32
|
+
when "invocation"
|
33
|
+
puts bt.transform_invocation
|
34
|
+
end
|