cpee 1.5.24 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{FEATURES → FEATURES.md} +7 -6
- data/INSTALL.md +1 -0
- data/{README → README.md} +3 -3
- data/Rakefile +1 -0
- data/cockpit/index.html +8 -8
- data/cockpit/js/details.js +13 -14
- data/cockpit/js/instance.js +192 -290
- data/cockpit/js/parameters.js +13 -3
- data/cockpit/js/ui.js +2 -2
- data/cockpit/rngs/attributes.rng +3 -3
- data/cockpit/rngs/dataelements.rng +3 -3
- data/cockpit/rngs/endpoints.rng +3 -3
- data/cockpit/{testsets → templates.legacy}/Async.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/BCO.xml +7 -10
- data/cockpit/{testsets → templates.legacy}/BCS.xml +7 -10
- data/cockpit/{testsets → templates.legacy}/Centurio.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Concurrent.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Coopis Testset.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Endpoints and Data Manipulation.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/ICSOC Testset.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Infinity.xml +3 -3
- data/cockpit/{testsets → templates.legacy}/Lego Boxer.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego Conveyor.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego Crane.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego Ejector.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego Full.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego Liddy.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego Plate.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego Transporter.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Lego_Part_1.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/LgLinear.xml +6 -10
- data/cockpit/{testsets → templates.legacy}/Linear.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Log.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Mangler 1.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Mangler 2.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Manuel Labels.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Promise.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/SOPROMO Test Sonification.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Subprocess.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Syncing P34 1.xml +8 -11
- data/cockpit/{testsets → templates.legacy}/Syncing P34 2.xml +8 -11
- data/cockpit/{testsets → templates.legacy}/Syncing P34 3.xml +8 -11
- data/cockpit/{testsets → templates.legacy}/Syncing P34.xml +8 -11
- data/cockpit/{testsets → templates.legacy}/TEST - Bad Loop.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/TEST - Wrong Positions.xml +6 -6
- data/cockpit/{testsets → templates.legacy}/Take_5.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Update.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Worklist Parallel.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Worklist Test CPEE.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Worklist Test.xml +7 -7
- data/cockpit/{testsets → templates.legacy}/Worklist Test2.xml +7 -7
- data/cockpit/templates.legacy/convert_cpee2.rb +15 -0
- data/cockpit/{testsets → templates.legacy}/convert_preset.rb +0 -0
- data/cockpit/{testsets → templates.legacy}/testsets.xml +1 -1
- data/cockpit/{testsets → templates.legacy}/transformations.xml +0 -0
- data/cockpit/templates/BPM 2020 Manual Adjust.xml +182 -0
- data/cockpit/templates/BPM 2020 Solution Baseline.xml +196 -0
- data/cockpit/templates/BPM 2020 Solution NN.xml +197 -0
- data/cockpit/templates/BPM 2020 Solution View.xml +144 -0
- data/cockpit/templates/BPM 2020.xml +26 -0
- data/cockpit/templates/Coopis 2010.xml +85 -0
- data/cockpit/templates/IUPC arXiv:1104.3609 P34 1.xml +77 -0
- data/cockpit/templates/IUPC arXiv:1104.3609 P34 2.xml +77 -0
- data/cockpit/templates/IUPC arXiv:1104.3609 P34 3.xml +77 -0
- data/cockpit/templates/Worklist.xml +42 -0
- data/cockpit/templates/convert_cpee2.rb +15 -0
- data/cockpit/themes/compact/rngs/alternative.rng +25 -0
- data/cockpit/themes/compact/rngs/call.rng +20 -14
- data/cockpit/themes/compact/rngs/callmanipulate.rng +28 -22
- data/cockpit/themes/compact/rngs/choose.rng +14 -0
- data/cockpit/themes/compact/rngs/critical.rng +5 -0
- data/cockpit/themes/compact/rngs/escape.rng +1 -0
- data/cockpit/themes/compact/rngs/group.rng +3 -0
- data/cockpit/themes/compact/rngs/loop.rng +22 -0
- data/cockpit/themes/compact/rngs/manipulate.rng +9 -0
- data/cockpit/themes/compact/rngs/otherwise.rng +22 -0
- data/cockpit/themes/compact/rngs/parallel.rng +21 -0
- data/cockpit/themes/compact/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/compact/rngs/scripts.rng +10 -11
- data/cockpit/themes/compact/rngs/stop.rng +5 -0
- data/cockpit/themes/compact/rngs/terminate.rng +1 -0
- data/cockpit/themes/compact/theme.js +1 -1
- data/cockpit/themes/convert_cpee2.rb +8 -0
- data/cockpit/themes/default/rngs/alternative.rng +8 -8
- data/cockpit/themes/default/rngs/call.rng +85 -49
- data/cockpit/themes/default/rngs/callmanipulate.rng +103 -64
- data/cockpit/themes/default/rngs/choose.rng +5 -3
- data/cockpit/themes/default/rngs/critical.rng +2 -2
- data/cockpit/themes/default/rngs/escape.rng +1 -1
- data/cockpit/themes/default/rngs/group.rng +3 -3
- data/cockpit/themes/default/rngs/loop.rng +8 -8
- data/cockpit/themes/default/rngs/manipulate.rng +3 -3
- data/cockpit/themes/default/rngs/otherwise.rng +8 -8
- data/cockpit/themes/default/rngs/parallel.rng +14 -6
- data/cockpit/themes/default/rngs/parallel_branch.rng +2 -2
- data/cockpit/themes/default/rngs/scripts.rng +23 -0
- data/cockpit/themes/default/rngs/stop.rng +2 -2
- data/cockpit/themes/default/rngs/terminate.rng +1 -1
- data/cockpit/themes/extended/rngs/alternative.rng +25 -0
- data/cockpit/themes/extended/rngs/call.rng +20 -14
- data/cockpit/themes/extended/rngs/callmanipulate.rng +28 -22
- data/cockpit/themes/extended/rngs/choose.rng +14 -0
- data/cockpit/themes/extended/rngs/critical.rng +5 -0
- data/cockpit/themes/extended/rngs/escape.rng +1 -0
- data/cockpit/themes/extended/rngs/group.rng +3 -0
- data/cockpit/themes/extended/rngs/loop.rng +22 -0
- data/cockpit/themes/extended/rngs/manipulate.rng +9 -0
- data/cockpit/themes/extended/rngs/otherwise.rng +22 -0
- data/cockpit/themes/extended/rngs/parallel.rng +21 -0
- data/cockpit/themes/extended/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/extended/rngs/scripts.rng +10 -11
- data/cockpit/themes/extended/rngs/stop.rng +5 -0
- data/cockpit/themes/extended/rngs/terminate.rng +1 -0
- data/cockpit/themes/extended/theme.js +14 -28
- data/cockpit/themes/model/rngs/alternative.rng +1 -1
- data/cockpit/themes/model/rngs/call.rng +16 -16
- data/cockpit/themes/model/rngs/callmanipulate.rng +17 -17
- data/cockpit/themes/model/rngs/choose.rng +1 -1
- data/cockpit/themes/model/rngs/critical.rng +1 -1
- data/cockpit/themes/model/rngs/escape.rng +1 -1
- data/cockpit/themes/model/rngs/group.rng +1 -1
- data/cockpit/themes/model/rngs/loop.rng +1 -1
- data/cockpit/themes/model/rngs/manipulate.rng +1 -1
- data/cockpit/themes/model/rngs/otherwise.rng +1 -1
- data/cockpit/themes/model/rngs/parallel.rng +1 -1
- data/cockpit/themes/model/rngs/parallel_branch.rng +1 -1
- data/cockpit/themes/model/rngs/scripts.rng +3 -4
- data/cockpit/themes/model/rngs/stop.rng +1 -1
- data/cockpit/themes/model/rngs/terminate.rng +1 -1
- data/cockpit/themes/model/theme.js +8 -7
- data/cockpit/themes/packed/rngs/alternative.rng +25 -0
- data/cockpit/themes/packed/rngs/call.rng +20 -14
- data/cockpit/themes/packed/rngs/callmanipulate.rng +28 -22
- data/cockpit/themes/packed/rngs/choose.rng +14 -0
- data/cockpit/themes/packed/rngs/critical.rng +5 -0
- data/cockpit/themes/packed/rngs/escape.rng +1 -0
- data/cockpit/themes/packed/rngs/group.rng +3 -0
- data/cockpit/themes/packed/rngs/loop.rng +22 -0
- data/cockpit/themes/packed/rngs/manipulate.rng +9 -0
- data/cockpit/themes/packed/rngs/otherwise.rng +22 -0
- data/cockpit/themes/packed/rngs/parallel.rng +21 -0
- data/cockpit/themes/packed/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/packed/rngs/scripts.rng +10 -11
- data/cockpit/themes/packed/rngs/stop.rng +5 -0
- data/cockpit/themes/packed/rngs/terminate.rng +1 -0
- data/cockpit/themes/packed/theme.js +8 -7
- data/cockpit/themes/preset/rngs/alternative.rng +25 -0
- data/cockpit/themes/preset/rngs/call.rng +20 -14
- data/cockpit/themes/preset/rngs/callmanipulate.rng +28 -22
- data/cockpit/themes/preset/rngs/choose.rng +14 -0
- data/cockpit/themes/preset/rngs/critical.rng +5 -0
- data/cockpit/themes/preset/rngs/escape.rng +1 -0
- data/cockpit/themes/preset/rngs/group.rng +3 -0
- data/cockpit/themes/preset/rngs/loop.rng +22 -0
- data/cockpit/themes/preset/rngs/manipulate.rng +9 -0
- data/cockpit/themes/preset/rngs/otherwise.rng +22 -0
- data/cockpit/themes/preset/rngs/parallel.rng +21 -0
- data/cockpit/themes/preset/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/preset/rngs/scripts.rng +10 -11
- data/cockpit/themes/preset/rngs/stop.rng +5 -0
- data/cockpit/themes/preset/rngs/terminate.rng +1 -0
- data/cockpit/themes/preset/theme.js +8 -7
- data/cpee.gemspec +9 -10
- data/{log/topics.xml → lib/callbacks.xml} +16 -6
- data/lib/{engine → callbacks}/callbacks.rng +2 -8
- data/lib/cpee.xml +10 -4
- data/lib/cpee/attributes_helper.rb +27 -0
- data/lib/cpee/controller.rb +113 -596
- data/lib/cpee/implementation.rb +152 -191
- data/lib/cpee/implementation_callbacks.rb +77 -0
- data/lib/cpee/implementation_notifications.rb +189 -0
- data/lib/cpee/implementation_properties.rb +707 -0
- data/lib/cpee/{callback.rb → message.rb} +20 -18
- data/lib/cpee/persistence.rb +135 -0
- data/lib/cpee/statemachine.rb +20 -0
- data/lib/cpee/transform.rb +95 -0
- data/lib/engine.xml +1 -59
- data/lib/properties.xml +236 -0
- data/lib/properties/arbitrary.rng +26 -0
- data/lib/properties/attributes.rng +10 -0
- data/lib/properties/dataelements.rng +10 -0
- data/lib/properties/description.rng +8 -0
- data/lib/properties/dsl.rng +7 -0
- data/lib/properties/dslx.rng +8 -0
- data/lib/properties/endpoints.rng +10 -0
- data/lib/properties/handlerwrapper.rng +9 -0
- data/lib/properties/position.rng +15 -0
- data/lib/properties/positions.rng +10 -0
- data/lib/properties/properties.rng +29 -0
- data/lib/properties/set-properties.rng +25 -0
- data/lib/properties/set-some-properties.rng +45 -0
- data/lib/properties/simple.rng +8 -0
- data/lib/properties/state.rng +33 -0
- data/lib/properties/status.rng +12 -0
- data/lib/properties/t_attributes.rng +7 -0
- data/lib/properties/t_dataelements.rng +7 -0
- data/lib/properties/t_endpoints.rng +7 -0
- data/lib/properties/t_position.rng +7 -0
- data/lib/properties/t_positions.rng +7 -0
- data/lib/properties/t_simple.rng +7 -0
- data/lib/properties/t_status.rng +7 -0
- data/lib/properties/t_transformation.rng +7 -0
- data/lib/properties/transformation.rng +40 -0
- data/server/dev.rb +1 -0
- data/server/handlerwrappers/default.rb +40 -38
- data/server/resources/backend/README.md +17 -0
- data/server/resources/backend/instance.rb +23 -0
- data/server/resources/backend/instance.template +19 -0
- data/server/resources/backend/opts.yaml +6 -0
- data/server/resources/backend/run +29 -0
- data/server/resources/notifications/logging/subscription.xml +1 -1
- data/server/resources/properties.empty +38 -0
- data/server/resources/properties.init +11 -11
- data/server/resources/states.dot +19 -0
- data/server/resources/states.xml +49 -0
- data/server/routing/end.rb +44 -0
- data/server/routing/forward-events.rb +59 -0
- data/server/routing/forward-votes.rb +108 -0
- data/server/routing/persist.rb +155 -0
- data/server/server.rb +1 -0
- data/tools/cpee +19 -15
- metadata +126 -176
- data/INSTALL +0 -23
- data/cockpit/test.html +0 -40
- data/cockpit/themes/compact/rngs/alternative.rng +0 -1
- data/cockpit/themes/compact/rngs/choose.rng +0 -1
- data/cockpit/themes/compact/rngs/critical.rng +0 -1
- data/cockpit/themes/compact/rngs/escape.rng +0 -1
- data/cockpit/themes/compact/rngs/group.rng +0 -1
- data/cockpit/themes/compact/rngs/loop.rng +0 -1
- data/cockpit/themes/compact/rngs/manipulate.rng +0 -1
- data/cockpit/themes/compact/rngs/otherwise.rng +0 -1
- data/cockpit/themes/compact/rngs/parallel.rng +0 -1
- data/cockpit/themes/compact/rngs/parallel_branch.rng +0 -1
- data/cockpit/themes/compact/rngs/stop.rng +0 -1
- data/cockpit/themes/compact/rngs/terminate.rng +0 -1
- data/cockpit/themes/default/rngs/finalize.rng +0 -6
- data/cockpit/themes/default/rngs/update.rng +0 -6
- data/cockpit/themes/default/theme.js +0 -1286
- data/cockpit/themes/extended/rngs/alternative.rng +0 -1
- data/cockpit/themes/extended/rngs/choose.rng +0 -1
- data/cockpit/themes/extended/rngs/critical.rng +0 -1
- data/cockpit/themes/extended/rngs/escape.rng +0 -1
- data/cockpit/themes/extended/rngs/group.rng +0 -1
- data/cockpit/themes/extended/rngs/loop.rng +0 -1
- data/cockpit/themes/extended/rngs/manipulate.rng +0 -1
- data/cockpit/themes/extended/rngs/otherwise.rng +0 -1
- data/cockpit/themes/extended/rngs/parallel.rng +0 -1
- data/cockpit/themes/extended/rngs/parallel_branch.rng +0 -1
- data/cockpit/themes/extended/rngs/stop.rng +0 -1
- data/cockpit/themes/extended/rngs/terminate.rng +0 -1
- data/cockpit/themes/labels/rngs/alternative.rng +0 -25
- data/cockpit/themes/labels/rngs/call.rng +0 -81
- data/cockpit/themes/labels/rngs/callmanipulate.rng +0 -101
- data/cockpit/themes/labels/rngs/choose.rng +0 -12
- data/cockpit/themes/labels/rngs/critical.rng +0 -5
- data/cockpit/themes/labels/rngs/escape.rng +0 -1
- data/cockpit/themes/labels/rngs/finalize.rng +0 -6
- data/cockpit/themes/labels/rngs/group.rng +0 -3
- data/cockpit/themes/labels/rngs/loop.rng +0 -22
- data/cockpit/themes/labels/rngs/manipulate.rng +0 -9
- data/cockpit/themes/labels/rngs/otherwise.rng +0 -22
- data/cockpit/themes/labels/rngs/parallel.rng +0 -13
- data/cockpit/themes/labels/rngs/parallel_branch.rng +0 -8
- data/cockpit/themes/labels/rngs/stop.rng +0 -5
- data/cockpit/themes/labels/rngs/terminate.rng +0 -1
- data/cockpit/themes/labels/rngs/update.rng +0 -6
- data/cockpit/themes/labels/symbols/alternative.svg +0 -5
- data/cockpit/themes/labels/symbols/arrow.svg +0 -3
- data/cockpit/themes/labels/symbols/call.svg +0 -6
- data/cockpit/themes/labels/symbols/callmanipulate.svg +0 -8
- data/cockpit/themes/labels/symbols/choose.svg +0 -5
- data/cockpit/themes/labels/symbols/choose_exclusive.svg +0 -5
- data/cockpit/themes/labels/symbols/choose_inclusive.svg +0 -4
- data/cockpit/themes/labels/symbols/complex.svg +0 -8
- data/cockpit/themes/labels/symbols/critical.svg +0 -4
- data/cockpit/themes/labels/symbols/end.svg +0 -3
- data/cockpit/themes/labels/symbols/escape.svg +0 -5
- data/cockpit/themes/labels/symbols/event_end.svg +0 -3
- data/cockpit/themes/labels/symbols/loop.svg +0 -5
- data/cockpit/themes/labels/symbols/manipulate.svg +0 -4
- data/cockpit/themes/labels/symbols/otherwise.svg +0 -5
- data/cockpit/themes/labels/symbols/parallel.svg +0 -5
- data/cockpit/themes/labels/symbols/parallel_branch.svg +0 -5
- data/cockpit/themes/labels/symbols/parallel_branch_compact.svg +0 -4
- data/cockpit/themes/labels/symbols/parallel_branch_event.svg +0 -14
- data/cockpit/themes/labels/symbols/parallel_branch_normal.svg +0 -5
- data/cockpit/themes/labels/symbols/scripts.svg +0 -4
- data/cockpit/themes/labels/symbols/start.svg +0 -3
- data/cockpit/themes/labels/symbols/stop.svg +0 -5
- data/cockpit/themes/labels/symbols/terminate.svg +0 -4
- data/cockpit/themes/packed/rngs/alternative.rng +0 -1
- data/cockpit/themes/packed/rngs/choose.rng +0 -1
- data/cockpit/themes/packed/rngs/critical.rng +0 -1
- data/cockpit/themes/packed/rngs/escape.rng +0 -1
- data/cockpit/themes/packed/rngs/group.rng +0 -1
- data/cockpit/themes/packed/rngs/loop.rng +0 -1
- data/cockpit/themes/packed/rngs/manipulate.rng +0 -1
- data/cockpit/themes/packed/rngs/otherwise.rng +0 -1
- data/cockpit/themes/packed/rngs/parallel.rng +0 -1
- data/cockpit/themes/packed/rngs/parallel_branch.rng +0 -1
- data/cockpit/themes/packed/rngs/stop.rng +0 -1
- data/cockpit/themes/packed/rngs/terminate.rng +0 -1
- data/cockpit/themes/preset/rngs/alternative.rng +0 -1
- data/cockpit/themes/preset/rngs/choose.rng +0 -1
- data/cockpit/themes/preset/rngs/critical.rng +0 -1
- data/cockpit/themes/preset/rngs/escape.rng +0 -1
- data/cockpit/themes/preset/rngs/group.rng +0 -1
- data/cockpit/themes/preset/rngs/loop.rng +0 -1
- data/cockpit/themes/preset/rngs/manipulate.rng +0 -1
- data/cockpit/themes/preset/rngs/otherwise.rng +0 -1
- data/cockpit/themes/preset/rngs/parallel.rng +0 -1
- data/cockpit/themes/preset/rngs/parallel_branch.rng +0 -1
- data/cockpit/themes/preset/rngs/stop.rng +0 -1
- data/cockpit/themes/preset/rngs/terminate.rng +0 -1
- data/lib/cpee/empty_workflow.rb +0 -28
- data/lib/cpee/handler_notifications.rb +0 -47
- data/lib/cpee/handler_properties.rb +0 -50
- data/lib/cpee/instantiation.rb +0 -369
- data/lib/cpee/processtransformation/bpel/Repository/booking.bpel +0 -125
- data/lib/cpee/processtransformation/bpel/Repository/booking.wsdl +0 -72
- data/lib/cpee/processtransformation/bpel/Repository/booking/airline.wsdl +0 -71
- data/lib/cpee/processtransformation/bpel/Repository/booking/hotel.wsdl +0 -64
- data/lib/cpee/processtransformation/bpel/Repository/booking/report.wsdl +0 -71
- data/lib/cpee/processtransformation/bpel/bpel2wee.rb +0 -34
- data/lib/cpee/processtransformation/bpel/bpelserver.ru +0 -64
- data/lib/cpee/processtransformation/bpel/bpelserver.xml +0 -70
- data/lib/cpee/processtransformation/bpel/lib/BPEL_Transform.rb +0 -367
- data/lib/cpee/processtransformation/bpmn2.rb +0 -297
- data/lib/cpee/processtransformation/cpee.rb +0 -119
- data/lib/cpee/processtransformation/structures.rb +0 -465
- data/lib/cpee/processtransformation/target.rb +0 -50
- data/log/azure.rb +0 -10
- data/log/azure_logger.rb +0 -136
- data/log/chain.xml +0 -27
- data/log/elasticsearch.rb +0 -15
- data/log/elasticsearch_logging.rb +0 -377
- data/log/legacy/test_es.rb +0 -26
- data/log/legacy/test_split.rb +0 -211
- data/log/log.xml +0 -13
- data/log/non_tamp.rb +0 -156
- data/log/sic.rb +0 -63
- data/log/template.xes_xml +0 -23
- data/log/template.xes_yaml +0 -28
- data/log/trace.yaml +0 -17717
- data/log/trace_sic.yaml +0 -18343
- data/log/xes_xml.rb +0 -121
- data/log/xes_yaml.rb +0 -96
- data/server/handlerwrappers/soap.rb +0 -146
- data/server/resources/notifications/logging/consumer-secret +0 -1
- data/server/resources/notifications/logging/producer-secret +0 -1
- data/server/resources/properties.schema.active +0 -139
- data/server/resources/properties.schema.finished +0 -139
- data/server/resources/properties.schema.inactive +0 -136
- data/server/resources/test1.xml +0 -58
- data/server/resources/test2.xml +0 -60
- data/server/resources/test3.xml +0 -217
- data/test/callback.rb +0 -9
@@ -1,125 +0,0 @@
|
|
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>
|
@@ -1,72 +0,0 @@
|
|
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>
|
@@ -1,71 +0,0 @@
|
|
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>
|
@@ -1,64 +0,0 @@
|
|
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>
|
@@ -1,71 +0,0 @@
|
|
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>
|
@@ -1,34 +0,0 @@
|
|
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
|
@@ -1,64 +0,0 @@
|
|
1
|
-
#\ -p 9298
|
2
|
-
$url = 'http://localhost:9298'
|
3
|
-
$mode = :debug # :production
|
4
|
-
$0 = "cpee"
|
5
|
-
|
6
|
-
use Rack::ShowStatus
|
7
|
-
|
8
|
-
require 'pp'
|
9
|
-
require 'fileutils'
|
10
|
-
require '../../../riddl/lib/ruby/server'
|
11
|
-
require '../../../riddl/lib/ruby/client'
|
12
|
-
require '../../../riddl/lib/ruby/utils/notifications_producer'
|
13
|
-
require '../../../riddl/lib/ruby/utils/properties'
|
14
|
-
require '../../../riddl/lib/ruby/utils/fileserve'
|
15
|
-
require '../../../riddl/lib/ruby/utils/declaration'
|
16
|
-
require './engine/implementation'
|
17
|
-
|
18
|
-
run Riddl::Server.new(::File.dirname(__FILE__) + '/declaration.xml') {
|
19
|
-
accessible_description true
|
20
|
-
cross_site_xhr true
|
21
|
-
|
22
|
-
a_schema, a_strans = Riddl::Utils::Properties::schema(::File.dirname(__FILE__) + '/instances/properties.schema.active')
|
23
|
-
i_schema, i_strans = Riddl::Utils::Properties::schema(::File.dirname(__FILE__) + '/instances/properties.schema.inactive')
|
24
|
-
f_schema, f_strans = Riddl::Utils::Properties::schema(::File.dirname(__FILE__) + '/instances/properties.schema.finished')
|
25
|
-
xsls = {
|
26
|
-
:overview => '/xsls/overview.xsl',
|
27
|
-
:subscriptions => '/xsls/subscriptions.xsl'
|
28
|
-
}
|
29
|
-
|
30
|
-
on resource do
|
31
|
-
run Riddl::Utils::Declaration::Description, description_string if get 'riddl-description-request'
|
32
|
-
run Instances if get '*'
|
33
|
-
run NewInstance, $url if post 'instance-name'
|
34
|
-
on resource do
|
35
|
-
run Info if get
|
36
|
-
run DeleteInstance if delete
|
37
|
-
on resource 'properties' do |r|
|
38
|
-
instance = ::File.dirname(__FILE__) + '/instances/' + r[:r][0] + '/'
|
39
|
-
properties = Riddl::Utils::Properties::file(instance + 'properties.xml')
|
40
|
-
schema, strans = case $controller[r[:r][0].to_i].state
|
41
|
-
when :ready, :stopped; [i_schema,i_strans]
|
42
|
-
when :running, :stopping; [a_schema,a_strans]
|
43
|
-
when :finished; [f_schema,f_strans]
|
44
|
-
end
|
45
|
-
use Riddl::Utils::Properties::implementation(properties, schema, strans, PropertiesHandler, r[:match].count, $mode)
|
46
|
-
end
|
47
|
-
on resource 'notifications' do |r|
|
48
|
-
ndir = ::File.dirname(__FILE__) + '/instances/' + r[:r][0] + '/notifications/'
|
49
|
-
use Riddl::Utils::Notifications::Producer::implementation(ndir,xsls, NotificationsHandler, $mode)
|
50
|
-
end
|
51
|
-
on resource 'callbacks' do
|
52
|
-
run Callbacks, $mode if get
|
53
|
-
on resource do
|
54
|
-
run ExCallback if get || put || post || delete
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
on resource 'xsls' do
|
59
|
-
on resource do
|
60
|
-
run Riddl::Utils::FileServe, "xsls" if get
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
}
|