cpee 1.3.104 → 1.3.105
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/cockpit/README +4 -0
- data/cockpit/index.html +2 -5
- data/cockpit/js/instance.js +36 -23
- data/cockpit/js/ui.js +2 -2
- data/cockpit/testsets/Linear.xml +9 -11
- data/cockpit/testsets/index.xml +0 -5
- data/cpee.gemspec +1 -1
- data/lib/cpee/controller.rb +7 -0
- data/server/handlerwrappers/default.rb +13 -15
- data/server/handlerwrappers/rescue.rb +13 -15
- data/server/handlerwrappers/soap.rb +13 -15
- data/server/instances/1/notifications/0010e92c718702beba99b049a92e584d/consumer-secret +1 -0
- data/server/instances/1/notifications/0010e92c718702beba99b049a92e584d/producer-secret +1 -0
- data/server/instances/1/notifications/0010e92c718702beba99b049a92e584d/subscription.xml +27 -0
- data/server/instances/1/notifications/157078b54cf38e4d9451156da3860adb/consumer-secret +1 -0
- data/server/instances/1/notifications/157078b54cf38e4d9451156da3860adb/producer-secret +1 -0
- data/server/instances/1/notifications/157078b54cf38e4d9451156da3860adb/subscription.xml +27 -0
- data/server/instances/1/notifications/1918856047a1c6b18a7610e44a89a01b/consumer-secret +1 -0
- data/server/instances/1/notifications/1918856047a1c6b18a7610e44a89a01b/producer-secret +1 -0
- data/server/instances/1/notifications/1918856047a1c6b18a7610e44a89a01b/subscription.xml +27 -0
- data/server/instances/1/notifications/1d67171cffc19ef276c6422466a37a93/consumer-secret +1 -0
- data/server/instances/1/notifications/1d67171cffc19ef276c6422466a37a93/producer-secret +1 -0
- data/server/instances/1/notifications/1d67171cffc19ef276c6422466a37a93/subscription.xml +27 -0
- data/server/instances/1/notifications/21409c12c1e724205b543b96c00ccb6a/consumer-secret +1 -0
- data/server/instances/1/notifications/21409c12c1e724205b543b96c00ccb6a/producer-secret +1 -0
- data/server/instances/1/notifications/21409c12c1e724205b543b96c00ccb6a/subscription.xml +27 -0
- data/server/instances/1/notifications/2c11156c72dbd2f67356e3c05b93b8d1/consumer-secret +1 -0
- data/server/instances/1/notifications/2c11156c72dbd2f67356e3c05b93b8d1/producer-secret +1 -0
- data/server/instances/1/notifications/2c11156c72dbd2f67356e3c05b93b8d1/subscription.xml +27 -0
- data/server/instances/1/notifications/78bfde4c4c3eb9e0225f89c5cff0dabb/consumer-secret +1 -0
- data/server/instances/1/notifications/78bfde4c4c3eb9e0225f89c5cff0dabb/producer-secret +1 -0
- data/server/instances/1/notifications/78bfde4c4c3eb9e0225f89c5cff0dabb/subscription.xml +27 -0
- data/server/instances/1/notifications/7edbe1c01634abcd7d6af78aaf49a0cf/consumer-secret +1 -0
- data/server/instances/1/notifications/7edbe1c01634abcd7d6af78aaf49a0cf/producer-secret +1 -0
- data/server/instances/1/notifications/7edbe1c01634abcd7d6af78aaf49a0cf/subscription.xml +27 -0
- data/server/instances/1/notifications/83064c2a5d1d7f9ad3c1f1ffb8e7e9db/consumer-secret +1 -0
- data/server/instances/1/notifications/83064c2a5d1d7f9ad3c1f1ffb8e7e9db/producer-secret +1 -0
- data/server/instances/1/notifications/83064c2a5d1d7f9ad3c1f1ffb8e7e9db/subscription.xml +27 -0
- data/server/instances/1/notifications/92a147faaa1c31c6dc4cf000897f2e18/consumer-secret +1 -0
- data/server/instances/1/notifications/92a147faaa1c31c6dc4cf000897f2e18/producer-secret +1 -0
- data/server/instances/1/notifications/92a147faaa1c31c6dc4cf000897f2e18/subscription.xml +27 -0
- data/server/instances/1/notifications/c1a285ed17c5d283478cc5fc6cfc628c/consumer-secret +1 -0
- data/server/instances/1/notifications/c1a285ed17c5d283478cc5fc6cfc628c/producer-secret +1 -0
- data/server/instances/1/notifications/c1a285ed17c5d283478cc5fc6cfc628c/subscription.xml +27 -0
- data/server/instances/1/notifications/d705b78256ff1dc5818d20994f16fada/consumer-secret +1 -0
- data/server/instances/1/notifications/d705b78256ff1dc5818d20994f16fada/producer-secret +1 -0
- data/server/instances/1/notifications/d705b78256ff1dc5818d20994f16fada/subscription.xml +27 -0
- data/server/instances/1/notifications/e4e2495e44235851b958ac6938a08140/consumer-secret +1 -0
- data/server/instances/1/notifications/e4e2495e44235851b958ac6938a08140/producer-secret +1 -0
- data/server/instances/1/notifications/e4e2495e44235851b958ac6938a08140/subscription.xml +27 -0
- data/server/instances/1/notifications/f81368a6d30d4a07eedb1db5c5cde084/consumer-secret +1 -0
- data/server/instances/1/notifications/f81368a6d30d4a07eedb1db5c5cde084/producer-secret +1 -0
- data/server/instances/1/notifications/f81368a6d30d4a07eedb1db5c5cde084/subscription.xml +27 -0
- data/server/instances/12/notifications/917f3f3d4e339ecbdfcb3626c73a6460/consumer-secret +1 -0
- data/server/instances/12/notifications/917f3f3d4e339ecbdfcb3626c73a6460/producer-secret +1 -0
- data/server/instances/12/notifications/917f3f3d4e339ecbdfcb3626c73a6460/subscription.xml +27 -0
- data/server/instances/12/properties.xml +522 -0
- data/server/instances/13/notifications/bab68e2d01b9136571ecb2e1a5e9d736/consumer-secret +1 -0
- data/server/instances/13/notifications/bab68e2d01b9136571ecb2e1a5e9d736/producer-secret +1 -0
- data/server/instances/13/notifications/bab68e2d01b9136571ecb2e1a5e9d736/subscription.xml +27 -0
- data/{cockpit/testsets/ADVENTURE Dynamic Order.xml → server/instances/13/properties.xml} +136 -117
- data/server/resources/properties.schema.active +3 -0
- data/server/resources/properties.schema.finished +3 -0
- data/server/resources/properties.schema.inactive +3 -0
- data/server/resources/topics.xml +3 -0
- data/server/server.rb +14 -15
- metadata +64 -26
- data/cockpit/testsets/ADVENTURE Main Loop.xml +0 -327
- data/cockpit/testsets/ADVENTURE Order.xml +0 -424
- data/cockpit/testsets/ADVENTURE Performance Test 1.xml +0 -311
- data/cockpit/testsets/ADVENTURE Performance Test 2.xml +0 -297
|
@@ -0,0 +1 @@
|
|
|
1
|
+
75a6bcb396ee74de06c7757ec65489d3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1e04b2b60f91343f04453d53155db299
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
13190912ea405b9e2067d503025f81eb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3120aab87ec71a109a17bd9fa6f58015
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d29ed107dc1a66227547070dee09b6f6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a077330a319f755190eb1fde55a78ad2
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5e0c56bec5e185dec4e0c7cf3c47fc6c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0b0ce41bae7cfe32eaa45b75764a4961
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c7a064218016f93657dbb1b4ce49b071
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eaac9dc63eae1556a137fa2369cc3ab0
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2c41cc214d14134e62a156c187c862b3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9dd33dfc86a35fcf09f0a784248cd0a6
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bcaf8830ac5252f8887b3cd10c276891
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9ad9c9ac32ecc244fe9a8fd5424833c1
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18679cc639c1ac49328261781b266565
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5c77572a9eaff295c4ce8e5d89777c56
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
87d15b271bdba003af22c8bc59781c84
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
53eba0523ae9977f00a5ad05c40c3f82
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
448538714c0ad4befc33547170e203fc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ac9843cdfa37cafc82170330e4714c0e
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
33c0c8c27676878b80f780d88e28f6af
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a1dfb9820446332d7ca91c7c79b4bdbd
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
|
2
|
+
<topic id="running">
|
|
3
|
+
<event>activity_calling</event>
|
|
4
|
+
<event>activity_manipulating</event>
|
|
5
|
+
<event>activity_failed</event>
|
|
6
|
+
<event>activity_done</event>
|
|
7
|
+
</topic>
|
|
8
|
+
<topic id="properties/position">
|
|
9
|
+
<event>change</event>
|
|
10
|
+
</topic>
|
|
11
|
+
<topic id="properties/description">
|
|
12
|
+
<event>change</event>
|
|
13
|
+
<event>error</event>
|
|
14
|
+
</topic>
|
|
15
|
+
<topic id="properties/state">
|
|
16
|
+
<event>change</event>
|
|
17
|
+
</topic>
|
|
18
|
+
<topic id="properties/dataelements">
|
|
19
|
+
<event>change</event>
|
|
20
|
+
</topic>
|
|
21
|
+
<topic id="properties/endpoints">
|
|
22
|
+
<event>change</event>
|
|
23
|
+
</topic>
|
|
24
|
+
<topic id="properties/handlers">
|
|
25
|
+
<event>change</event>
|
|
26
|
+
</topic>
|
|
27
|
+
</subscription>
|
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
|
2
|
+
<name>Enter name here</name>
|
|
3
|
+
<state>ready</state>
|
|
4
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
|
5
|
+
<positions>
|
|
6
|
+
<a9>at</a9>
|
|
7
|
+
<a5>at</a5>
|
|
8
|
+
<a2>at</a2>
|
|
9
|
+
<a1>at</a1>
|
|
10
|
+
</positions>
|
|
11
|
+
<dataelements>
|
|
12
|
+
<test/>
|
|
13
|
+
</dataelements>
|
|
14
|
+
<endpoints>
|
|
15
|
+
<gateway>http://localhost/gateways/timeout.php</gateway>
|
|
16
|
+
</endpoints>
|
|
17
|
+
<dsl>parallel do
|
|
18
|
+
parallel_branch do
|
|
19
|
+
activity :a9, :call, :gateway, :label => "Produce Headcap Subsystem", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
20
|
+
activity :a10, :call, :gateway, :label => "Delivery", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
21
|
+
end
|
|
22
|
+
parallel_branch do
|
|
23
|
+
activity :a5, :call, :gateway, :label => "Supply Mechanical Parts", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
24
|
+
activity :a6, :call, :gateway, :label => "Produce Mechanical Parts (A-Z)", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
25
|
+
activity :a7, :call, :gateway, :label => "Perform Surface Treatment", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
26
|
+
activity :a8, :call, :gateway, :label => "Mechanical Parts Assembly", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
27
|
+
end
|
|
28
|
+
parallel_branch do
|
|
29
|
+
parallel do
|
|
30
|
+
parallel_branch do
|
|
31
|
+
activity :a2, :call, :gateway, :label => "Supply Electric Parts", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
32
|
+
activity :a3, :call, :gateway, :label => "Delivery", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
33
|
+
end
|
|
34
|
+
parallel_branch do
|
|
35
|
+
activity :a1, :call, :gateway, :label => "Develop Control System", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
activity :a4, :call, :gateway, :label => "Electric Board Assembly", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
activity :a11, :call, :gateway, :label => "Systems Integration", :method => "post", :parameters => [ { :timeout => 4 } ]
|
|
42
|
+
activity :a12, :call, :gateway, :label => "Test", :method => "post", :parameters => [ { :timeout => 4 } ] do |result|
|
|
43
|
+
data.test = "success"
|
|
44
|
+
end
|
|
45
|
+
</dsl>
|
|
46
|
+
<status>
|
|
47
|
+
<id>0</id>
|
|
48
|
+
<message>undefined</message>
|
|
49
|
+
</status>
|
|
50
|
+
<description>
|
|
51
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
|
52
|
+
<!--{{{-->
|
|
53
|
+
<parallel>
|
|
54
|
+
<parallel_branch>
|
|
55
|
+
<call id="a9" endpoint="gateway">
|
|
56
|
+
<parameters>
|
|
57
|
+
<!--{{{-->
|
|
58
|
+
<label>Produce Headcap Subsystem</label>
|
|
59
|
+
<method>post</method>
|
|
60
|
+
<parameters>
|
|
61
|
+
<timeout>4</timeout>
|
|
62
|
+
</parameters>
|
|
63
|
+
</parameters>
|
|
64
|
+
<!--}}}-->
|
|
65
|
+
</call>
|
|
66
|
+
<call id="a10" endpoint="gateway">
|
|
67
|
+
<parameters>
|
|
68
|
+
<!--{{{-->
|
|
69
|
+
<label>Delivery</label>
|
|
70
|
+
<method>post</method>
|
|
71
|
+
<parameters>
|
|
72
|
+
<timeout>4</timeout>
|
|
73
|
+
</parameters>
|
|
74
|
+
</parameters>
|
|
75
|
+
<!--}}}-->
|
|
76
|
+
</call>
|
|
77
|
+
</parallel_branch>
|
|
78
|
+
<parallel_branch>
|
|
79
|
+
<call id="a5" endpoint="gateway">
|
|
80
|
+
<parameters>
|
|
81
|
+
<!--{{{-->
|
|
82
|
+
<label>Supply Mechanical Parts</label>
|
|
83
|
+
<method>post</method>
|
|
84
|
+
<parameters>
|
|
85
|
+
<timeout>4</timeout>
|
|
86
|
+
</parameters>
|
|
87
|
+
</parameters>
|
|
88
|
+
<!--}}}-->
|
|
89
|
+
</call>
|
|
90
|
+
<call id="a6" endpoint="gateway">
|
|
91
|
+
<parameters>
|
|
92
|
+
<!--{{{-->
|
|
93
|
+
<label>Produce Mechanical Parts (A-Z)</label>
|
|
94
|
+
<method>post</method>
|
|
95
|
+
<parameters>
|
|
96
|
+
<timeout>4</timeout>
|
|
97
|
+
</parameters>
|
|
98
|
+
</parameters>
|
|
99
|
+
<!--}}}-->
|
|
100
|
+
</call>
|
|
101
|
+
<call id="a7" endpoint="gateway">
|
|
102
|
+
<parameters>
|
|
103
|
+
<!--{{{-->
|
|
104
|
+
<label>Perform Surface Treatment</label>
|
|
105
|
+
<method>post</method>
|
|
106
|
+
<parameters>
|
|
107
|
+
<timeout>4</timeout>
|
|
108
|
+
</parameters>
|
|
109
|
+
</parameters>
|
|
110
|
+
<!--}}}-->
|
|
111
|
+
</call>
|
|
112
|
+
<call id="a8" endpoint="gateway">
|
|
113
|
+
<parameters>
|
|
114
|
+
<!--{{{-->
|
|
115
|
+
<label>Mechanical Parts Assembly</label>
|
|
116
|
+
<method>post</method>
|
|
117
|
+
<parameters>
|
|
118
|
+
<timeout>4</timeout>
|
|
119
|
+
</parameters>
|
|
120
|
+
</parameters>
|
|
121
|
+
<!--}}}-->
|
|
122
|
+
</call>
|
|
123
|
+
</parallel_branch>
|
|
124
|
+
<parallel_branch>
|
|
125
|
+
<parallel>
|
|
126
|
+
<parallel_branch>
|
|
127
|
+
<call id="a2" endpoint="gateway">
|
|
128
|
+
<parameters>
|
|
129
|
+
<!--{{{-->
|
|
130
|
+
<label>Supply Electric Parts</label>
|
|
131
|
+
<method>post</method>
|
|
132
|
+
<parameters>
|
|
133
|
+
<timeout>4</timeout>
|
|
134
|
+
</parameters>
|
|
135
|
+
</parameters>
|
|
136
|
+
<!--}}}-->
|
|
137
|
+
</call>
|
|
138
|
+
<call id="a3" endpoint="gateway">
|
|
139
|
+
<parameters>
|
|
140
|
+
<!--{{{-->
|
|
141
|
+
<label>Delivery</label>
|
|
142
|
+
<method>post</method>
|
|
143
|
+
<parameters>
|
|
144
|
+
<timeout>4</timeout>
|
|
145
|
+
</parameters>
|
|
146
|
+
</parameters>
|
|
147
|
+
<!--}}}-->
|
|
148
|
+
</call>
|
|
149
|
+
</parallel_branch>
|
|
150
|
+
<parallel_branch>
|
|
151
|
+
<call id="a1" endpoint="gateway">
|
|
152
|
+
<parameters>
|
|
153
|
+
<!--{{{-->
|
|
154
|
+
<label>Develop Control System</label>
|
|
155
|
+
<method>post</method>
|
|
156
|
+
<parameters>
|
|
157
|
+
<timeout>4</timeout>
|
|
158
|
+
</parameters>
|
|
159
|
+
</parameters>
|
|
160
|
+
<!--}}}-->
|
|
161
|
+
</call>
|
|
162
|
+
</parallel_branch>
|
|
163
|
+
</parallel>
|
|
164
|
+
<call id="a4" endpoint="gateway">
|
|
165
|
+
<parameters>
|
|
166
|
+
<!--{{{-->
|
|
167
|
+
<label>Electric Board Assembly</label>
|
|
168
|
+
<method>post</method>
|
|
169
|
+
<parameters>
|
|
170
|
+
<timeout>4</timeout>
|
|
171
|
+
</parameters>
|
|
172
|
+
</parameters>
|
|
173
|
+
<!--}}}-->
|
|
174
|
+
</call>
|
|
175
|
+
</parallel_branch>
|
|
176
|
+
</parallel>
|
|
177
|
+
<call id="a11" endpoint="gateway">
|
|
178
|
+
<parameters>
|
|
179
|
+
<!--{{{-->
|
|
180
|
+
<label>Systems Integration</label>
|
|
181
|
+
<method>post</method>
|
|
182
|
+
<parameters>
|
|
183
|
+
<timeout>4</timeout>
|
|
184
|
+
</parameters>
|
|
185
|
+
</parameters>
|
|
186
|
+
<!--}}}-->
|
|
187
|
+
</call>
|
|
188
|
+
<call id="a12" endpoint="gateway">
|
|
189
|
+
<parameters>
|
|
190
|
+
<!--{{{-->
|
|
191
|
+
<label>Test</label>
|
|
192
|
+
<method>post</method>
|
|
193
|
+
<parameters>
|
|
194
|
+
<timeout>4</timeout>
|
|
195
|
+
</parameters>
|
|
196
|
+
</parameters>
|
|
197
|
+
<!--}}}-->
|
|
198
|
+
<manipulate output="result"> data.test = "success"</manipulate>
|
|
199
|
+
</call>
|
|
200
|
+
</description>
|
|
201
|
+
</description>
|
|
202
|
+
<transformation>
|
|
203
|
+
<!--{{{-->
|
|
204
|
+
<!--}}}-->
|
|
205
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0" version="1.0">
|
|
206
|
+
<xsl:output method="text"/>
|
|
207
|
+
<xsl:strip-space elements="*"/>
|
|
208
|
+
<xsl:variable name="myspacemultiplier">2</xsl:variable>
|
|
209
|
+
<xsl:template match="/">
|
|
210
|
+
<xsl:apply-templates select="//d:description"/>
|
|
211
|
+
</xsl:template>
|
|
212
|
+
<xsl:template match="//d:description">
|
|
213
|
+
<xsl:apply-templates>
|
|
214
|
+
<xsl:with-param name="myspace">
|
|
215
|
+
<xsl:value-of select="-1*$myspacemultiplier"/>
|
|
216
|
+
</xsl:with-param>
|
|
217
|
+
</xsl:apply-templates>
|
|
218
|
+
</xsl:template>
|
|
219
|
+
<xsl:template match="*">
|
|
220
|
+
<xsl:param name="myspace"/>
|
|
221
|
+
<xsl:call-template name="print-space">
|
|
222
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
223
|
+
<xsl:with-param name="count">
|
|
224
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
225
|
+
</xsl:with-param>
|
|
226
|
+
</xsl:call-template>
|
|
227
|
+
<xsl:if test="name()='call' or name()='manipulate'">
|
|
228
|
+
<xsl:text>activity :</xsl:text>
|
|
229
|
+
<xsl:value-of select="@id"/>
|
|
230
|
+
</xsl:if>
|
|
231
|
+
<xsl:if test="name()='call'">
|
|
232
|
+
<xsl:text>, :call, :</xsl:text>
|
|
233
|
+
<xsl:value-of select="@endpoint"/>
|
|
234
|
+
<xsl:apply-templates select="d:parameters"/>
|
|
235
|
+
<xsl:apply-templates select="d:manipulate" mode="part-of-call">
|
|
236
|
+
<xsl:with-param name="myspace">
|
|
237
|
+
<xsl:value-of select="$myspace"/>
|
|
238
|
+
</xsl:with-param>
|
|
239
|
+
</xsl:apply-templates>
|
|
240
|
+
<xsl:call-template name="print-newline"/>
|
|
241
|
+
</xsl:if>
|
|
242
|
+
<xsl:if test="name()='manipulate'">
|
|
243
|
+
<xsl:text>, :manipulate</xsl:text>
|
|
244
|
+
<xsl:call-template name="print-content">
|
|
245
|
+
<xsl:with-param name="myspace">
|
|
246
|
+
<xsl:value-of select="$myspace"/>
|
|
247
|
+
</xsl:with-param>
|
|
248
|
+
</xsl:call-template>
|
|
249
|
+
<xsl:call-template name="print-newline"/>
|
|
250
|
+
</xsl:if>
|
|
251
|
+
<xsl:if test="name()='parallel'">
|
|
252
|
+
<xsl:text>parallel</xsl:text>
|
|
253
|
+
<xsl:if test="@wait">
|
|
254
|
+
<xsl:text> :wait => </xsl:text>
|
|
255
|
+
<xsl:value-of select="@wait"/>
|
|
256
|
+
</xsl:if>
|
|
257
|
+
<xsl:text> do</xsl:text>
|
|
258
|
+
<xsl:call-template name="print-newline"/>
|
|
259
|
+
<xsl:apply-templates>
|
|
260
|
+
<xsl:with-param name="myspace">
|
|
261
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
262
|
+
</xsl:with-param>
|
|
263
|
+
</xsl:apply-templates>
|
|
264
|
+
<xsl:call-template name="print-space">
|
|
265
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
266
|
+
<xsl:with-param name="count">
|
|
267
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
268
|
+
</xsl:with-param>
|
|
269
|
+
</xsl:call-template>
|
|
270
|
+
<xsl:text>end</xsl:text>
|
|
271
|
+
<xsl:call-template name="print-newline"/>
|
|
272
|
+
</xsl:if>
|
|
273
|
+
<xsl:if test="name()='loop'">
|
|
274
|
+
<xsl:text>loop </xsl:text>
|
|
275
|
+
<xsl:if test="@pre_test">
|
|
276
|
+
<xsl:text>pre_test{</xsl:text>
|
|
277
|
+
<xsl:value-of select="@pre_test"/>
|
|
278
|
+
<xsl:text>} </xsl:text>
|
|
279
|
+
</xsl:if>
|
|
280
|
+
<xsl:if test="@post_test">
|
|
281
|
+
<xsl:text>post_test{</xsl:text>
|
|
282
|
+
<xsl:value-of select="@post_test"/>
|
|
283
|
+
<xsl:text>} </xsl:text>
|
|
284
|
+
</xsl:if>
|
|
285
|
+
<xsl:text>do</xsl:text>
|
|
286
|
+
<xsl:call-template name="print-newline"/>
|
|
287
|
+
<xsl:apply-templates>
|
|
288
|
+
<xsl:with-param name="myspace">
|
|
289
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
290
|
+
</xsl:with-param>
|
|
291
|
+
</xsl:apply-templates>
|
|
292
|
+
<xsl:call-template name="print-space">
|
|
293
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
294
|
+
<xsl:with-param name="count">
|
|
295
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
296
|
+
</xsl:with-param>
|
|
297
|
+
</xsl:call-template>
|
|
298
|
+
<xsl:text>end</xsl:text>
|
|
299
|
+
<xsl:call-template name="print-newline"/>
|
|
300
|
+
</xsl:if>
|
|
301
|
+
<xsl:if test="name()='choose'">
|
|
302
|
+
<xsl:text>choose do</xsl:text>
|
|
303
|
+
<xsl:call-template name="print-newline"/>
|
|
304
|
+
<xsl:apply-templates>
|
|
305
|
+
<xsl:with-param name="myspace">
|
|
306
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
307
|
+
</xsl:with-param>
|
|
308
|
+
</xsl:apply-templates>
|
|
309
|
+
<xsl:call-template name="print-space">
|
|
310
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
311
|
+
<xsl:with-param name="count">
|
|
312
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
313
|
+
</xsl:with-param>
|
|
314
|
+
</xsl:call-template>
|
|
315
|
+
<xsl:text>end</xsl:text>
|
|
316
|
+
<xsl:call-template name="print-newline"/>
|
|
317
|
+
</xsl:if>
|
|
318
|
+
<xsl:if test="name()='group'">
|
|
319
|
+
<xsl:apply-templates>
|
|
320
|
+
<xsl:with-param name="myspace">
|
|
321
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
322
|
+
</xsl:with-param>
|
|
323
|
+
</xsl:apply-templates>
|
|
324
|
+
<xsl:call-template name="print-newline"/>
|
|
325
|
+
</xsl:if>
|
|
326
|
+
<xsl:if test="name()='critical'">
|
|
327
|
+
<xsl:text>critical :</xsl:text>
|
|
328
|
+
<xsl:value-of select="@sid"/>
|
|
329
|
+
<xsl:text> do</xsl:text>
|
|
330
|
+
<xsl:call-template name="print-newline"/>
|
|
331
|
+
<xsl:apply-templates>
|
|
332
|
+
<xsl:with-param name="myspace">
|
|
333
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
334
|
+
</xsl:with-param>
|
|
335
|
+
</xsl:apply-templates>
|
|
336
|
+
<xsl:call-template name="print-space">
|
|
337
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
338
|
+
<xsl:with-param name="count">
|
|
339
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
340
|
+
</xsl:with-param>
|
|
341
|
+
</xsl:call-template>
|
|
342
|
+
<xsl:text>end</xsl:text>
|
|
343
|
+
<xsl:call-template name="print-newline"/>
|
|
344
|
+
</xsl:if>
|
|
345
|
+
</xsl:template>
|
|
346
|
+
<xsl:template match="d:alternative">
|
|
347
|
+
<xsl:param name="myspace"/>
|
|
348
|
+
<xsl:call-template name="print-space">
|
|
349
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
350
|
+
<xsl:with-param name="count">
|
|
351
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
352
|
+
</xsl:with-param>
|
|
353
|
+
</xsl:call-template>
|
|
354
|
+
<xsl:text>alternative </xsl:text>
|
|
355
|
+
<xsl:value-of select="@condition"/>
|
|
356
|
+
<xsl:text> do</xsl:text>
|
|
357
|
+
<xsl:call-template name="print-newline"/>
|
|
358
|
+
<xsl:apply-templates>
|
|
359
|
+
<xsl:with-param name="myspace">
|
|
360
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
361
|
+
</xsl:with-param>
|
|
362
|
+
</xsl:apply-templates>
|
|
363
|
+
<xsl:call-template name="print-space">
|
|
364
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
365
|
+
<xsl:with-param name="count">
|
|
366
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
367
|
+
</xsl:with-param>
|
|
368
|
+
</xsl:call-template>
|
|
369
|
+
<xsl:text>end</xsl:text>
|
|
370
|
+
<xsl:call-template name="print-newline"/>
|
|
371
|
+
</xsl:template>
|
|
372
|
+
<xsl:template match="d:otherwise">
|
|
373
|
+
<xsl:param name="myspace"/>
|
|
374
|
+
<xsl:call-template name="print-space">
|
|
375
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
376
|
+
<xsl:with-param name="count">
|
|
377
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
378
|
+
</xsl:with-param>
|
|
379
|
+
</xsl:call-template>
|
|
380
|
+
<xsl:text>otherwise do</xsl:text>
|
|
381
|
+
<xsl:call-template name="print-newline"/>
|
|
382
|
+
<xsl:apply-templates>
|
|
383
|
+
<xsl:with-param name="myspace">
|
|
384
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
385
|
+
</xsl:with-param>
|
|
386
|
+
</xsl:apply-templates>
|
|
387
|
+
<xsl:call-template name="print-space">
|
|
388
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
389
|
+
<xsl:with-param name="count">
|
|
390
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
391
|
+
</xsl:with-param>
|
|
392
|
+
</xsl:call-template>
|
|
393
|
+
<xsl:text>end</xsl:text>
|
|
394
|
+
<xsl:call-template name="print-newline"/>
|
|
395
|
+
</xsl:template>
|
|
396
|
+
<xsl:template match="d:parallel_branch">
|
|
397
|
+
<xsl:param name="myspace"/>
|
|
398
|
+
<xsl:call-template name="print-space">
|
|
399
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
400
|
+
<xsl:with-param name="count">
|
|
401
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
402
|
+
</xsl:with-param>
|
|
403
|
+
</xsl:call-template>
|
|
404
|
+
<xsl:text>parallel_branch</xsl:text>
|
|
405
|
+
<xsl:if test="@pass">
|
|
406
|
+
<xsl:text> </xsl:text>
|
|
407
|
+
<xsl:value-of select="@pass"/>
|
|
408
|
+
</xsl:if>
|
|
409
|
+
<xsl:text> do</xsl:text>
|
|
410
|
+
<xsl:if test="@local">
|
|
411
|
+
<xsl:text> |</xsl:text>
|
|
412
|
+
<xsl:value-of select="@local"/>
|
|
413
|
+
<xsl:text>|</xsl:text>
|
|
414
|
+
</xsl:if>
|
|
415
|
+
<xsl:call-template name="print-newline"/>
|
|
416
|
+
<xsl:apply-templates>
|
|
417
|
+
<xsl:with-param name="myspace">
|
|
418
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
419
|
+
</xsl:with-param>
|
|
420
|
+
</xsl:apply-templates>
|
|
421
|
+
<xsl:call-template name="print-space">
|
|
422
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
423
|
+
<xsl:with-param name="count">
|
|
424
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
425
|
+
</xsl:with-param>
|
|
426
|
+
</xsl:call-template>
|
|
427
|
+
<xsl:text>end</xsl:text>
|
|
428
|
+
<xsl:call-template name="print-newline"/>
|
|
429
|
+
</xsl:template>
|
|
430
|
+
<xsl:template match="d:parameters">
|
|
431
|
+
<xsl:apply-templates select="d:*" mode="parameter"/>
|
|
432
|
+
</xsl:template>
|
|
433
|
+
<xsl:template match="d:*" mode="parameter">
|
|
434
|
+
<xsl:text>, :</xsl:text>
|
|
435
|
+
<xsl:value-of select="name()"/>
|
|
436
|
+
<xsl:text> => </xsl:text>
|
|
437
|
+
<xsl:choose>
|
|
438
|
+
<xsl:when test="count(*) > 0">
|
|
439
|
+
<xsl:text>[</xsl:text>
|
|
440
|
+
<xsl:apply-templates select="d:*" mode="sub-parameter"/>
|
|
441
|
+
<xsl:text>]</xsl:text>
|
|
442
|
+
</xsl:when>
|
|
443
|
+
<xsl:otherwise>
|
|
444
|
+
<xsl:choose>
|
|
445
|
+
<xsl:when test="@type = 'symbolic'">
|
|
446
|
+
<xsl:value-of select="text()"/>
|
|
447
|
+
</xsl:when>
|
|
448
|
+
<xsl:otherwise>
|
|
449
|
+
<xsl:text>"</xsl:text>
|
|
450
|
+
<xsl:value-of select="text()"/>
|
|
451
|
+
<xsl:text>"</xsl:text>
|
|
452
|
+
</xsl:otherwise>
|
|
453
|
+
</xsl:choose>
|
|
454
|
+
</xsl:otherwise>
|
|
455
|
+
</xsl:choose>
|
|
456
|
+
</xsl:template>
|
|
457
|
+
<xsl:template match="d:*" mode="sub-parameter">
|
|
458
|
+
<xsl:text> { :</xsl:text>
|
|
459
|
+
<xsl:value-of select="name()"/>
|
|
460
|
+
<xsl:text> => </xsl:text>
|
|
461
|
+
<xsl:value-of select="text()"/>
|
|
462
|
+
<xsl:text> }</xsl:text>
|
|
463
|
+
<xsl:choose>
|
|
464
|
+
<xsl:when test="generate-id(.) = generate-id(../*[last()])">
|
|
465
|
+
<xsl:text> </xsl:text>
|
|
466
|
+
</xsl:when>
|
|
467
|
+
<xsl:otherwise>
|
|
468
|
+
<xsl:text>,</xsl:text>
|
|
469
|
+
</xsl:otherwise>
|
|
470
|
+
</xsl:choose>
|
|
471
|
+
</xsl:template>
|
|
472
|
+
<xsl:template match="d:manipulate" mode="part-of-call">
|
|
473
|
+
<xsl:param name="myspace"/>
|
|
474
|
+
<xsl:call-template name="print-content">
|
|
475
|
+
<xsl:with-param name="myspace">
|
|
476
|
+
<xsl:value-of select="$myspace"/>
|
|
477
|
+
</xsl:with-param>
|
|
478
|
+
</xsl:call-template>
|
|
479
|
+
</xsl:template>
|
|
480
|
+
<xsl:template name="print-content">
|
|
481
|
+
<xsl:param name="myspace"/>
|
|
482
|
+
<xsl:if test="text()">
|
|
483
|
+
<xsl:text> do </xsl:text>
|
|
484
|
+
<xsl:if test="@output">
|
|
485
|
+
<xsl:text>|</xsl:text>
|
|
486
|
+
<xsl:value-of select="@output"/>
|
|
487
|
+
<xsl:text>|</xsl:text>
|
|
488
|
+
</xsl:if>
|
|
489
|
+
<xsl:call-template name="print-newline"/>
|
|
490
|
+
<xsl:value-of select="text()"/>
|
|
491
|
+
<xsl:call-template name="print-newline"/>
|
|
492
|
+
<xsl:call-template name="print-space">
|
|
493
|
+
<xsl:with-param name="i">1</xsl:with-param>
|
|
494
|
+
<xsl:with-param name="count">
|
|
495
|
+
<xsl:value-of select="$myspace+$myspacemultiplier"/>
|
|
496
|
+
</xsl:with-param>
|
|
497
|
+
</xsl:call-template>
|
|
498
|
+
<xsl:text>end</xsl:text>
|
|
499
|
+
</xsl:if>
|
|
500
|
+
</xsl:template>
|
|
501
|
+
<xsl:template name="print-space">
|
|
502
|
+
<xsl:param name="i"/>
|
|
503
|
+
<xsl:param name="count"/>
|
|
504
|
+
<xsl:if test="$i <= $count">
|
|
505
|
+
<xsl:text> </xsl:text>
|
|
506
|
+
<xsl:call-template name="print-space">
|
|
507
|
+
<xsl:with-param name="i">
|
|
508
|
+
<xsl:value-of select="$i + 1"/>
|
|
509
|
+
</xsl:with-param>
|
|
510
|
+
<xsl:with-param name="count">
|
|
511
|
+
<xsl:value-of select="$count"/>
|
|
512
|
+
</xsl:with-param>
|
|
513
|
+
</xsl:call-template>
|
|
514
|
+
</xsl:if>
|
|
515
|
+
</xsl:template>
|
|
516
|
+
<xsl:template name="print-newline">
|
|
517
|
+
<xsl:text>
|
|
518
|
+
</xsl:text>
|
|
519
|
+
</xsl:template>
|
|
520
|
+
</xsl:stylesheet>
|
|
521
|
+
</transformation>
|
|
522
|
+
</properties>
|