1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
7 Modifications Copyright (C) 2020-2021 Nordix Foundation.
8 Modifications Copyright (C) 2020,2022 Bell Canada. All rights reserved.
9 ================================================================================
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
21 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
23 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy PAP Stability" enabled="true">
24 <stringProp name="TestPlan.comments">Policy PAP Stability Tests</stringProp>
25 <boolProp name="TestPlan.functional_mode">false</boolProp>
26 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
27 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
28 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
29 <collectionProp name="Arguments.arguments">
30 <elementProp name="PAP_HOST" elementType="Argument">
31 <stringProp name="Argument.name">PAP_HOST</stringProp>
32 <stringProp name="Argument.value">localhost</stringProp>
33 <stringProp name="Argument.metadata">=</stringProp>
35 <elementProp name="PAP_PORT" elementType="Argument">
36 <stringProp name="Argument.name">PAP_PORT</stringProp>
37 <stringProp name="Argument.value">30003</stringProp>
38 <stringProp name="Argument.metadata">=</stringProp>
40 <elementProp name="API_HOST" elementType="Argument">
41 <stringProp name="Argument.name">API_HOST</stringProp>
42 <stringProp name="Argument.value">localhost</stringProp>
43 <stringProp name="Argument.metadata">=</stringProp>
45 <elementProp name="API_PORT" elementType="Argument">
46 <stringProp name="Argument.name">API_PORT</stringProp>
47 <stringProp name="Argument.value">30002</stringProp>
48 <stringProp name="Argument.metadata">=</stringProp>
52 <stringProp name="TestPlan.user_define_classpath"></stringProp>
55 <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
56 <collectionProp name="AuthManager.auth_list">
57 <elementProp name="" elementType="Authorization">
58 <stringProp name="Authorization.url">https://${PAP_HOST}:${PAP_PORT}/policy/pap/v1</stringProp>
59 <stringProp name="Authorization.username">policyadmin</stringProp>
60 <stringProp name="Authorization.password">zb!XztG34</stringProp>
61 <stringProp name="Authorization.domain"></stringProp>
62 <stringProp name="Authorization.realm"></stringProp>
64 <elementProp name="" elementType="Authorization">
65 <stringProp name="Authorization.url">https://${API_HOST}:${API_PORT}/policy/api/v1</stringProp>
66 <stringProp name="Authorization.username">policyadmin</stringProp>
67 <stringProp name="Authorization.password">zb!XztG34</stringProp>
68 <stringProp name="Authorization.domain"></stringProp>
69 <stringProp name="Authorization.realm"></stringProp>
71 <elementProp name="" elementType="Authorization">
72 <stringProp name="Authorization.url">https://${PAP_HOST}:${PAP_PORT}/metrics</stringProp>
73 <stringProp name="Authorization.username">policyadmin</stringProp>
74 <stringProp name="Authorization.password">zb!XztG34</stringProp>
75 <stringProp name="Authorization.domain"></stringProp>
76 <stringProp name="Authorization.realm"></stringProp>
79 <boolProp name="AuthManager.clearEachIteration">true</boolProp>
80 <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
83 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
84 <collectionProp name="HeaderManager.headers">
85 <elementProp name="" elementType="Header">
86 <stringProp name="Header.name">Content-Type</stringProp>
87 <stringProp name="Header.value">application/json</stringProp>
92 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
93 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
94 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
95 <boolProp name="LoopController.continue_forever">false</boolProp>
96 <stringProp name="LoopController.loops">1</stringProp>
98 <stringProp name="ThreadGroup.num_threads">1</stringProp>
99 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
100 <boolProp name="ThreadGroup.scheduler">false</boolProp>
101 <stringProp name="ThreadGroup.duration">260000</stringProp>
102 <stringProp name="ThreadGroup.delay"></stringProp>
103 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
106 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy" enabled="true">
107 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
108 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
109 <collectionProp name="Arguments.arguments">
110 <elementProp name="" elementType="HTTPArgument">
111 <boolProp name="HTTPArgument.always_encode">false</boolProp>
112 <stringProp name="Argument.value">{
113 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
114 "topology_template": {
115 "policies": [
117 "operational.apex.stabilityTestDefaultDomain": {
118 "type": "onap.policies.controlloop.operational.common.Apex",
119 "type_version": "1.0.0",
120 "version": "1.0.0",
121 "metadata": {
122 "policy-id": "operational.apex.defaultDomain",
123 "policy-version": 1
125 "properties": {
126 "engineServiceParameters": {
127 "name": "MyApexEngine",
128 "version": "0.0.1",
129 "id": 45,
130 "instanceCount": 4,
131 "deploymentPort": 12561,
132 "policy_type_impl": {
133 "apexPolicyModel": {
134 "key": {
135 "name": "SamplePolicyModelJAVASCRIPT",
136 "version": "0.0.1"
138 "keyInformation": {
139 "key": {
140 "name": "KeyInformation",
141 "version": "0.0.1"
143 "keyInfoMap": {
144 "entry": [
146 "key": {
147 "name": "Context",
148 "version": "0.0.1"
150 "value": {
151 "key": {
152 "name": "Context",
153 "version": "0.0.1"
155 "UUID": "ca36bfd8-6042-3633-8c85-89c66507c3bf",
156 "description": "Generated description for concept referred to by key \"Context:0.0.1\""
160 "key": {
161 "name": "Event0000",
162 "version": "0.0.1"
164 "value": {
165 "key": {
166 "name": "Event0000",
167 "version": "0.0.1"
169 "UUID": "465a81cc-885f-3a4d-bc4e-1508da92b236",
170 "description": "Generated description for concept referred to by key \"Event0000:0.0.1\""
174 "key": {
175 "name": "Event0001",
176 "version": "0.0.1"
178 "value": {
179 "key": {
180 "name": "Event0001",
181 "version": "0.0.1"
183 "UUID": "36b2d570-fff7-3a4b-bab2-6bf492f5129a",
184 "description": "Generated description for concept referred to by key \"Event0001:0.0.1\""
188 "key": {
189 "name": "Event0002",
190 "version": "0.0.1"
192 "value": {
193 "key": {
194 "name": "Event0002",
195 "version": "0.0.1"
197 "UUID": "ff6160a7-fb5e-379c-a6d2-2cd28053eacf",
198 "description": "Generated description for concept referred to by key \"Event0002:0.0.1\""
202 "key": {
203 "name": "Event0003",
204 "version": "0.0.1"
206 "value": {
207 "key": {
208 "name": "Event0003",
209 "version": "0.0.1"
211 "UUID": "5899e216-2abf-3781-abc4-2c257b92721e",
212 "description": "Generated description for concept referred to by key \"Event0003:0.0.1\""
216 "key": {
217 "name": "Event0004",
218 "version": "0.0.1"
220 "value": {
221 "key": {
222 "name": "Event0004",
223 "version": "0.0.1"
225 "UUID": "7c2692a7-4587-3d09-abf9-d96b339a316f",
226 "description": "Generated description for concept referred to by key \"Event0004:0.0.1\""
230 "key": {
231 "name": "Event0100",
232 "version": "0.0.1"
234 "value": {
235 "key": {
236 "name": "Event0100",
237 "version": "0.0.1"
239 "UUID": "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7",
240 "description": "Generated description for concept referred to by key \"Event0100:0.0.1\""
244 "key": {
245 "name": "Event0101",
246 "version": "0.0.1"
248 "value": {
249 "key": {
250 "name": "Event0101",
251 "version": "0.0.1"
253 "UUID": "edbfa868-2ab2-30fd-8078-4c7f67ca6122",
254 "description": "Generated description for concept referred to by key \"Event0101:0.0.1\""
258 "key": {
259 "name": "Event0102",
260 "version": "0.0.1"
262 "value": {
263 "key": {
264 "name": "Event0102",
265 "version": "0.0.1"
267 "UUID": "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4",
268 "description": "Generated description for concept referred to by key \"Event0102:0.0.1\""
272 "key": {
273 "name": "Event0103",
274 "version": "0.0.1"
276 "value": {
277 "key": {
278 "name": "Event0103",
279 "version": "0.0.1"
281 "UUID": "c2550912-10d9-3000-8826-377288cd6cb1",
282 "description": "Generated description for concept referred to by key \"Event0103:0.0.1\""
286 "key": {
287 "name": "Event0104",
288 "version": "0.0.1"
290 "value": {
291 "key": {
292 "name": "Event0104",
293 "version": "0.0.1"
295 "UUID": "f6d75b71-c8a7-3337-a121-88d68c389f5a",
296 "description": "Generated description for concept referred to by key \"Event0104:0.0.1\""
300 "key": {
301 "name": "Events",
302 "version": "0.0.1"
304 "value": {
305 "key": {
306 "name": "Events",
307 "version": "0.0.1"
309 "UUID": "0215644c-4531-375c-8335-d558b4de8c03",
310 "description": "Generated description for concept referred to by key \"Events:0.0.1\""
314 "key": {
315 "name": "ExternalContextAlbum",
316 "version": "0.0.1"
318 "value": {
319 "key": {
320 "name": "ExternalContextAlbum",
321 "version": "0.0.1"
323 "UUID": "976a79e7-5c80-3c03-9503-da3f41fec395",
324 "description": "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\""
328 "key": {
329 "name": "GlobalContextAlbum",
330 "version": "0.0.1"
332 "value": {
333 "key": {
334 "name": "GlobalContextAlbum",
335 "version": "0.0.1"
337 "UUID": "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7",
338 "description": "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\""
342 "key": {
343 "name": "KeyInformation",
344 "version": "0.0.1"
346 "value": {
347 "key": {
348 "name": "KeyInformation",
349 "version": "0.0.1"
351 "UUID": "1ff2f905-685c-3caf-95bc-0bbc90345888",
352 "description": "Generated description for concept referred to by key \"KeyInformation:0.0.1\""
356 "key": {
357 "name": "Policies",
358 "version": "0.0.1"
360 "value": {
361 "key": {
362 "name": "Policies",
363 "version": "0.0.1"
365 "UUID": "f54c3b2b-be76-31c4-adfc-87c494c06808",
366 "description": "Generated description for concept referred to by key \"Policies:0.0.1\""
370 "key": {
371 "name": "Policy0",
372 "version": "0.0.1"
374 "value": {
375 "key": {
376 "name": "Policy0",
377 "version": "0.0.1"
379 "UUID": "3410e939-30ca-32c4-a2d8-c30b6fee6eec",
380 "description": "Generated description for concept referred to by key \"Policy0:0.0.1\""
384 "key": {
385 "name": "Policy0ContextAlbum",
386 "version": "0.0.1"
388 "value": {
389 "key": {
390 "name": "Policy0ContextAlbum",
391 "version": "0.0.1"
393 "UUID": "e27564c4-3cbf-3db2-9bf3-83ae80a2f907",
394 "description": "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\""
398 "key": {
399 "name": "Policy1",
400 "version": "0.0.1"
402 "value": {
403 "key": {
404 "name": "Policy1",
405 "version": "0.0.1"
407 "UUID": "d0b2b585-f344-33b8-af9e-250e7f4cfbce",
408 "description": "Generated description for concept referred to by key \"Policy1:0.0.1\""
412 "key": {
413 "name": "Policy1ContextAlbum",
414 "version": "0.0.1"
416 "value": {
417 "key": {
418 "name": "Policy1ContextAlbum",
419 "version": "0.0.1"
421 "UUID": "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0",
422 "description": "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\""
426 "key": {
427 "name": "SamplePolicyModelJAVASCRIPT",
428 "version": "0.0.1"
430 "value": {
431 "key": {
432 "name": "SamplePolicyModelJAVASCRIPT",
433 "version": "0.0.1"
435 "UUID": "bc8ee312-81ce-3c4a-92d5-4a73b8077148",
436 "description": "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\""
440 "key": {
441 "name": "Task_Act0",
442 "version": "0.0.1"
444 "value": {
445 "key": {
446 "name": "Task_Act0",
447 "version": "0.0.1"
449 "UUID": "0589ff20-adcc-3ce5-95fe-8d7978ed54ed",
450 "description": "Generated description for concept referred to by key \"Task_Act0:0.0.1\""
454 "key": {
455 "name": "Task_Act1",
456 "version": "0.0.1"
458 "value": {
459 "key": {
460 "name": "Task_Act1",
461 "version": "0.0.1"
463 "UUID": "095b126d-ca8b-32c9-ad52-d744e817a79c",
464 "description": "Generated description for concept referred to by key \"Task_Act1:0.0.1\""
468 "key": {
469 "name": "Task_Act2",
470 "version": "0.0.1"
472 "value": {
473 "key": {
474 "name": "Task_Act2",
475 "version": "0.0.1"
477 "UUID": "3d786b4c-d9ee-3367-ab71-c67271a4ea2f",
478 "description": "Generated description for concept referred to by key \"Task_Act2:0.0.1\""
482 "key": {
483 "name": "Task_Act3",
484 "version": "0.0.1"
486 "value": {
487 "key": {
488 "name": "Task_Act3",
489 "version": "0.0.1"
491 "UUID": "9231753e-20c5-3436-982f-9100340cc570",
492 "description": "Generated description for concept referred to by key \"Task_Act3:0.0.1\""
496 "key": {
497 "name": "Task_Decide0",
498 "version": "0.0.1"
500 "value": {
501 "key": {
502 "name": "Task_Decide0",
503 "version": "0.0.1"
505 "UUID": "502383d3-483f-3a56-a426-2f0406674c8d",
506 "description": "Generated description for concept referred to by key \"Task_Decide0:0.0.1\""
510 "key": {
511 "name": "Task_Decide1",
512 "version": "0.0.1"
514 "value": {
515 "key": {
516 "name": "Task_Decide1",
517 "version": "0.0.1"
519 "UUID": "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf",
520 "description": "Generated description for concept referred to by key \"Task_Decide1:0.0.1\""
524 "key": {
525 "name": "Task_Decide2",
526 "version": "0.0.1"
528 "value": {
529 "key": {
530 "name": "Task_Decide2",
531 "version": "0.0.1"
533 "UUID": "ad3a89f5-e369-3c66-b22c-669f7b3653b8",
534 "description": "Generated description for concept referred to by key \"Task_Decide2:0.0.1\""
538 "key": {
539 "name": "Task_Decide3",
540 "version": "0.0.1"
542 "value": {
543 "key": {
544 "name": "Task_Decide3",
545 "version": "0.0.1"
547 "UUID": "56815939-1164-3867-9ed1-0a27ff8aafb3",
548 "description": "Generated description for concept referred to by key \"Task_Decide3:0.0.1\""
552 "key": {
553 "name": "Task_Establish0",
554 "version": "0.0.1"
556 "value": {
557 "key": {
558 "name": "Task_Establish0",
559 "version": "0.0.1"
561 "UUID": "0db0c566-ecd7-3e27-9865-4b82c893abdb",
562 "description": "Generated description for concept referred to by key \"Task_Establish0:0.0.1\""
566 "key": {
567 "name": "Task_Establish1",
568 "version": "0.0.1"
570 "value": {
571 "key": {
572 "name": "Task_Establish1",
573 "version": "0.0.1"
575 "UUID": "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0",
576 "description": "Generated description for concept referred to by key \"Task_Establish1:0.0.1\""
580 "key": {
581 "name": "Task_Establish2",
582 "version": "0.0.1"
584 "value": {
585 "key": {
586 "name": "Task_Establish2",
587 "version": "0.0.1"
589 "UUID": "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a",
590 "description": "Generated description for concept referred to by key \"Task_Establish2:0.0.1\""
594 "key": {
595 "name": "Task_Establish3",
596 "version": "0.0.1"
598 "value": {
599 "key": {
600 "name": "Task_Establish3",
601 "version": "0.0.1"
603 "UUID": "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66",
604 "description": "Generated description for concept referred to by key \"Task_Establish3:0.0.1\""
608 "key": {
609 "name": "Task_Match0",
610 "version": "0.0.1"
612 "value": {
613 "key": {
614 "name": "Task_Match0",
615 "version": "0.0.1"
617 "UUID": "051bcfd5-cf73-3c89-8ee7-ea6e005ec059",
618 "description": "Generated description for concept referred to by key \"Task_Match0:0.0.1\""
622 "key": {
623 "name": "Task_Match1",
624 "version": "0.0.1"
626 "value": {
627 "key": {
628 "name": "Task_Match1",
629 "version": "0.0.1"
631 "UUID": "3754fe19-98f2-34a1-9f45-db31052208d8",
632 "description": "Generated description for concept referred to by key \"Task_Match1:0.0.1\""
636 "key": {
637 "name": "Task_Match2",
638 "version": "0.0.1"
640 "value": {
641 "key": {
642 "name": "Task_Match2",
643 "version": "0.0.1"
645 "UUID": "8c200709-a180-3c8b-916f-275ff49ce194",
646 "description": "Generated description for concept referred to by key \"Task_Match2:0.0.1\""
650 "key": {
651 "name": "Task_Match3",
652 "version": "0.0.1"
654 "value": {
655 "key": {
656 "name": "Task_Match3",
657 "version": "0.0.1"
659 "UUID": "a1a879c6-4510-33b0-bbd0-ad6256189a37",
660 "description": "Generated description for concept referred to by key \"Task_Match3:0.0.1\""
664 "key": {
665 "name": "Tasks",
666 "version": "0.0.1"
668 "value": {
669 "key": {
670 "name": "Tasks",
671 "version": "0.0.1"
673 "UUID": "a7fab96b-ce1c-37ce-bbb2-556b6db524a5",
674 "description": "Generated description for concept referred to by key \"Tasks:0.0.1\""
678 "key": {
679 "name": "TestCase",
680 "version": "0.0.1"
682 "value": {
683 "key": {
684 "name": "TestCase",
685 "version": "0.0.1"
687 "UUID": "0a652886-c88d-3f8c-8994-ae9161e7c963",
688 "description": "Generated description for concept referred to by key \"TestCase:0.0.1\""
692 "key": {
693 "name": "TestContextItem000",
694 "version": "0.0.1"
696 "value": {
697 "key": {
698 "name": "TestContextItem000",
699 "version": "0.0.1"
701 "UUID": "8efba9fa-371e-33df-a7d6-88b0284e7fd0",
702 "description": "Generated description for concept referred to by key \"TestContextItem000:0.0.1\""
706 "key": {
707 "name": "TestContextItem001",
708 "version": "0.0.1"
710 "value": {
711 "key": {
712 "name": "TestContextItem001",
713 "version": "0.0.1"
715 "UUID": "3740077c-a2b3-356b-81dc-5ded2118a951",
716 "description": "Generated description for concept referred to by key \"TestContextItem001:0.0.1\""
720 "key": {
721 "name": "TestContextItem002",
722 "version": "0.0.1"
724 "value": {
725 "key": {
726 "name": "TestContextItem002",
727 "version": "0.0.1"
729 "UUID": "b5c7df95-9af5-322f-9ea8-eb440a2bf926",
730 "description": "Generated description for concept referred to by key \"TestContextItem002:0.0.1\""
734 "key": {
735 "name": "TestContextItem003",
736 "version": "0.0.1"
738 "value": {
739 "key": {
740 "name": "TestContextItem003",
741 "version": "0.0.1"
743 "UUID": "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b",
744 "description": "Generated description for concept referred to by key \"TestContextItem003:0.0.1\""
748 "key": {
749 "name": "TestContextItem004",
750 "version": "0.0.1"
752 "value": {
753 "key": {
754 "name": "TestContextItem004",
755 "version": "0.0.1"
757 "UUID": "093cda11-eaeb-3a46-a5b6-d5e30c00935b",
758 "description": "Generated description for concept referred to by key \"TestContextItem004:0.0.1\""
762 "key": {
763 "name": "TestContextItem005",
764 "version": "0.0.1"
766 "value": {
767 "key": {
768 "name": "TestContextItem005",
769 "version": "0.0.1"
771 "UUID": "569a758d-ba40-37c0-aebb-7ad138df25ac",
772 "description": "Generated description for concept referred to by key \"TestContextItem005:0.0.1\""
776 "key": {
777 "name": "TestContextItem006",
778 "version": "0.0.1"
780 "value": {
781 "key": {
782 "name": "TestContextItem006",
783 "version": "0.0.1"
785 "UUID": "252818d9-b61f-3962-a905-8865fb00fb04",
786 "description": "Generated description for concept referred to by key \"TestContextItem006:0.0.1\""
790 "key": {
791 "name": "TestContextItem007",
792 "version": "0.0.1"
794 "value": {
795 "key": {
796 "name": "TestContextItem007",
797 "version": "0.0.1"
799 "UUID": "fe1a5f7c-c083-377b-a797-752b01fc6c73",
800 "description": "Generated description for concept referred to by key \"TestContextItem007:0.0.1\""
804 "key": {
805 "name": "TestContextItem008",
806 "version": "0.0.1"
808 "value": {
809 "key": {
810 "name": "TestContextItem008",
811 "version": "0.0.1"
813 "UUID": "aa87d007-d07e-3f67-8c6d-0ebc3d85479d",
814 "description": "Generated description for concept referred to by key \"TestContextItem008:0.0.1\""
818 "key": {
819 "name": "TestContextItem009",
820 "version": "0.0.1"
822 "value": {
823 "key": {
824 "name": "TestContextItem009",
825 "version": "0.0.1"
827 "UUID": "126e7a3a-11b6-3f88-9397-c21d8819f859",
828 "description": "Generated description for concept referred to by key \"TestContextItem009:0.0.1\""
832 "key": {
833 "name": "TestContextItem00A",
834 "version": "0.0.1"
836 "value": {
837 "key": {
838 "name": "TestContextItem00A",
839 "version": "0.0.1"
841 "UUID": "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc",
842 "description": "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\""
846 "key": {
847 "name": "TestContextItem00B",
848 "version": "0.0.1"
850 "value": {
851 "key": {
852 "name": "TestContextItem00B",
853 "version": "0.0.1"
855 "UUID": "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6",
856 "description": "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\""
860 "key": {
861 "name": "TestContextItem00C",
862 "version": "0.0.1"
864 "value": {
865 "key": {
866 "name": "TestContextItem00C",
867 "version": "0.0.1"
869 "UUID": "32a2f355-77f3-3b25-ace6-7a9c5763a5ad",
870 "description": "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\""
874 "key": {
875 "name": "TestDatatypes",
876 "version": "0.0.1"
878 "value": {
879 "key": {
880 "name": "TestDatatypes",
881 "version": "0.0.1"
883 "UUID": "3f95472c-973e-30e2-95f1-bf00cbef909a",
884 "description": "Generated description for concept referred to by key \"TestDatatypes:0.0.1\""
888 "key": {
889 "name": "TestExternalContextItem",
890 "version": "0.0.1"
892 "value": {
893 "key": {
894 "name": "TestExternalContextItem",
895 "version": "0.0.1"
897 "UUID": "610dbbd4-9149-3b3c-9af4-819056f0e169",
898 "description": "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\""
902 "key": {
903 "name": "TestGlobalContextItem",
904 "version": "0.0.1"
906 "value": {
907 "key": {
908 "name": "TestGlobalContextItem",
909 "version": "0.0.1"
911 "UUID": "07fa8f68-55f1-3fd0-81c1-749a379753a7",
912 "description": "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\""
916 "key": {
917 "name": "TestPolicyContextItem",
918 "version": "0.0.1"
920 "value": {
921 "key": {
922 "name": "TestPolicyContextItem",
923 "version": "0.0.1"
925 "UUID": "d9c93cd1-539e-35c5-aaec-bb711ceb1251",
926 "description": "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\""
930 "key": {
931 "name": "TestSlogan",
932 "version": "0.0.1"
934 "value": {
935 "key": {
936 "name": "TestSlogan",
937 "version": "0.0.1"
939 "UUID": "683fe492-7eae-3ac7-9924-bb7850208d05",
940 "description": "Generated description for concept referred to by key \"TestSlogan:0.0.1\""
944 "key": {
945 "name": "TestTemperature",
946 "version": "0.0.1"
948 "value": {
949 "key": {
950 "name": "TestTemperature",
951 "version": "0.0.1"
953 "UUID": "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0",
954 "description": "Generated description for concept referred to by key \"TestTemperature:0.0.1\""
958 "key": {
959 "name": "TestTimestamp",
960 "version": "0.0.1"
962 "value": {
963 "key": {
964 "name": "TestTimestamp",
965 "version": "0.0.1"
967 "UUID": "97b73937-c344-33c0-924c-4d26b6449564",
968 "description": "Generated description for concept referred to by key \"TestTimestamp:0.0.1\""
974 "policies": {
975 "key": {
976 "name": "Policies",
977 "version": "0.0.1"
979 "policyMap": {
980 "entry": [
982 "key": {
983 "name": "Policy0",
984 "version": "0.0.1"
986 "value": {
987 "policyKey": {
988 "name": "Policy0",
989 "version": "0.0.1"
991 "template": "MEDA",
992 "state": {
993 "entry": [
995 "key": "Act",
996 "value": {
997 "stateKey": {
998 "parentKeyName": "Policy0",
999 "parentKeyVersion": "0.0.1",
1000 "parentLocalName": "NULL",
1001 "localName": "Act"
1003 "trigger": {
1004 "name": "Event0003",
1005 "version": "0.0.1"
1007 "stateOutputs": {
1008 "entry": [
1010 "key": "Act_NULL",
1011 "value": {
1012 "key": {
1013 "parentKeyName": "Policy0",
1014 "parentKeyVersion": "0.0.1",
1015 "parentLocalName": "Act",
1016 "localName": "Act_NULL"
1018 "outgoingEvent": {
1019 "name": "Event0004",
1020 "version": "0.0.1"
1022 "nextState": {
1023 "parentKeyName": "NULL",
1024 "parentKeyVersion": "0.0.0",
1025 "parentLocalName": "NULL",
1026 "localName": "NULL"
1032 "contextAlbumReference": [
1034 "name": "GlobalContextAlbum",
1035 "version": "0.0.1"
1038 "taskSelectionLogic": {
1039 "key": "TaskSelectionLigic",
1040 "logicFlavour": "JAVASCRIPT",
1041 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
1043 "stateFinalizerLogicMap": {
1044 "entry": []
1046 "defaultTask": {
1047 "name": "Task_Act1",
1048 "version": "0.0.1"
1050 "taskReferences": {
1051 "entry": [
1053 "key": {
1054 "name": "Task_Act0",
1055 "version": "0.0.1"
1057 "value": {
1058 "key": {
1059 "parentKeyName": "Policy0",
1060 "parentKeyVersion": "0.0.1",
1061 "parentLocalName": "Act",
1062 "localName": "Task_Act0_DIRECT_Act_NULL"
1064 "outputType": "DIRECT",
1065 "output": {
1066 "parentKeyName": "Policy0",
1067 "parentKeyVersion": "0.0.1",
1068 "parentLocalName": "Act",
1069 "localName": "Act_NULL"
1074 "key": {
1075 "name": "Task_Act1",
1076 "version": "0.0.1"
1078 "value": {
1079 "key": {
1080 "parentKeyName": "Policy0",
1081 "parentKeyVersion": "0.0.1",
1082 "parentLocalName": "Act",
1083 "localName": "Task_Act1_DIRECT_Act_NULL"
1085 "outputType": "DIRECT",
1086 "output": {
1087 "parentKeyName": "Policy0",
1088 "parentKeyVersion": "0.0.1",
1089 "parentLocalName": "Act",
1090 "localName": "Act_NULL"
1095 "key": {
1096 "name": "Task_Act2",
1097 "version": "0.0.1"
1099 "value": {
1100 "key": {
1101 "parentKeyName": "Policy0",
1102 "parentKeyVersion": "0.0.1",
1103 "parentLocalName": "Act",
1104 "localName": "Task_Act2_DIRECT_Act_NULL"
1106 "outputType": "DIRECT",
1107 "output": {
1108 "parentKeyName": "Policy0",
1109 "parentKeyVersion": "0.0.1",
1110 "parentLocalName": "Act",
1111 "localName": "Act_NULL"
1116 "key": {
1117 "name": "Task_Act3",
1118 "version": "0.0.1"
1120 "value": {
1121 "key": {
1122 "parentKeyName": "Policy0",
1123 "parentKeyVersion": "0.0.1",
1124 "parentLocalName": "Act",
1125 "localName": "Task_Act3_DIRECT_Act_NULL"
1127 "outputType": "DIRECT",
1128 "output": {
1129 "parentKeyName": "Policy0",
1130 "parentKeyVersion": "0.0.1",
1131 "parentLocalName": "Act",
1132 "localName": "Act_NULL"
1141 "key": "Decide",
1142 "value": {
1143 "stateKey": {
1144 "parentKeyName": "Policy0",
1145 "parentKeyVersion": "0.0.1",
1146 "parentLocalName": "NULL",
1147 "localName": "Decide"
1149 "trigger": {
1150 "name": "Event0002",
1151 "version": "0.0.1"
1153 "stateOutputs": {
1154 "entry": [
1156 "key": "Decide_Act",
1157 "value": {
1158 "key": {
1159 "parentKeyName": "Policy0",
1160 "parentKeyVersion": "0.0.1",
1161 "parentLocalName": "Decide",
1162 "localName": "Decide_Act"
1164 "outgoingEvent": {
1165 "name": "Event0003",
1166 "version": "0.0.1"
1168 "nextState": {
1169 "parentKeyName": "Policy0",
1170 "parentKeyVersion": "0.0.1",
1171 "parentLocalName": "NULL",
1172 "localName": "Act"
1178 "contextAlbumReference": [
1180 "name": "ExternalContextAlbum",
1181 "version": "0.0.1"
1184 "name": "GlobalContextAlbum",
1185 "version": "0.0.1"
1188 "name": "Policy0ContextAlbum",
1189 "version": "0.0.1"
1192 "taskSelectionLogic": {
1193 "key": "TaskSelectionLigic",
1194 "logicFlavour": "JAVASCRIPT",
1195 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
1197 "stateFinalizerLogicMap": {
1198 "entry": []
1200 "defaultTask": {
1201 "name": "Task_Decide3",
1202 "version": "0.0.1"
1204 "taskReferences": {
1205 "entry": [
1207 "key": {
1208 "name": "Task_Decide0",
1209 "version": "0.0.1"
1211 "value": {
1212 "key": {
1213 "parentKeyName": "Policy0",
1214 "parentKeyVersion": "0.0.1",
1215 "parentLocalName": "Decide",
1216 "localName": "Task_Decide0_DIRECT_Decide_Act"
1218 "outputType": "DIRECT",
1219 "output": {
1220 "parentKeyName": "Policy0",
1221 "parentKeyVersion": "0.0.1",
1222 "parentLocalName": "Decide",
1223 "localName": "Decide_Act"
1228 "key": {
1229 "name": "Task_Decide1",
1230 "version": "0.0.1"
1232 "value": {
1233 "key": {
1234 "parentKeyName": "Policy0",
1235 "parentKeyVersion": "0.0.1",
1236 "parentLocalName": "Decide",
1237 "localName": "Task_Decide1_DIRECT_Decide_Act"
1239 "outputType": "DIRECT",
1240 "output": {
1241 "parentKeyName": "Policy0",
1242 "parentKeyVersion": "0.0.1",
1243 "parentLocalName": "Decide",
1244 "localName": "Decide_Act"
1249 "key": {
1250 "name": "Task_Decide2",
1251 "version": "0.0.1"
1253 "value": {
1254 "key": {
1255 "parentKeyName": "Policy0",
1256 "parentKeyVersion": "0.0.1",
1257 "parentLocalName": "Decide",
1258 "localName": "Task_Decide2_DIRECT_Decide_Act"
1260 "outputType": "DIRECT",
1261 "output": {
1262 "parentKeyName": "Policy0",
1263 "parentKeyVersion": "0.0.1",
1264 "parentLocalName": "Decide",
1265 "localName": "Decide_Act"
1270 "key": {
1271 "name": "Task_Decide3",
1272 "version": "0.0.1"
1274 "value": {
1275 "key": {
1276 "parentKeyName": "Policy0",
1277 "parentKeyVersion": "0.0.1",
1278 "parentLocalName": "Decide",
1279 "localName": "Task_Decide3_DIRECT_Decide_Act"
1281 "outputType": "DIRECT",
1282 "output": {
1283 "parentKeyName": "Policy0",
1284 "parentKeyVersion": "0.0.1",
1285 "parentLocalName": "Decide",
1286 "localName": "Decide_Act"
1295 "key": "Establish",
1296 "value": {
1297 "stateKey": {
1298 "parentKeyName": "Policy0",
1299 "parentKeyVersion": "0.0.1",
1300 "parentLocalName": "NULL",
1301 "localName": "Establish"
1303 "trigger": {
1304 "name": "Event0001",
1305 "version": "0.0.1"
1307 "stateOutputs": {
1308 "entry": [
1310 "key": "Establish_Decide",
1311 "value": {
1312 "key": {
1313 "parentKeyName": "Policy0",
1314 "parentKeyVersion": "0.0.1",
1315 "parentLocalName": "Establish",
1316 "localName": "Establish_Decide"
1318 "outgoingEvent": {
1319 "name": "Event0002",
1320 "version": "0.0.1"
1322 "nextState": {
1323 "parentKeyName": "Policy0",
1324 "parentKeyVersion": "0.0.1",
1325 "parentLocalName": "NULL",
1326 "localName": "Decide"
1332 "contextAlbumReference": [
1334 "name": "ExternalContextAlbum",
1335 "version": "0.0.1"
1338 "name": "GlobalContextAlbum",
1339 "version": "0.0.1"
1342 "name": "Policy1ContextAlbum",
1343 "version": "0.0.1"
1346 "taskSelectionLogic": {
1347 "key": "TaskSelectionLigic",
1348 "logicFlavour": "JAVASCRIPT",
1349 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
1351 "stateFinalizerLogicMap": {
1352 "entry": []
1354 "defaultTask": {
1355 "name": "Task_Establish2",
1356 "version": "0.0.1"
1358 "taskReferences": {
1359 "entry": [
1361 "key": {
1362 "name": "Task_Establish0",
1363 "version": "0.0.1"
1365 "value": {
1366 "key": {
1367 "parentKeyName": "Policy0",
1368 "parentKeyVersion": "0.0.1",
1369 "parentLocalName": "Establish",
1370 "localName": "Task_Establish0_DIRECT_Establish_Decide"
1372 "outputType": "DIRECT",
1373 "output": {
1374 "parentKeyName": "Policy0",
1375 "parentKeyVersion": "0.0.1",
1376 "parentLocalName": "Establish",
1377 "localName": "Establish_Decide"
1382 "key": {
1383 "name": "Task_Establish1",
1384 "version": "0.0.1"
1386 "value": {
1387 "key": {
1388 "parentKeyName": "Policy0",
1389 "parentKeyVersion": "0.0.1",
1390 "parentLocalName": "Establish",
1391 "localName": "Task_Establish1_DIRECT_Establish_Decide"
1393 "outputType": "DIRECT",
1394 "output": {
1395 "parentKeyName": "Policy0",
1396 "parentKeyVersion": "0.0.1",
1397 "parentLocalName": "Establish",
1398 "localName": "Establish_Decide"
1403 "key": {
1404 "name": "Task_Establish2",
1405 "version": "0.0.1"
1407 "value": {
1408 "key": {
1409 "parentKeyName": "Policy0",
1410 "parentKeyVersion": "0.0.1",
1411 "parentLocalName": "Establish",
1412 "localName": "Task_Establish2_DIRECT_Establish_Decide"
1414 "outputType": "DIRECT",
1415 "output": {
1416 "parentKeyName": "Policy0",
1417 "parentKeyVersion": "0.0.1",
1418 "parentLocalName": "Establish",
1419 "localName": "Establish_Decide"
1424 "key": {
1425 "name": "Task_Establish3",
1426 "version": "0.0.1"
1428 "value": {
1429 "key": {
1430 "parentKeyName": "Policy0",
1431 "parentKeyVersion": "0.0.1",
1432 "parentLocalName": "Establish",
1433 "localName": "Task_Establish3_DIRECT_Establish_Decide"
1435 "outputType": "DIRECT",
1436 "output": {
1437 "parentKeyName": "Policy0",
1438 "parentKeyVersion": "0.0.1",
1439 "parentLocalName": "Establish",
1440 "localName": "Establish_Decide"
1449 "key": "Match",
1450 "value": {
1451 "stateKey": {
1452 "parentKeyName": "Policy0",
1453 "parentKeyVersion": "0.0.1",
1454 "parentLocalName": "NULL",
1455 "localName": "Match"
1457 "trigger": {
1458 "name": "Event0000",
1459 "version": "0.0.1"
1461 "stateOutputs": {
1462 "entry": [
1464 "key": "Match_Establish",
1465 "value": {
1466 "key": {
1467 "parentKeyName": "Policy0",
1468 "parentKeyVersion": "0.0.1",
1469 "parentLocalName": "Match",
1470 "localName": "Match_Establish"
1472 "outgoingEvent": {
1473 "name": "Event0001",
1474 "version": "0.0.1"
1476 "nextState": {
1477 "parentKeyName": "Policy0",
1478 "parentKeyVersion": "0.0.1",
1479 "parentLocalName": "NULL",
1480 "localName": "Establish"
1486 "contextAlbumReference": [
1488 "name": "GlobalContextAlbum",
1489 "version": "0.0.1"
1492 "name": "Policy0ContextAlbum",
1493 "version": "0.0.1"
1496 "taskSelectionLogic": {
1497 "key": "TaskSelectionLigic",
1498 "logicFlavour": "JAVASCRIPT",
1499 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
1501 "stateFinalizerLogicMap": {
1502 "entry": []
1504 "defaultTask": {
1505 "name": "Task_Match0",
1506 "version": "0.0.1"
1508 "taskReferences": {
1509 "entry": [
1511 "key": {
1512 "name": "Task_Match0",
1513 "version": "0.0.1"
1515 "value": {
1516 "key": {
1517 "parentKeyName": "Policy0",
1518 "parentKeyVersion": "0.0.1",
1519 "parentLocalName": "Match",
1520 "localName": "Task_Match0_DIRECT_Match_Establish"
1522 "outputType": "DIRECT",
1523 "output": {
1524 "parentKeyName": "Policy0",
1525 "parentKeyVersion": "0.0.1",
1526 "parentLocalName": "Match",
1527 "localName": "Match_Establish"
1532 "key": {
1533 "name": "Task_Match1",
1534 "version": "0.0.1"
1536 "value": {
1537 "key": {
1538 "parentKeyName": "Policy0",
1539 "parentKeyVersion": "0.0.1",
1540 "parentLocalName": "Match",
1541 "localName": "Task_Match1_DIRECT_Match_Establish"
1543 "outputType": "DIRECT",
1544 "output": {
1545 "parentKeyName": "Policy0",
1546 "parentKeyVersion": "0.0.1",
1547 "parentLocalName": "Match",
1548 "localName": "Match_Establish"
1553 "key": {
1554 "name": "Task_Match2",
1555 "version": "0.0.1"
1557 "value": {
1558 "key": {
1559 "parentKeyName": "Policy0",
1560 "parentKeyVersion": "0.0.1",
1561 "parentLocalName": "Match",
1562 "localName": "Task_Match2_DIRECT_Match_Establish"
1564 "outputType": "DIRECT",
1565 "output": {
1566 "parentKeyName": "Policy0",
1567 "parentKeyVersion": "0.0.1",
1568 "parentLocalName": "Match",
1569 "localName": "Match_Establish"
1574 "key": {
1575 "name": "Task_Match3",
1576 "version": "0.0.1"
1578 "value": {
1579 "key": {
1580 "parentKeyName": "Policy0",
1581 "parentKeyVersion": "0.0.1",
1582 "parentLocalName": "Match",
1583 "localName": "Task_Match3_DIRECT_Match_Establish"
1585 "outputType": "DIRECT",
1586 "output": {
1587 "parentKeyName": "Policy0",
1588 "parentKeyVersion": "0.0.1",
1589 "parentLocalName": "Match",
1590 "localName": "Match_Establish"
1600 "firstState": "Match"
1604 "key": {
1605 "name": "Policy1",
1606 "version": "0.0.1"
1608 "value": {
1609 "policyKey": {
1610 "name": "Policy1",
1611 "version": "0.0.1"
1613 "template": "MEDA",
1614 "state": {
1615 "entry": [
1617 "key": "Act",
1618 "value": {
1619 "stateKey": {
1620 "parentKeyName": "Policy1",
1621 "parentKeyVersion": "0.0.1",
1622 "parentLocalName": "NULL",
1623 "localName": "Act"
1625 "trigger": {
1626 "name": "Event0103",
1627 "version": "0.0.1"
1629 "stateOutputs": {
1630 "entry": [
1632 "key": "Act_NULL",
1633 "value": {
1634 "key": {
1635 "parentKeyName": "Policy1",
1636 "parentKeyVersion": "0.0.1",
1637 "parentLocalName": "Act",
1638 "localName": "Act_NULL"
1640 "outgoingEvent": {
1641 "name": "Event0104",
1642 "version": "0.0.1"
1644 "nextState": {
1645 "parentKeyName": "NULL",
1646 "parentKeyVersion": "0.0.0",
1647 "parentLocalName": "NULL",
1648 "localName": "NULL"
1654 "contextAlbumReference": [
1656 "name": "GlobalContextAlbum",
1657 "version": "0.0.1"
1660 "taskSelectionLogic": {
1661 "key": "TaskSelectionLigic",
1662 "logicFlavour": "JAVASCRIPT",
1663 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
1665 "stateFinalizerLogicMap": {
1666 "entry": []
1668 "defaultTask": {
1669 "name": "Task_Act0",
1670 "version": "0.0.1"
1672 "taskReferences": {
1673 "entry": [
1675 "key": {
1676 "name": "Task_Act0",
1677 "version": "0.0.1"
1679 "value": {
1680 "key": {
1681 "parentKeyName": "Policy1",
1682 "parentKeyVersion": "0.0.1",
1683 "parentLocalName": "Act",
1684 "localName": "Task_Act0_DIRECT_Act_NULL"
1686 "outputType": "DIRECT",
1687 "output": {
1688 "parentKeyName": "Policy1",
1689 "parentKeyVersion": "0.0.1",
1690 "parentLocalName": "Act",
1691 "localName": "Act_NULL"
1696 "key": {
1697 "name": "Task_Act1",
1698 "version": "0.0.1"
1700 "value": {
1701 "key": {
1702 "parentKeyName": "Policy1",
1703 "parentKeyVersion": "0.0.1",
1704 "parentLocalName": "Act",
1705 "localName": "Task_Act1_DIRECT_Act_NULL"
1707 "outputType": "DIRECT",
1708 "output": {
1709 "parentKeyName": "Policy1",
1710 "parentKeyVersion": "0.0.1",
1711 "parentLocalName": "Act",
1712 "localName": "Act_NULL"
1717 "key": {
1718 "name": "Task_Act2",
1719 "version": "0.0.1"
1721 "value": {
1722 "key": {
1723 "parentKeyName": "Policy1",
1724 "parentKeyVersion": "0.0.1",
1725 "parentLocalName": "Act",
1726 "localName": "Task_Act2_DIRECT_Act_NULL"
1728 "outputType": "DIRECT",
1729 "output": {
1730 "parentKeyName": "Policy1",
1731 "parentKeyVersion": "0.0.1",
1732 "parentLocalName": "Act",
1733 "localName": "Act_NULL"
1738 "key": {
1739 "name": "Task_Act3",
1740 "version": "0.0.1"
1742 "value": {
1743 "key": {
1744 "parentKeyName": "Policy1",
1745 "parentKeyVersion": "0.0.1",
1746 "parentLocalName": "Act",
1747 "localName": "Task_Act3_DIRECT_Act_NULL"
1749 "outputType": "DIRECT",
1750 "output": {
1751 "parentKeyName": "Policy1",
1752 "parentKeyVersion": "0.0.1",
1753 "parentLocalName": "Act",
1754 "localName": "Act_NULL"
1763 "key": "Decide",
1764 "value": {
1765 "stateKey": {
1766 "parentKeyName": "Policy1",
1767 "parentKeyVersion": "0.0.1",
1768 "parentLocalName": "NULL",
1769 "localName": "Decide"
1771 "trigger": {
1772 "name": "Event0102",
1773 "version": "0.0.1"
1775 "stateOutputs": {
1776 "entry": [
1778 "key": "Decide_Act",
1779 "value": {
1780 "key": {
1781 "parentKeyName": "Policy1",
1782 "parentKeyVersion": "0.0.1",
1783 "parentLocalName": "Decide",
1784 "localName": "Decide_Act"
1786 "outgoingEvent": {
1787 "name": "Event0103",
1788 "version": "0.0.1"
1790 "nextState": {
1791 "parentKeyName": "Policy1",
1792 "parentKeyVersion": "0.0.1",
1793 "parentLocalName": "NULL",
1794 "localName": "Act"
1800 "contextAlbumReference": [
1802 "name": "ExternalContextAlbum",
1803 "version": "0.0.1"
1806 "name": "GlobalContextAlbum",
1807 "version": "0.0.1"
1810 "name": "Policy1ContextAlbum",
1811 "version": "0.0.1"
1814 "taskSelectionLogic": {
1815 "key": "TaskSelectionLigic",
1816 "logicFlavour": "JAVASCRIPT",
1817 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
1819 "stateFinalizerLogicMap": {
1820 "entry": []
1822 "defaultTask": {
1823 "name": "Task_Decide3",
1824 "version": "0.0.1"
1826 "taskReferences": {
1827 "entry": [
1829 "key": {
1830 "name": "Task_Decide0",
1831 "version": "0.0.1"
1833 "value": {
1834 "key": {
1835 "parentKeyName": "Policy1",
1836 "parentKeyVersion": "0.0.1",
1837 "parentLocalName": "Decide",
1838 "localName": "Task_Decide0_DIRECT_Decide_Act"
1840 "outputType": "DIRECT",
1841 "output": {
1842 "parentKeyName": "Policy1",
1843 "parentKeyVersion": "0.0.1",
1844 "parentLocalName": "Decide",
1845 "localName": "Decide_Act"
1850 "key": {
1851 "name": "Task_Decide1",
1852 "version": "0.0.1"
1854 "value": {
1855 "key": {
1856 "parentKeyName": "Policy1",
1857 "parentKeyVersion": "0.0.1",
1858 "parentLocalName": "Decide",
1859 "localName": "Task_Decide1_DIRECT_Decide_Act"
1861 "outputType": "DIRECT",
1862 "output": {
1863 "parentKeyName": "Policy1",
1864 "parentKeyVersion": "0.0.1",
1865 "parentLocalName": "Decide",
1866 "localName": "Decide_Act"
1871 "key": {
1872 "name": "Task_Decide2",
1873 "version": "0.0.1"
1875 "value": {
1876 "key": {
1877 "parentKeyName": "Policy1",
1878 "parentKeyVersion": "0.0.1",
1879 "parentLocalName": "Decide",
1880 "localName": "Task_Decide2_DIRECT_Decide_Act"
1882 "outputType": "DIRECT",
1883 "output": {
1884 "parentKeyName": "Policy1",
1885 "parentKeyVersion": "0.0.1",
1886 "parentLocalName": "Decide",
1887 "localName": "Decide_Act"
1892 "key": {
1893 "name": "Task_Decide3",
1894 "version": "0.0.1"
1896 "value": {
1897 "key": {
1898 "parentKeyName": "Policy1",
1899 "parentKeyVersion": "0.0.1",
1900 "parentLocalName": "Decide",
1901 "localName": "Task_Decide3_DIRECT_Decide_Act"
1903 "outputType": "DIRECT",
1904 "output": {
1905 "parentKeyName": "Policy1",
1906 "parentKeyVersion": "0.0.1",
1907 "parentLocalName": "Decide",
1908 "localName": "Decide_Act"
1917 "key": "Establish",
1918 "value": {
1919 "stateKey": {
1920 "parentKeyName": "Policy1",
1921 "parentKeyVersion": "0.0.1",
1922 "parentLocalName": "NULL",
1923 "localName": "Establish"
1925 "trigger": {
1926 "name": "Event0101",
1927 "version": "0.0.1"
1929 "stateOutputs": {
1930 "entry": [
1932 "key": "Establish_Decide",
1933 "value": {
1934 "key": {
1935 "parentKeyName": "Policy1",
1936 "parentKeyVersion": "0.0.1",
1937 "parentLocalName": "Establish",
1938 "localName": "Establish_Decide"
1940 "outgoingEvent": {
1941 "name": "Event0102",
1942 "version": "0.0.1"
1944 "nextState": {
1945 "parentKeyName": "Policy1",
1946 "parentKeyVersion": "0.0.1",
1947 "parentLocalName": "NULL",
1948 "localName": "Decide"
1954 "contextAlbumReference": [
1956 "name": "ExternalContextAlbum",
1957 "version": "0.0.1"
1960 "name": "GlobalContextAlbum",
1961 "version": "0.0.1"
1964 "name": "Policy1ContextAlbum",
1965 "version": "0.0.1"
1968 "taskSelectionLogic": {
1969 "key": "TaskSelectionLigic",
1970 "logicFlavour": "JAVASCRIPT",
1971 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
1973 "stateFinalizerLogicMap": {
1974 "entry": []
1976 "defaultTask": {
1977 "name": "Task_Establish1",
1978 "version": "0.0.1"
1980 "taskReferences": {
1981 "entry": [
1983 "key": {
1984 "name": "Task_Establish0",
1985 "version": "0.0.1"
1987 "value": {
1988 "key": {
1989 "parentKeyName": "Policy1",
1990 "parentKeyVersion": "0.0.1",
1991 "parentLocalName": "Establish",
1992 "localName": "Task_Establish0_DIRECT_Establish_Decide"
1994 "outputType": "DIRECT",
1995 "output": {
1996 "parentKeyName": "Policy1",
1997 "parentKeyVersion": "0.0.1",
1998 "parentLocalName": "Establish",
1999 "localName": "Establish_Decide"
2004 "key": {
2005 "name": "Task_Establish1",
2006 "version": "0.0.1"
2008 "value": {
2009 "key": {
2010 "parentKeyName": "Policy1",
2011 "parentKeyVersion": "0.0.1",
2012 "parentLocalName": "Establish",
2013 "localName": "Task_Establish1_DIRECT_Establish_Decide"
2015 "outputType": "DIRECT",
2016 "output": {
2017 "parentKeyName": "Policy1",
2018 "parentKeyVersion": "0.0.1",
2019 "parentLocalName": "Establish",
2020 "localName": "Establish_Decide"
2025 "key": {
2026 "name": "Task_Establish2",
2027 "version": "0.0.1"
2029 "value": {
2030 "key": {
2031 "parentKeyName": "Policy1",
2032 "parentKeyVersion": "0.0.1",
2033 "parentLocalName": "Establish",
2034 "localName": "Task_Establish2_DIRECT_Establish_Decide"
2036 "outputType": "DIRECT",
2037 "output": {
2038 "parentKeyName": "Policy1",
2039 "parentKeyVersion": "0.0.1",
2040 "parentLocalName": "Establish",
2041 "localName": "Establish_Decide"
2046 "key": {
2047 "name": "Task_Establish3",
2048 "version": "0.0.1"
2050 "value": {
2051 "key": {
2052 "parentKeyName": "Policy1",
2053 "parentKeyVersion": "0.0.1",
2054 "parentLocalName": "Establish",
2055 "localName": "Task_Establish3_DIRECT_Establish_Decide"
2057 "outputType": "DIRECT",
2058 "output": {
2059 "parentKeyName": "Policy1",
2060 "parentKeyVersion": "0.0.1",
2061 "parentLocalName": "Establish",
2062 "localName": "Establish_Decide"
2071 "key": "Match",
2072 "value": {
2073 "stateKey": {
2074 "parentKeyName": "Policy1",
2075 "parentKeyVersion": "0.0.1",
2076 "parentLocalName": "NULL",
2077 "localName": "Match"
2079 "trigger": {
2080 "name": "Event0100",
2081 "version": "0.0.1"
2083 "stateOutputs": {
2084 "entry": [
2086 "key": "Match_Establish",
2087 "value": {
2088 "key": {
2089 "parentKeyName": "Policy1",
2090 "parentKeyVersion": "0.0.1",
2091 "parentLocalName": "Match",
2092 "localName": "Match_Establish"
2094 "outgoingEvent": {
2095 "name": "Event0101",
2096 "version": "0.0.1"
2098 "nextState": {
2099 "parentKeyName": "Policy1",
2100 "parentKeyVersion": "0.0.1",
2101 "parentLocalName": "NULL",
2102 "localName": "Establish"
2108 "contextAlbumReference": [
2110 "name": "ExternalContextAlbum",
2111 "version": "0.0.1"
2114 "name": "GlobalContextAlbum",
2115 "version": "0.0.1"
2118 "name": "Policy1ContextAlbum",
2119 "version": "0.0.1"
2122 "taskSelectionLogic": {
2123 "key": "TaskSelectionLigic",
2124 "logicFlavour": "JAVASCRIPT",
2125 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
2127 "stateFinalizerLogicMap": {
2128 "entry": []
2130 "defaultTask": {
2131 "name": "Task_Match3",
2132 "version": "0.0.1"
2134 "taskReferences": {
2135 "entry": [
2137 "key": {
2138 "name": "Task_Match0",
2139 "version": "0.0.1"
2141 "value": {
2142 "key": {
2143 "parentKeyName": "Policy1",
2144 "parentKeyVersion": "0.0.1",
2145 "parentLocalName": "Match",
2146 "localName": "Task_Match0_DIRECT_Match_Establish"
2148 "outputType": "DIRECT",
2149 "output": {
2150 "parentKeyName": "Policy1",
2151 "parentKeyVersion": "0.0.1",
2152 "parentLocalName": "Match",
2153 "localName": "Match_Establish"
2158 "key": {
2159 "name": "Task_Match1",
2160 "version": "0.0.1"
2162 "value": {
2163 "key": {
2164 "parentKeyName": "Policy1",
2165 "parentKeyVersion": "0.0.1",
2166 "parentLocalName": "Match",
2167 "localName": "Task_Match1_DIRECT_Match_Establish"
2169 "outputType": "DIRECT",
2170 "output": {
2171 "parentKeyName": "Policy1",
2172 "parentKeyVersion": "0.0.1",
2173 "parentLocalName": "Match",
2174 "localName": "Match_Establish"
2179 "key": {
2180 "name": "Task_Match2",
2181 "version": "0.0.1"
2183 "value": {
2184 "key": {
2185 "parentKeyName": "Policy1",
2186 "parentKeyVersion": "0.0.1",
2187 "parentLocalName": "Match",
2188 "localName": "Task_Match2_DIRECT_Match_Establish"
2190 "outputType": "DIRECT",
2191 "output": {
2192 "parentKeyName": "Policy1",
2193 "parentKeyVersion": "0.0.1",
2194 "parentLocalName": "Match",
2195 "localName": "Match_Establish"
2200 "key": {
2201 "name": "Task_Match3",
2202 "version": "0.0.1"
2204 "value": {
2205 "key": {
2206 "parentKeyName": "Policy1",
2207 "parentKeyVersion": "0.0.1",
2208 "parentLocalName": "Match",
2209 "localName": "Task_Match3_DIRECT_Match_Establish"
2211 "outputType": "DIRECT",
2212 "output": {
2213 "parentKeyName": "Policy1",
2214 "parentKeyVersion": "0.0.1",
2215 "parentLocalName": "Match",
2216 "localName": "Match_Establish"
2226 "firstState": "Match"
2232 "tasks": {
2233 "key": {
2234 "name": "Tasks",
2235 "version": "0.0.1"
2237 "taskMap": {
2238 "entry": [
2240 "key": {
2241 "name": "Task_Act0",
2242 "version": "0.0.1"
2244 "value": {
2245 "key": {
2246 "name": "Task_Act0",
2247 "version": "0.0.1"
2249 "inputFields": {
2250 "entry": [
2252 "key": "TestDecideCaseSelected",
2253 "value": {
2254 "key": "TestDecideCaseSelected",
2255 "fieldSchemaKey": {
2256 "name": "TestCase",
2257 "version": "0.0.1"
2259 "optional": false
2263 "key": "TestDecideStateTime",
2264 "value": {
2265 "key": "TestDecideStateTime",
2266 "fieldSchemaKey": {
2267 "name": "TestTimestamp",
2268 "version": "0.0.1"
2270 "optional": false
2274 "key": "TestEstablishCaseSelected",
2275 "value": {
2276 "key": "TestEstablishCaseSelected",
2277 "fieldSchemaKey": {
2278 "name": "TestCase",
2279 "version": "0.0.1"
2281 "optional": false
2285 "key": "TestEstablishStateTime",
2286 "value": {
2287 "key": "TestEstablishStateTime",
2288 "fieldSchemaKey": {
2289 "name": "TestTimestamp",
2290 "version": "0.0.1"
2292 "optional": false
2296 "key": "TestMatchCase",
2297 "value": {
2298 "key": "TestMatchCase",
2299 "fieldSchemaKey": {
2300 "name": "TestCase",
2301 "version": "0.0.1"
2303 "optional": false
2307 "key": "TestMatchCaseSelected",
2308 "value": {
2309 "key": "TestMatchCaseSelected",
2310 "fieldSchemaKey": {
2311 "name": "TestCase",
2312 "version": "0.0.1"
2314 "optional": false
2318 "key": "TestMatchStateTime",
2319 "value": {
2320 "key": "TestMatchStateTime",
2321 "fieldSchemaKey": {
2322 "name": "TestTimestamp",
2323 "version": "0.0.1"
2325 "optional": false
2329 "key": "TestSlogan",
2330 "value": {
2331 "key": "TestSlogan",
2332 "fieldSchemaKey": {
2333 "name": "TestSlogan",
2334 "version": "0.0.1"
2336 "optional": false
2340 "key": "TestTemperature",
2341 "value": {
2342 "key": "TestTemperature",
2343 "fieldSchemaKey": {
2344 "name": "TestTemperature",
2345 "version": "0.0.1"
2347 "optional": false
2351 "key": "TestTimestamp",
2352 "value": {
2353 "key": "TestTimestamp",
2354 "fieldSchemaKey": {
2355 "name": "TestTimestamp",
2356 "version": "0.0.1"
2358 "optional": false
2363 "outputFields": {
2364 "entry": [
2366 "key": "TestActCaseSelected",
2367 "value": {
2368 "key": "TestActCaseSelected",
2369 "fieldSchemaKey": {
2370 "name": "TestCase",
2371 "version": "0.0.1"
2373 "optional": false
2377 "key": "TestActStateTime",
2378 "value": {
2379 "key": "TestActStateTime",
2380 "fieldSchemaKey": {
2381 "name": "TestTimestamp",
2382 "version": "0.0.1"
2384 "optional": false
2388 "key": "TestDecideCaseSelected",
2389 "value": {
2390 "key": "TestDecideCaseSelected",
2391 "fieldSchemaKey": {
2392 "name": "TestCase",
2393 "version": "0.0.1"
2395 "optional": false
2399 "key": "TestDecideStateTime",
2400 "value": {
2401 "key": "TestDecideStateTime",
2402 "fieldSchemaKey": {
2403 "name": "TestTimestamp",
2404 "version": "0.0.1"
2406 "optional": false
2410 "key": "TestEstablishCaseSelected",
2411 "value": {
2412 "key": "TestEstablishCaseSelected",
2413 "fieldSchemaKey": {
2414 "name": "TestCase",
2415 "version": "0.0.1"
2417 "optional": false
2421 "key": "TestEstablishStateTime",
2422 "value": {
2423 "key": "TestEstablishStateTime",
2424 "fieldSchemaKey": {
2425 "name": "TestTimestamp",
2426 "version": "0.0.1"
2428 "optional": false
2432 "key": "TestMatchCase",
2433 "value": {
2434 "key": "TestMatchCase",
2435 "fieldSchemaKey": {
2436 "name": "TestCase",
2437 "version": "0.0.1"
2439 "optional": false
2443 "key": "TestMatchCaseSelected",
2444 "value": {
2445 "key": "TestMatchCaseSelected",
2446 "fieldSchemaKey": {
2447 "name": "TestCase",
2448 "version": "0.0.1"
2450 "optional": false
2454 "key": "TestMatchStateTime",
2455 "value": {
2456 "key": "TestMatchStateTime",
2457 "fieldSchemaKey": {
2458 "name": "TestTimestamp",
2459 "version": "0.0.1"
2461 "optional": false
2465 "key": "TestSlogan",
2466 "value": {
2467 "key": "TestSlogan",
2468 "fieldSchemaKey": {
2469 "name": "TestSlogan",
2470 "version": "0.0.1"
2472 "optional": false
2476 "key": "TestTemperature",
2477 "value": {
2478 "key": "TestTemperature",
2479 "fieldSchemaKey": {
2480 "name": "TestTemperature",
2481 "version": "0.0.1"
2483 "optional": false
2487 "key": "TestTimestamp",
2488 "value": {
2489 "key": "TestTimestamp",
2490 "fieldSchemaKey": {
2491 "name": "TestTimestamp",
2492 "version": "0.0.1"
2494 "optional": false
2499 "taskParameters": {
2500 "entry": [
2502 "key": "Parameter0",
2503 "value": {
2504 "key": {
2505 "parentKeyName": "Task_Act0",
2506 "parentKeyVersion": "0.0.1",
2507 "parentLocalName": "NULL",
2508 "localName": "Parameter0"
2510 "defaultValue": "DefaultValue0"
2514 "key": "Parameter1",
2515 "value": {
2516 "key": {
2517 "parentKeyName": "Task_Act0",
2518 "parentKeyVersion": "0.0.1",
2519 "parentLocalName": "NULL",
2520 "localName": "Parameter1"
2522 "defaultValue": "DefaultValue1"
2526 "key": "Parameter2",
2527 "value": {
2528 "key": {
2529 "parentKeyName": "Task_Act0",
2530 "parentKeyVersion": "0.0.1",
2531 "parentLocalName": "NULL",
2532 "localName": "Parameter2"
2534 "defaultValue": "DefaultValue2"
2539 "contextAlbumReference": [
2541 "name": "ExternalContextAlbum",
2542 "version": "0.0.1"
2545 "name": "GlobalContextAlbum",
2546 "version": "0.0.1"
2549 "name": "Policy0ContextAlbum",
2550 "version": "0.0.1"
2553 "name": "Policy1ContextAlbum",
2554 "version": "0.0.1"
2557 "taskLogic": {
2558 "key": "_TaskLogic",
2559 "logicFlavour": "JAVASCRIPT",
2560 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
2565 "key": {
2566 "name": "Task_Act1",
2567 "version": "0.0.1"
2569 "value": {
2570 "key": {
2571 "name": "Task_Act1",
2572 "version": "0.0.1"
2574 "inputFields": {
2575 "entry": [
2577 "key": "TestDecideCaseSelected",
2578 "value": {
2579 "key": "TestDecideCaseSelected",
2580 "fieldSchemaKey": {
2581 "name": "TestCase",
2582 "version": "0.0.1"
2584 "optional": false
2588 "key": "TestDecideStateTime",
2589 "value": {
2590 "key": "TestDecideStateTime",
2591 "fieldSchemaKey": {
2592 "name": "TestTimestamp",
2593 "version": "0.0.1"
2595 "optional": false
2599 "key": "TestEstablishCaseSelected",
2600 "value": {
2601 "key": "TestEstablishCaseSelected",
2602 "fieldSchemaKey": {
2603 "name": "TestCase",
2604 "version": "0.0.1"
2606 "optional": false
2610 "key": "TestEstablishStateTime",
2611 "value": {
2612 "key": "TestEstablishStateTime",
2613 "fieldSchemaKey": {
2614 "name": "TestTimestamp",
2615 "version": "0.0.1"
2617 "optional": false
2621 "key": "TestMatchCase",
2622 "value": {
2623 "key": "TestMatchCase",
2624 "fieldSchemaKey": {
2625 "name": "TestCase",
2626 "version": "0.0.1"
2628 "optional": false
2632 "key": "TestMatchCaseSelected",
2633 "value": {
2634 "key": "TestMatchCaseSelected",
2635 "fieldSchemaKey": {
2636 "name": "TestCase",
2637 "version": "0.0.1"
2639 "optional": false
2643 "key": "TestMatchStateTime",
2644 "value": {
2645 "key": "TestMatchStateTime",
2646 "fieldSchemaKey": {
2647 "name": "TestTimestamp",
2648 "version": "0.0.1"
2650 "optional": false
2654 "key": "TestSlogan",
2655 "value": {
2656 "key": "TestSlogan",
2657 "fieldSchemaKey": {
2658 "name": "TestSlogan",
2659 "version": "0.0.1"
2661 "optional": false
2665 "key": "TestTemperature",
2666 "value": {
2667 "key": "TestTemperature",
2668 "fieldSchemaKey": {
2669 "name": "TestTemperature",
2670 "version": "0.0.1"
2672 "optional": false
2676 "key": "TestTimestamp",
2677 "value": {
2678 "key": "TestTimestamp",
2679 "fieldSchemaKey": {
2680 "name": "TestTimestamp",
2681 "version": "0.0.1"
2683 "optional": false
2688 "outputFields": {
2689 "entry": [
2691 "key": "TestActCaseSelected",
2692 "value": {
2693 "key": "TestActCaseSelected",
2694 "fieldSchemaKey": {
2695 "name": "TestCase",
2696 "version": "0.0.1"
2698 "optional": false
2702 "key": "TestActStateTime",
2703 "value": {
2704 "key": "TestActStateTime",
2705 "fieldSchemaKey": {
2706 "name": "TestTimestamp",
2707 "version": "0.0.1"
2709 "optional": false
2713 "key": "TestDecideCaseSelected",
2714 "value": {
2715 "key": "TestDecideCaseSelected",
2716 "fieldSchemaKey": {
2717 "name": "TestCase",
2718 "version": "0.0.1"
2720 "optional": false
2724 "key": "TestDecideStateTime",
2725 "value": {
2726 "key": "TestDecideStateTime",
2727 "fieldSchemaKey": {
2728 "name": "TestTimestamp",
2729 "version": "0.0.1"
2731 "optional": false
2735 "key": "TestEstablishCaseSelected",
2736 "value": {
2737 "key": "TestEstablishCaseSelected",
2738 "fieldSchemaKey": {
2739 "name": "TestCase",
2740 "version": "0.0.1"
2742 "optional": false
2746 "key": "TestEstablishStateTime",
2747 "value": {
2748 "key": "TestEstablishStateTime",
2749 "fieldSchemaKey": {
2750 "name": "TestTimestamp",
2751 "version": "0.0.1"
2753 "optional": false
2757 "key": "TestMatchCase",
2758 "value": {
2759 "key": "TestMatchCase",
2760 "fieldSchemaKey": {
2761 "name": "TestCase",
2762 "version": "0.0.1"
2764 "optional": false
2768 "key": "TestMatchCaseSelected",
2769 "value": {
2770 "key": "TestMatchCaseSelected",
2771 "fieldSchemaKey": {
2772 "name": "TestCase",
2773 "version": "0.0.1"
2775 "optional": false
2779 "key": "TestMatchStateTime",
2780 "value": {
2781 "key": "TestMatchStateTime",
2782 "fieldSchemaKey": {
2783 "name": "TestTimestamp",
2784 "version": "0.0.1"
2786 "optional": false
2790 "key": "TestSlogan",
2791 "value": {
2792 "key": "TestSlogan",
2793 "fieldSchemaKey": {
2794 "name": "TestSlogan",
2795 "version": "0.0.1"
2797 "optional": false
2801 "key": "TestTemperature",
2802 "value": {
2803 "key": "TestTemperature",
2804 "fieldSchemaKey": {
2805 "name": "TestTemperature",
2806 "version": "0.0.1"
2808 "optional": false
2812 "key": "TestTimestamp",
2813 "value": {
2814 "key": "TestTimestamp",
2815 "fieldSchemaKey": {
2816 "name": "TestTimestamp",
2817 "version": "0.0.1"
2819 "optional": false
2824 "taskParameters": {
2825 "entry": [
2827 "key": "Parameter0",
2828 "value": {
2829 "key": {
2830 "parentKeyName": "Task_Act1",
2831 "parentKeyVersion": "0.0.1",
2832 "parentLocalName": "NULL",
2833 "localName": "Parameter0"
2835 "defaultValue": "DefaultValue0"
2839 "key": "Parameter1",
2840 "value": {
2841 "key": {
2842 "parentKeyName": "Task_Act1",
2843 "parentKeyVersion": "0.0.1",
2844 "parentLocalName": "NULL",
2845 "localName": "Parameter1"
2847 "defaultValue": "DefaultValue1"
2852 "contextAlbumReference": [
2854 "name": "GlobalContextAlbum",
2855 "version": "0.0.1"
2858 "name": "Policy0ContextAlbum",
2859 "version": "0.0.1"
2862 "taskLogic": {
2863 "key": "_TaskLogic",
2864 "logicFlavour": "JAVASCRIPT",
2865 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
2870 "key": {
2871 "name": "Task_Act2",
2872 "version": "0.0.1"
2874 "value": {
2875 "key": {
2876 "name": "Task_Act2",
2877 "version": "0.0.1"
2879 "inputFields": {
2880 "entry": [
2882 "key": "TestDecideCaseSelected",
2883 "value": {
2884 "key": "TestDecideCaseSelected",
2885 "fieldSchemaKey": {
2886 "name": "TestCase",
2887 "version": "0.0.1"
2889 "optional": false
2893 "key": "TestDecideStateTime",
2894 "value": {
2895 "key": "TestDecideStateTime",
2896 "fieldSchemaKey": {
2897 "name": "TestTimestamp",
2898 "version": "0.0.1"
2900 "optional": false
2904 "key": "TestEstablishCaseSelected",
2905 "value": {
2906 "key": "TestEstablishCaseSelected",
2907 "fieldSchemaKey": {
2908 "name": "TestCase",
2909 "version": "0.0.1"
2911 "optional": false
2915 "key": "TestEstablishStateTime",
2916 "value": {
2917 "key": "TestEstablishStateTime",
2918 "fieldSchemaKey": {
2919 "name": "TestTimestamp",
2920 "version": "0.0.1"
2922 "optional": false
2926 "key": "TestMatchCase",
2927 "value": {
2928 "key": "TestMatchCase",
2929 "fieldSchemaKey": {
2930 "name": "TestCase",
2931 "version": "0.0.1"
2933 "optional": false
2937 "key": "TestMatchCaseSelected",
2938 "value": {
2939 "key": "TestMatchCaseSelected",
2940 "fieldSchemaKey": {
2941 "name": "TestCase",
2942 "version": "0.0.1"
2944 "optional": false
2948 "key": "TestMatchStateTime",
2949 "value": {
2950 "key": "TestMatchStateTime",
2951 "fieldSchemaKey": {
2952 "name": "TestTimestamp",
2953 "version": "0.0.1"
2955 "optional": false
2959 "key": "TestSlogan",
2960 "value": {
2961 "key": "TestSlogan",
2962 "fieldSchemaKey": {
2963 "name": "TestSlogan",
2964 "version": "0.0.1"
2966 "optional": false
2970 "key": "TestTemperature",
2971 "value": {
2972 "key": "TestTemperature",
2973 "fieldSchemaKey": {
2974 "name": "TestTemperature",
2975 "version": "0.0.1"
2977 "optional": false
2981 "key": "TestTimestamp",
2982 "value": {
2983 "key": "TestTimestamp",
2984 "fieldSchemaKey": {
2985 "name": "TestTimestamp",
2986 "version": "0.0.1"
2988 "optional": false
2993 "outputFields": {
2994 "entry": [
2996 "key": "TestActCaseSelected",
2997 "value": {
2998 "key": "TestActCaseSelected",
2999 "fieldSchemaKey": {
3000 "name": "TestCase",
3001 "version": "0.0.1"
3003 "optional": false
3007 "key": "TestActStateTime",
3008 "value": {
3009 "key": "TestActStateTime",
3010 "fieldSchemaKey": {
3011 "name": "TestTimestamp",
3012 "version": "0.0.1"
3014 "optional": false
3018 "key": "TestDecideCaseSelected",
3019 "value": {
3020 "key": "TestDecideCaseSelected",
3021 "fieldSchemaKey": {
3022 "name": "TestCase",
3023 "version": "0.0.1"
3025 "optional": false
3029 "key": "TestDecideStateTime",
3030 "value": {
3031 "key": "TestDecideStateTime",
3032 "fieldSchemaKey": {
3033 "name": "TestTimestamp",
3034 "version": "0.0.1"
3036 "optional": false
3040 "key": "TestEstablishCaseSelected",
3041 "value": {
3042 "key": "TestEstablishCaseSelected",
3043 "fieldSchemaKey": {
3044 "name": "TestCase",
3045 "version": "0.0.1"
3047 "optional": false
3051 "key": "TestEstablishStateTime",
3052 "value": {
3053 "key": "TestEstablishStateTime",
3054 "fieldSchemaKey": {
3055 "name": "TestTimestamp",
3056 "version": "0.0.1"
3058 "optional": false
3062 "key": "TestMatchCase",
3063 "value": {
3064 "key": "TestMatchCase",
3065 "fieldSchemaKey": {
3066 "name": "TestCase",
3067 "version": "0.0.1"
3069 "optional": false
3073 "key": "TestMatchCaseSelected",
3074 "value": {
3075 "key": "TestMatchCaseSelected",
3076 "fieldSchemaKey": {
3077 "name": "TestCase",
3078 "version": "0.0.1"
3080 "optional": false
3084 "key": "TestMatchStateTime",
3085 "value": {
3086 "key": "TestMatchStateTime",
3087 "fieldSchemaKey": {
3088 "name": "TestTimestamp",
3089 "version": "0.0.1"
3091 "optional": false
3095 "key": "TestSlogan",
3096 "value": {
3097 "key": "TestSlogan",
3098 "fieldSchemaKey": {
3099 "name": "TestSlogan",
3100 "version": "0.0.1"
3102 "optional": false
3106 "key": "TestTemperature",
3107 "value": {
3108 "key": "TestTemperature",
3109 "fieldSchemaKey": {
3110 "name": "TestTemperature",
3111 "version": "0.0.1"
3113 "optional": false
3117 "key": "TestTimestamp",
3118 "value": {
3119 "key": "TestTimestamp",
3120 "fieldSchemaKey": {
3121 "name": "TestTimestamp",
3122 "version": "0.0.1"
3124 "optional": false
3129 "taskParameters": {
3130 "entry": [
3132 "key": "Parameter0",
3133 "value": {
3134 "key": {
3135 "parentKeyName": "Task_Act2",
3136 "parentKeyVersion": "0.0.1",
3137 "parentLocalName": "NULL",
3138 "localName": "Parameter0"
3140 "defaultValue": "DefaultValue0"
3145 "contextAlbumReference": [
3147 "name": "GlobalContextAlbum",
3148 "version": "0.0.1"
3151 "name": "Policy1ContextAlbum",
3152 "version": "0.0.1"
3155 "taskLogic": {
3156 "key": "_TaskLogic",
3157 "logicFlavour": "JAVASCRIPT",
3158 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
3163 "key": {
3164 "name": "Task_Act3",
3165 "version": "0.0.1"
3167 "value": {
3168 "key": {
3169 "name": "Task_Act3",
3170 "version": "0.0.1"
3172 "inputFields": {
3173 "entry": [
3175 "key": "TestDecideCaseSelected",
3176 "value": {
3177 "key": "TestDecideCaseSelected",
3178 "fieldSchemaKey": {
3179 "name": "TestCase",
3180 "version": "0.0.1"
3182 "optional": false
3186 "key": "TestDecideStateTime",
3187 "value": {
3188 "key": "TestDecideStateTime",
3189 "fieldSchemaKey": {
3190 "name": "TestTimestamp",
3191 "version": "0.0.1"
3193 "optional": false
3197 "key": "TestEstablishCaseSelected",
3198 "value": {
3199 "key": "TestEstablishCaseSelected",
3200 "fieldSchemaKey": {
3201 "name": "TestCase",
3202 "version": "0.0.1"
3204 "optional": false
3208 "key": "TestEstablishStateTime",
3209 "value": {
3210 "key": "TestEstablishStateTime",
3211 "fieldSchemaKey": {
3212 "name": "TestTimestamp",
3213 "version": "0.0.1"
3215 "optional": false
3219 "key": "TestMatchCase",
3220 "value": {
3221 "key": "TestMatchCase",
3222 "fieldSchemaKey": {
3223 "name": "TestCase",
3224 "version": "0.0.1"
3226 "optional": false
3230 "key": "TestMatchCaseSelected",
3231 "value": {
3232 "key": "TestMatchCaseSelected",
3233 "fieldSchemaKey": {
3234 "name": "TestCase",
3235 "version": "0.0.1"
3237 "optional": false
3241 "key": "TestMatchStateTime",
3242 "value": {
3243 "key": "TestMatchStateTime",
3244 "fieldSchemaKey": {
3245 "name": "TestTimestamp",
3246 "version": "0.0.1"
3248 "optional": false
3252 "key": "TestSlogan",
3253 "value": {
3254 "key": "TestSlogan",
3255 "fieldSchemaKey": {
3256 "name": "TestSlogan",
3257 "version": "0.0.1"
3259 "optional": false
3263 "key": "TestTemperature",
3264 "value": {
3265 "key": "TestTemperature",
3266 "fieldSchemaKey": {
3267 "name": "TestTemperature",
3268 "version": "0.0.1"
3270 "optional": false
3274 "key": "TestTimestamp",
3275 "value": {
3276 "key": "TestTimestamp",
3277 "fieldSchemaKey": {
3278 "name": "TestTimestamp",
3279 "version": "0.0.1"
3281 "optional": false
3286 "outputFields": {
3287 "entry": [
3289 "key": "TestActCaseSelected",
3290 "value": {
3291 "key": "TestActCaseSelected",
3292 "fieldSchemaKey": {
3293 "name": "TestCase",
3294 "version": "0.0.1"
3296 "optional": false
3300 "key": "TestActStateTime",
3301 "value": {
3302 "key": "TestActStateTime",
3303 "fieldSchemaKey": {
3304 "name": "TestTimestamp",
3305 "version": "0.0.1"
3307 "optional": false
3311 "key": "TestDecideCaseSelected",
3312 "value": {
3313 "key": "TestDecideCaseSelected",
3314 "fieldSchemaKey": {
3315 "name": "TestCase",
3316 "version": "0.0.1"
3318 "optional": false
3322 "key": "TestDecideStateTime",
3323 "value": {
3324 "key": "TestDecideStateTime",
3325 "fieldSchemaKey": {
3326 "name": "TestTimestamp",
3327 "version": "0.0.1"
3329 "optional": false
3333 "key": "TestEstablishCaseSelected",
3334 "value": {
3335 "key": "TestEstablishCaseSelected",
3336 "fieldSchemaKey": {
3337 "name": "TestCase",
3338 "version": "0.0.1"
3340 "optional": false
3344 "key": "TestEstablishStateTime",
3345 "value": {
3346 "key": "TestEstablishStateTime",
3347 "fieldSchemaKey": {
3348 "name": "TestTimestamp",
3349 "version": "0.0.1"
3351 "optional": false
3355 "key": "TestMatchCase",
3356 "value": {
3357 "key": "TestMatchCase",
3358 "fieldSchemaKey": {
3359 "name": "TestCase",
3360 "version": "0.0.1"
3362 "optional": false
3366 "key": "TestMatchCaseSelected",
3367 "value": {
3368 "key": "TestMatchCaseSelected",
3369 "fieldSchemaKey": {
3370 "name": "TestCase",
3371 "version": "0.0.1"
3373 "optional": false
3377 "key": "TestMatchStateTime",
3378 "value": {
3379 "key": "TestMatchStateTime",
3380 "fieldSchemaKey": {
3381 "name": "TestTimestamp",
3382 "version": "0.0.1"
3384 "optional": false
3388 "key": "TestSlogan",
3389 "value": {
3390 "key": "TestSlogan",
3391 "fieldSchemaKey": {
3392 "name": "TestSlogan",
3393 "version": "0.0.1"
3395 "optional": false
3399 "key": "TestTemperature",
3400 "value": {
3401 "key": "TestTemperature",
3402 "fieldSchemaKey": {
3403 "name": "TestTemperature",
3404 "version": "0.0.1"
3406 "optional": false
3410 "key": "TestTimestamp",
3411 "value": {
3412 "key": "TestTimestamp",
3413 "fieldSchemaKey": {
3414 "name": "TestTimestamp",
3415 "version": "0.0.1"
3417 "optional": false
3422 "taskParameters": {
3423 "entry": [
3425 "key": "Parameter0",
3426 "value": {
3427 "key": {
3428 "parentKeyName": "Task_Act3",
3429 "parentKeyVersion": "0.0.1",
3430 "parentLocalName": "NULL",
3431 "localName": "Parameter0"
3433 "defaultValue": "DefaultValue0"
3438 "contextAlbumReference": [
3440 "name": "ExternalContextAlbum",
3441 "version": "0.0.1"
3444 "name": "GlobalContextAlbum",
3445 "version": "0.0.1"
3448 "taskLogic": {
3449 "key": "_TaskLogic",
3450 "logicFlavour": "JAVASCRIPT",
3451 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
3456 "key": {
3457 "name": "Task_Decide0",
3458 "version": "0.0.1"
3460 "value": {
3461 "key": {
3462 "name": "Task_Decide0",
3463 "version": "0.0.1"
3465 "inputFields": {
3466 "entry": [
3468 "key": "TestEstablishCaseSelected",
3469 "value": {
3470 "key": "TestEstablishCaseSelected",
3471 "fieldSchemaKey": {
3472 "name": "TestCase",
3473 "version": "0.0.1"
3475 "optional": false
3479 "key": "TestEstablishStateTime",
3480 "value": {
3481 "key": "TestEstablishStateTime",
3482 "fieldSchemaKey": {
3483 "name": "TestTimestamp",
3484 "version": "0.0.1"
3486 "optional": false
3490 "key": "TestMatchCase",
3491 "value": {
3492 "key": "TestMatchCase",
3493 "fieldSchemaKey": {
3494 "name": "TestCase",
3495 "version": "0.0.1"
3497 "optional": false
3501 "key": "TestMatchCaseSelected",
3502 "value": {
3503 "key": "TestMatchCaseSelected",
3504 "fieldSchemaKey": {
3505 "name": "TestCase",
3506 "version": "0.0.1"
3508 "optional": false
3512 "key": "TestMatchStateTime",
3513 "value": {
3514 "key": "TestMatchStateTime",
3515 "fieldSchemaKey": {
3516 "name": "TestTimestamp",
3517 "version": "0.0.1"
3519 "optional": false
3523 "key": "TestSlogan",
3524 "value": {
3525 "key": "TestSlogan",
3526 "fieldSchemaKey": {
3527 "name": "TestSlogan",
3528 "version": "0.0.1"
3530 "optional": false
3534 "key": "TestTemperature",
3535 "value": {
3536 "key": "TestTemperature",
3537 "fieldSchemaKey": {
3538 "name": "TestTemperature",
3539 "version": "0.0.1"
3541 "optional": false
3545 "key": "TestTimestamp",
3546 "value": {
3547 "key": "TestTimestamp",
3548 "fieldSchemaKey": {
3549 "name": "TestTimestamp",
3550 "version": "0.0.1"
3552 "optional": false
3557 "outputFields": {
3558 "entry": [
3560 "key": "TestDecideCaseSelected",
3561 "value": {
3562 "key": "TestDecideCaseSelected",
3563 "fieldSchemaKey": {
3564 "name": "TestCase",
3565 "version": "0.0.1"
3567 "optional": false
3571 "key": "TestDecideStateTime",
3572 "value": {
3573 "key": "TestDecideStateTime",
3574 "fieldSchemaKey": {
3575 "name": "TestTimestamp",
3576 "version": "0.0.1"
3578 "optional": false
3582 "key": "TestEstablishCaseSelected",
3583 "value": {
3584 "key": "TestEstablishCaseSelected",
3585 "fieldSchemaKey": {
3586 "name": "TestCase",
3587 "version": "0.0.1"
3589 "optional": false
3593 "key": "TestEstablishStateTime",
3594 "value": {
3595 "key": "TestEstablishStateTime",
3596 "fieldSchemaKey": {
3597 "name": "TestTimestamp",
3598 "version": "0.0.1"
3600 "optional": false
3604 "key": "TestMatchCase",
3605 "value": {
3606 "key": "TestMatchCase",
3607 "fieldSchemaKey": {
3608 "name": "TestCase",
3609 "version": "0.0.1"
3611 "optional": false
3615 "key": "TestMatchCaseSelected",
3616 "value": {
3617 "key": "TestMatchCaseSelected",
3618 "fieldSchemaKey": {
3619 "name": "TestCase",
3620 "version": "0.0.1"
3622 "optional": false
3626 "key": "TestMatchStateTime",
3627 "value": {
3628 "key": "TestMatchStateTime",
3629 "fieldSchemaKey": {
3630 "name": "TestTimestamp",
3631 "version": "0.0.1"
3633 "optional": false
3637 "key": "TestSlogan",
3638 "value": {
3639 "key": "TestSlogan",
3640 "fieldSchemaKey": {
3641 "name": "TestSlogan",
3642 "version": "0.0.1"
3644 "optional": false
3648 "key": "TestTemperature",
3649 "value": {
3650 "key": "TestTemperature",
3651 "fieldSchemaKey": {
3652 "name": "TestTemperature",
3653 "version": "0.0.1"
3655 "optional": false
3659 "key": "TestTimestamp",
3660 "value": {
3661 "key": "TestTimestamp",
3662 "fieldSchemaKey": {
3663 "name": "TestTimestamp",
3664 "version": "0.0.1"
3666 "optional": false
3671 "taskParameters": {
3672 "entry": [
3674 "key": "Parameter0",
3675 "value": {
3676 "key": {
3677 "parentKeyName": "Task_Decide0",
3678 "parentKeyVersion": "0.0.1",
3679 "parentLocalName": "NULL",
3680 "localName": "Parameter0"
3682 "defaultValue": "DefaultValue0"
3686 "key": "Parameter1",
3687 "value": {
3688 "key": {
3689 "parentKeyName": "Task_Decide0",
3690 "parentKeyVersion": "0.0.1",
3691 "parentLocalName": "NULL",
3692 "localName": "Parameter1"
3694 "defaultValue": "DefaultValue1"
3698 "key": "Parameter2",
3699 "value": {
3700 "key": {
3701 "parentKeyName": "Task_Decide0",
3702 "parentKeyVersion": "0.0.1",
3703 "parentLocalName": "NULL",
3704 "localName": "Parameter2"
3706 "defaultValue": "DefaultValue2"
3711 "contextAlbumReference": [
3713 "name": "ExternalContextAlbum",
3714 "version": "0.0.1"
3717 "name": "GlobalContextAlbum",
3718 "version": "0.0.1"
3721 "name": "Policy0ContextAlbum",
3722 "version": "0.0.1"
3725 "name": "Policy1ContextAlbum",
3726 "version": "0.0.1"
3729 "taskLogic": {
3730 "key": "_TaskLogic",
3731 "logicFlavour": "JAVASCRIPT",
3732 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
3737 "key": {
3738 "name": "Task_Decide1",
3739 "version": "0.0.1"
3741 "value": {
3742 "key": {
3743 "name": "Task_Decide1",
3744 "version": "0.0.1"
3746 "inputFields": {
3747 "entry": [
3749 "key": "TestEstablishCaseSelected",
3750 "value": {
3751 "key": "TestEstablishCaseSelected",
3752 "fieldSchemaKey": {
3753 "name": "TestCase",
3754 "version": "0.0.1"
3756 "optional": false
3760 "key": "TestEstablishStateTime",
3761 "value": {
3762 "key": "TestEstablishStateTime",
3763 "fieldSchemaKey": {
3764 "name": "TestTimestamp",
3765 "version": "0.0.1"
3767 "optional": false
3771 "key": "TestMatchCase",
3772 "value": {
3773 "key": "TestMatchCase",
3774 "fieldSchemaKey": {
3775 "name": "TestCase",
3776 "version": "0.0.1"
3778 "optional": false
3782 "key": "TestMatchCaseSelected",
3783 "value": {
3784 "key": "TestMatchCaseSelected",
3785 "fieldSchemaKey": {
3786 "name": "TestCase",
3787 "version": "0.0.1"
3789 "optional": false
3793 "key": "TestMatchStateTime",
3794 "value": {
3795 "key": "TestMatchStateTime",
3796 "fieldSchemaKey": {
3797 "name": "TestTimestamp",
3798 "version": "0.0.1"
3800 "optional": false
3804 "key": "TestSlogan",
3805 "value": {
3806 "key": "TestSlogan",
3807 "fieldSchemaKey": {
3808 "name": "TestSlogan",
3809 "version": "0.0.1"
3811 "optional": false
3815 "key": "TestTemperature",
3816 "value": {
3817 "key": "TestTemperature",
3818 "fieldSchemaKey": {
3819 "name": "TestTemperature",
3820 "version": "0.0.1"
3822 "optional": false
3826 "key": "TestTimestamp",
3827 "value": {
3828 "key": "TestTimestamp",
3829 "fieldSchemaKey": {
3830 "name": "TestTimestamp",
3831 "version": "0.0.1"
3833 "optional": false
3838 "outputFields": {
3839 "entry": [
3841 "key": "TestDecideCaseSelected",
3842 "value": {
3843 "key": "TestDecideCaseSelected",
3844 "fieldSchemaKey": {
3845 "name": "TestCase",
3846 "version": "0.0.1"
3848 "optional": false
3852 "key": "TestDecideStateTime",
3853 "value": {
3854 "key": "TestDecideStateTime",
3855 "fieldSchemaKey": {
3856 "name": "TestTimestamp",
3857 "version": "0.0.1"
3859 "optional": false
3863 "key": "TestEstablishCaseSelected",
3864 "value": {
3865 "key": "TestEstablishCaseSelected",
3866 "fieldSchemaKey": {
3867 "name": "TestCase",
3868 "version": "0.0.1"
3870 "optional": false
3874 "key": "TestEstablishStateTime",
3875 "value": {
3876 "key": "TestEstablishStateTime",
3877 "fieldSchemaKey": {
3878 "name": "TestTimestamp",
3879 "version": "0.0.1"
3881 "optional": false
3885 "key": "TestMatchCase",
3886 "value": {
3887 "key": "TestMatchCase",
3888 "fieldSchemaKey": {
3889 "name": "TestCase",
3890 "version": "0.0.1"
3892 "optional": false
3896 "key": "TestMatchCaseSelected",
3897 "value": {
3898 "key": "TestMatchCaseSelected",
3899 "fieldSchemaKey": {
3900 "name": "TestCase",
3901 "version": "0.0.1"
3903 "optional": false
3907 "key": "TestMatchStateTime",
3908 "value": {
3909 "key": "TestMatchStateTime",
3910 "fieldSchemaKey": {
3911 "name": "TestTimestamp",
3912 "version": "0.0.1"
3914 "optional": false
3918 "key": "TestSlogan",
3919 "value": {
3920 "key": "TestSlogan",
3921 "fieldSchemaKey": {
3922 "name": "TestSlogan",
3923 "version": "0.0.1"
3925 "optional": false
3929 "key": "TestTemperature",
3930 "value": {
3931 "key": "TestTemperature",
3932 "fieldSchemaKey": {
3933 "name": "TestTemperature",
3934 "version": "0.0.1"
3936 "optional": false
3940 "key": "TestTimestamp",
3941 "value": {
3942 "key": "TestTimestamp",
3943 "fieldSchemaKey": {
3944 "name": "TestTimestamp",
3945 "version": "0.0.1"
3947 "optional": false
3952 "taskParameters": {
3953 "entry": [
3955 "key": "Parameter0",
3956 "value": {
3957 "key": {
3958 "parentKeyName": "Task_Decide1",
3959 "parentKeyVersion": "0.0.1",
3960 "parentLocalName": "NULL",
3961 "localName": "Parameter0"
3963 "defaultValue": "DefaultValue0"
3967 "key": "Parameter1",
3968 "value": {
3969 "key": {
3970 "parentKeyName": "Task_Decide1",
3971 "parentKeyVersion": "0.0.1",
3972 "parentLocalName": "NULL",
3973 "localName": "Parameter1"
3975 "defaultValue": "DefaultValue1"
3980 "contextAlbumReference": [
3982 "name": "GlobalContextAlbum",
3983 "version": "0.0.1"
3986 "name": "Policy0ContextAlbum",
3987 "version": "0.0.1"
3990 "taskLogic": {
3991 "key": "_TaskLogic",
3992 "logicFlavour": "JAVASCRIPT",
3993 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
3998 "key": {
3999 "name": "Task_Decide2",
4000 "version": "0.0.1"
4002 "value": {
4003 "key": {
4004 "name": "Task_Decide2",
4005 "version": "0.0.1"
4007 "inputFields": {
4008 "entry": [
4010 "key": "TestEstablishCaseSelected",
4011 "value": {
4012 "key": "TestEstablishCaseSelected",
4013 "fieldSchemaKey": {
4014 "name": "TestCase",
4015 "version": "0.0.1"
4017 "optional": false
4021 "key": "TestEstablishStateTime",
4022 "value": {
4023 "key": "TestEstablishStateTime",
4024 "fieldSchemaKey": {
4025 "name": "TestTimestamp",
4026 "version": "0.0.1"
4028 "optional": false
4032 "key": "TestMatchCase",
4033 "value": {
4034 "key": "TestMatchCase",
4035 "fieldSchemaKey": {
4036 "name": "TestCase",
4037 "version": "0.0.1"
4039 "optional": false
4043 "key": "TestMatchCaseSelected",
4044 "value": {
4045 "key": "TestMatchCaseSelected",
4046 "fieldSchemaKey": {
4047 "name": "TestCase",
4048 "version": "0.0.1"
4050 "optional": false
4054 "key": "TestMatchStateTime",
4055 "value": {
4056 "key": "TestMatchStateTime",
4057 "fieldSchemaKey": {
4058 "name": "TestTimestamp",
4059 "version": "0.0.1"
4061 "optional": false
4065 "key": "TestSlogan",
4066 "value": {
4067 "key": "TestSlogan",
4068 "fieldSchemaKey": {
4069 "name": "TestSlogan",
4070 "version": "0.0.1"
4072 "optional": false
4076 "key": "TestTemperature",
4077 "value": {
4078 "key": "TestTemperature",
4079 "fieldSchemaKey": {
4080 "name": "TestTemperature",
4081 "version": "0.0.1"
4083 "optional": false
4087 "key": "TestTimestamp",
4088 "value": {
4089 "key": "TestTimestamp",
4090 "fieldSchemaKey": {
4091 "name": "TestTimestamp",
4092 "version": "0.0.1"
4094 "optional": false
4099 "outputFields": {
4100 "entry": [
4102 "key": "TestDecideCaseSelected",
4103 "value": {
4104 "key": "TestDecideCaseSelected",
4105 "fieldSchemaKey": {
4106 "name": "TestCase",
4107 "version": "0.0.1"
4109 "optional": false
4113 "key": "TestDecideStateTime",
4114 "value": {
4115 "key": "TestDecideStateTime",
4116 "fieldSchemaKey": {
4117 "name": "TestTimestamp",
4118 "version": "0.0.1"
4120 "optional": false
4124 "key": "TestEstablishCaseSelected",
4125 "value": {
4126 "key": "TestEstablishCaseSelected",
4127 "fieldSchemaKey": {
4128 "name": "TestCase",
4129 "version": "0.0.1"
4131 "optional": false
4135 "key": "TestEstablishStateTime",
4136 "value": {
4137 "key": "TestEstablishStateTime",
4138 "fieldSchemaKey": {
4139 "name": "TestTimestamp",
4140 "version": "0.0.1"
4142 "optional": false
4146 "key": "TestMatchCase",
4147 "value": {
4148 "key": "TestMatchCase",
4149 "fieldSchemaKey": {
4150 "name": "TestCase",
4151 "version": "0.0.1"
4153 "optional": false
4157 "key": "TestMatchCaseSelected",
4158 "value": {
4159 "key": "TestMatchCaseSelected",
4160 "fieldSchemaKey": {
4161 "name": "TestCase",
4162 "version": "0.0.1"
4164 "optional": false
4168 "key": "TestMatchStateTime",
4169 "value": {
4170 "key": "TestMatchStateTime",
4171 "fieldSchemaKey": {
4172 "name": "TestTimestamp",
4173 "version": "0.0.1"
4175 "optional": false
4179 "key": "TestSlogan",
4180 "value": {
4181 "key": "TestSlogan",
4182 "fieldSchemaKey": {
4183 "name": "TestSlogan",
4184 "version": "0.0.1"
4186 "optional": false
4190 "key": "TestTemperature",
4191 "value": {
4192 "key": "TestTemperature",
4193 "fieldSchemaKey": {
4194 "name": "TestTemperature",
4195 "version": "0.0.1"
4197 "optional": false
4201 "key": "TestTimestamp",
4202 "value": {
4203 "key": "TestTimestamp",
4204 "fieldSchemaKey": {
4205 "name": "TestTimestamp",
4206 "version": "0.0.1"
4208 "optional": false
4213 "taskParameters": {
4214 "entry": [
4216 "key": "Parameter0",
4217 "value": {
4218 "key": {
4219 "parentKeyName": "Task_Decide2",
4220 "parentKeyVersion": "0.0.1",
4221 "parentLocalName": "NULL",
4222 "localName": "Parameter0"
4224 "defaultValue": "DefaultValue0"
4229 "contextAlbumReference": [
4231 "name": "GlobalContextAlbum",
4232 "version": "0.0.1"
4235 "name": "Policy1ContextAlbum",
4236 "version": "0.0.1"
4239 "taskLogic": {
4240 "key": "_TaskLogic",
4241 "logicFlavour": "JAVASCRIPT",
4242 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
4247 "key": {
4248 "name": "Task_Decide3",
4249 "version": "0.0.1"
4251 "value": {
4252 "key": {
4253 "name": "Task_Decide3",
4254 "version": "0.0.1"
4256 "inputFields": {
4257 "entry": [
4259 "key": "TestEstablishCaseSelected",
4260 "value": {
4261 "key": "TestEstablishCaseSelected",
4262 "fieldSchemaKey": {
4263 "name": "TestCase",
4264 "version": "0.0.1"
4266 "optional": false
4270 "key": "TestEstablishStateTime",
4271 "value": {
4272 "key": "TestEstablishStateTime",
4273 "fieldSchemaKey": {
4274 "name": "TestTimestamp",
4275 "version": "0.0.1"
4277 "optional": false
4281 "key": "TestMatchCase",
4282 "value": {
4283 "key": "TestMatchCase",
4284 "fieldSchemaKey": {
4285 "name": "TestCase",
4286 "version": "0.0.1"
4288 "optional": false
4292 "key": "TestMatchCaseSelected",
4293 "value": {
4294 "key": "TestMatchCaseSelected",
4295 "fieldSchemaKey": {
4296 "name": "TestCase",
4297 "version": "0.0.1"
4299 "optional": false
4303 "key": "TestMatchStateTime",
4304 "value": {
4305 "key": "TestMatchStateTime",
4306 "fieldSchemaKey": {
4307 "name": "TestTimestamp",
4308 "version": "0.0.1"
4310 "optional": false
4314 "key": "TestSlogan",
4315 "value": {
4316 "key": "TestSlogan",
4317 "fieldSchemaKey": {
4318 "name": "TestSlogan",
4319 "version": "0.0.1"
4321 "optional": false
4325 "key": "TestTemperature",
4326 "value": {
4327 "key": "TestTemperature",
4328 "fieldSchemaKey": {
4329 "name": "TestTemperature",
4330 "version": "0.0.1"
4332 "optional": false
4336 "key": "TestTimestamp",
4337 "value": {
4338 "key": "TestTimestamp",
4339 "fieldSchemaKey": {
4340 "name": "TestTimestamp",
4341 "version": "0.0.1"
4343 "optional": false
4348 "outputFields": {
4349 "entry": [
4351 "key": "TestDecideCaseSelected",
4352 "value": {
4353 "key": "TestDecideCaseSelected",
4354 "fieldSchemaKey": {
4355 "name": "TestCase",
4356 "version": "0.0.1"
4358 "optional": false
4362 "key": "TestDecideStateTime",
4363 "value": {
4364 "key": "TestDecideStateTime",
4365 "fieldSchemaKey": {
4366 "name": "TestTimestamp",
4367 "version": "0.0.1"
4369 "optional": false
4373 "key": "TestEstablishCaseSelected",
4374 "value": {
4375 "key": "TestEstablishCaseSelected",
4376 "fieldSchemaKey": {
4377 "name": "TestCase",
4378 "version": "0.0.1"
4380 "optional": false
4384 "key": "TestEstablishStateTime",
4385 "value": {
4386 "key": "TestEstablishStateTime",
4387 "fieldSchemaKey": {
4388 "name": "TestTimestamp",
4389 "version": "0.0.1"
4391 "optional": false
4395 "key": "TestMatchCase",
4396 "value": {
4397 "key": "TestMatchCase",
4398 "fieldSchemaKey": {
4399 "name": "TestCase",
4400 "version": "0.0.1"
4402 "optional": false
4406 "key": "TestMatchCaseSelected",
4407 "value": {
4408 "key": "TestMatchCaseSelected",
4409 "fieldSchemaKey": {
4410 "name": "TestCase",
4411 "version": "0.0.1"
4413 "optional": false
4417 "key": "TestMatchStateTime",
4418 "value": {
4419 "key": "TestMatchStateTime",
4420 "fieldSchemaKey": {
4421 "name": "TestTimestamp",
4422 "version": "0.0.1"
4424 "optional": false
4428 "key": "TestSlogan",
4429 "value": {
4430 "key": "TestSlogan",
4431 "fieldSchemaKey": {
4432 "name": "TestSlogan",
4433 "version": "0.0.1"
4435 "optional": false
4439 "key": "TestTemperature",
4440 "value": {
4441 "key": "TestTemperature",
4442 "fieldSchemaKey": {
4443 "name": "TestTemperature",
4444 "version": "0.0.1"
4446 "optional": false
4450 "key": "TestTimestamp",
4451 "value": {
4452 "key": "TestTimestamp",
4453 "fieldSchemaKey": {
4454 "name": "TestTimestamp",
4455 "version": "0.0.1"
4457 "optional": false
4462 "taskParameters": {
4463 "entry": [
4465 "key": "Parameter0",
4466 "value": {
4467 "key": {
4468 "parentKeyName": "Task_Decide3",
4469 "parentKeyVersion": "0.0.1",
4470 "parentLocalName": "NULL",
4471 "localName": "Parameter0"
4473 "defaultValue": "DefaultValue0"
4478 "contextAlbumReference": [
4480 "name": "ExternalContextAlbum",
4481 "version": "0.0.1"
4484 "name": "GlobalContextAlbum",
4485 "version": "0.0.1"
4488 "taskLogic": {
4489 "key": "_TaskLogic",
4490 "logicFlavour": "JAVASCRIPT",
4491 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
4496 "key": {
4497 "name": "Task_Establish0",
4498 "version": "0.0.1"
4500 "value": {
4501 "key": {
4502 "name": "Task_Establish0",
4503 "version": "0.0.1"
4505 "inputFields": {
4506 "entry": [
4508 "key": "TestMatchCase",
4509 "value": {
4510 "key": "TestMatchCase",
4511 "fieldSchemaKey": {
4512 "name": "TestCase",
4513 "version": "0.0.1"
4515 "optional": false
4519 "key": "TestMatchCaseSelected",
4520 "value": {
4521 "key": "TestMatchCaseSelected",
4522 "fieldSchemaKey": {
4523 "name": "TestCase",
4524 "version": "0.0.1"
4526 "optional": false
4530 "key": "TestMatchStateTime",
4531 "value": {
4532 "key": "TestMatchStateTime",
4533 "fieldSchemaKey": {
4534 "name": "TestTimestamp",
4535 "version": "0.0.1"
4537 "optional": false
4541 "key": "TestSlogan",
4542 "value": {
4543 "key": "TestSlogan",
4544 "fieldSchemaKey": {
4545 "name": "TestSlogan",
4546 "version": "0.0.1"
4548 "optional": false
4552 "key": "TestTemperature",
4553 "value": {
4554 "key": "TestTemperature",
4555 "fieldSchemaKey": {
4556 "name": "TestTemperature",
4557 "version": "0.0.1"
4559 "optional": false
4563 "key": "TestTimestamp",
4564 "value": {
4565 "key": "TestTimestamp",
4566 "fieldSchemaKey": {
4567 "name": "TestTimestamp",
4568 "version": "0.0.1"
4570 "optional": false
4575 "outputFields": {
4576 "entry": [
4578 "key": "TestEstablishCaseSelected",
4579 "value": {
4580 "key": "TestEstablishCaseSelected",
4581 "fieldSchemaKey": {
4582 "name": "TestCase",
4583 "version": "0.0.1"
4585 "optional": false
4589 "key": "TestEstablishStateTime",
4590 "value": {
4591 "key": "TestEstablishStateTime",
4592 "fieldSchemaKey": {
4593 "name": "TestTimestamp",
4594 "version": "0.0.1"
4596 "optional": false
4600 "key": "TestMatchCase",
4601 "value": {
4602 "key": "TestMatchCase",
4603 "fieldSchemaKey": {
4604 "name": "TestCase",
4605 "version": "0.0.1"
4607 "optional": false
4611 "key": "TestMatchCaseSelected",
4612 "value": {
4613 "key": "TestMatchCaseSelected",
4614 "fieldSchemaKey": {
4615 "name": "TestCase",
4616 "version": "0.0.1"
4618 "optional": false
4622 "key": "TestMatchStateTime",
4623 "value": {
4624 "key": "TestMatchStateTime",
4625 "fieldSchemaKey": {
4626 "name": "TestTimestamp",
4627 "version": "0.0.1"
4629 "optional": false
4633 "key": "TestSlogan",
4634 "value": {
4635 "key": "TestSlogan",
4636 "fieldSchemaKey": {
4637 "name": "TestSlogan",
4638 "version": "0.0.1"
4640 "optional": false
4644 "key": "TestTemperature",
4645 "value": {
4646 "key": "TestTemperature",
4647 "fieldSchemaKey": {
4648 "name": "TestTemperature",
4649 "version": "0.0.1"
4651 "optional": false
4655 "key": "TestTimestamp",
4656 "value": {
4657 "key": "TestTimestamp",
4658 "fieldSchemaKey": {
4659 "name": "TestTimestamp",
4660 "version": "0.0.1"
4662 "optional": false
4667 "taskParameters": {
4668 "entry": [
4670 "key": "Parameter0",
4671 "value": {
4672 "key": {
4673 "parentKeyName": "Task_Establish0",
4674 "parentKeyVersion": "0.0.1",
4675 "parentLocalName": "NULL",
4676 "localName": "Parameter0"
4678 "defaultValue": "DefaultValue0"
4682 "key": "Parameter1",
4683 "value": {
4684 "key": {
4685 "parentKeyName": "Task_Establish0",
4686 "parentKeyVersion": "0.0.1",
4687 "parentLocalName": "NULL",
4688 "localName": "Parameter1"
4690 "defaultValue": "DefaultValue1"
4694 "key": "Parameter2",
4695 "value": {
4696 "key": {
4697 "parentKeyName": "Task_Establish0",
4698 "parentKeyVersion": "0.0.1",
4699 "parentLocalName": "NULL",
4700 "localName": "Parameter2"
4702 "defaultValue": "DefaultValue2"
4707 "contextAlbumReference": [
4709 "name": "ExternalContextAlbum",
4710 "version": "0.0.1"
4713 "name": "GlobalContextAlbum",
4714 "version": "0.0.1"
4717 "name": "Policy0ContextAlbum",
4718 "version": "0.0.1"
4721 "name": "Policy1ContextAlbum",
4722 "version": "0.0.1"
4725 "taskLogic": {
4726 "key": "_TaskLogic",
4727 "logicFlavour": "JAVASCRIPT",
4728 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
4733 "key": {
4734 "name": "Task_Establish1",
4735 "version": "0.0.1"
4737 "value": {
4738 "key": {
4739 "name": "Task_Establish1",
4740 "version": "0.0.1"
4742 "inputFields": {
4743 "entry": [
4745 "key": "TestMatchCase",
4746 "value": {
4747 "key": "TestMatchCase",
4748 "fieldSchemaKey": {
4749 "name": "TestCase",
4750 "version": "0.0.1"
4752 "optional": false
4756 "key": "TestMatchCaseSelected",
4757 "value": {
4758 "key": "TestMatchCaseSelected",
4759 "fieldSchemaKey": {
4760 "name": "TestCase",
4761 "version": "0.0.1"
4763 "optional": false
4767 "key": "TestMatchStateTime",
4768 "value": {
4769 "key": "TestMatchStateTime",
4770 "fieldSchemaKey": {
4771 "name": "TestTimestamp",
4772 "version": "0.0.1"
4774 "optional": false
4778 "key": "TestSlogan",
4779 "value": {
4780 "key": "TestSlogan",
4781 "fieldSchemaKey": {
4782 "name": "TestSlogan",
4783 "version": "0.0.1"
4785 "optional": false
4789 "key": "TestTemperature",
4790 "value": {
4791 "key": "TestTemperature",
4792 "fieldSchemaKey": {
4793 "name": "TestTemperature",
4794 "version": "0.0.1"
4796 "optional": false
4800 "key": "TestTimestamp",
4801 "value": {
4802 "key": "TestTimestamp",
4803 "fieldSchemaKey": {
4804 "name": "TestTimestamp",
4805 "version": "0.0.1"
4807 "optional": false
4812 "outputFields": {
4813 "entry": [
4815 "key": "TestEstablishCaseSelected",
4816 "value": {
4817 "key": "TestEstablishCaseSelected",
4818 "fieldSchemaKey": {
4819 "name": "TestCase",
4820 "version": "0.0.1"
4822 "optional": false
4826 "key": "TestEstablishStateTime",
4827 "value": {
4828 "key": "TestEstablishStateTime",
4829 "fieldSchemaKey": {
4830 "name": "TestTimestamp",
4831 "version": "0.0.1"
4833 "optional": false
4837 "key": "TestMatchCase",
4838 "value": {
4839 "key": "TestMatchCase",
4840 "fieldSchemaKey": {
4841 "name": "TestCase",
4842 "version": "0.0.1"
4844 "optional": false
4848 "key": "TestMatchCaseSelected",
4849 "value": {
4850 "key": "TestMatchCaseSelected",
4851 "fieldSchemaKey": {
4852 "name": "TestCase",
4853 "version": "0.0.1"
4855 "optional": false
4859 "key": "TestMatchStateTime",
4860 "value": {
4861 "key": "TestMatchStateTime",
4862 "fieldSchemaKey": {
4863 "name": "TestTimestamp",
4864 "version": "0.0.1"
4866 "optional": false
4870 "key": "TestSlogan",
4871 "value": {
4872 "key": "TestSlogan",
4873 "fieldSchemaKey": {
4874 "name": "TestSlogan",
4875 "version": "0.0.1"
4877 "optional": false
4881 "key": "TestTemperature",
4882 "value": {
4883 "key": "TestTemperature",
4884 "fieldSchemaKey": {
4885 "name": "TestTemperature",
4886 "version": "0.0.1"
4888 "optional": false
4892 "key": "TestTimestamp",
4893 "value": {
4894 "key": "TestTimestamp",
4895 "fieldSchemaKey": {
4896 "name": "TestTimestamp",
4897 "version": "0.0.1"
4899 "optional": false
4904 "taskParameters": {
4905 "entry": [
4907 "key": "Parameter0",
4908 "value": {
4909 "key": {
4910 "parentKeyName": "Task_Establish1",
4911 "parentKeyVersion": "0.0.1",
4912 "parentLocalName": "NULL",
4913 "localName": "Parameter0"
4915 "defaultValue": "DefaultValue0"
4919 "key": "Parameter1",
4920 "value": {
4921 "key": {
4922 "parentKeyName": "Task_Establish1",
4923 "parentKeyVersion": "0.0.1",
4924 "parentLocalName": "NULL",
4925 "localName": "Parameter1"
4927 "defaultValue": "DefaultValue1"
4932 "contextAlbumReference": [
4934 "name": "GlobalContextAlbum",
4935 "version": "0.0.1"
4938 "name": "Policy0ContextAlbum",
4939 "version": "0.0.1"
4942 "taskLogic": {
4943 "key": "_TaskLogic",
4944 "logicFlavour": "JAVASCRIPT",
4945 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
4950 "key": {
4951 "name": "Task_Establish2",
4952 "version": "0.0.1"
4954 "value": {
4955 "key": {
4956 "name": "Task_Establish2",
4957 "version": "0.0.1"
4959 "inputFields": {
4960 "entry": [
4962 "key": "TestMatchCase",
4963 "value": {
4964 "key": "TestMatchCase",
4965 "fieldSchemaKey": {
4966 "name": "TestCase",
4967 "version": "0.0.1"
4969 "optional": false
4973 "key": "TestMatchCaseSelected",
4974 "value": {
4975 "key": "TestMatchCaseSelected",
4976 "fieldSchemaKey": {
4977 "name": "TestCase",
4978 "version": "0.0.1"
4980 "optional": false
4984 "key": "TestMatchStateTime",
4985 "value": {
4986 "key": "TestMatchStateTime",
4987 "fieldSchemaKey": {
4988 "name": "TestTimestamp",
4989 "version": "0.0.1"
4991 "optional": false
4995 "key": "TestSlogan",
4996 "value": {
4997 "key": "TestSlogan",
4998 "fieldSchemaKey": {
4999 "name": "TestSlogan",
5000 "version": "0.0.1"
5002 "optional": false
5006 "key": "TestTemperature",
5007 "value": {
5008 "key": "TestTemperature",
5009 "fieldSchemaKey": {
5010 "name": "TestTemperature",
5011 "version": "0.0.1"
5013 "optional": false
5017 "key": "TestTimestamp",
5018 "value": {
5019 "key": "TestTimestamp",
5020 "fieldSchemaKey": {
5021 "name": "TestTimestamp",
5022 "version": "0.0.1"
5024 "optional": false
5029 "outputFields": {
5030 "entry": [
5032 "key": "TestEstablishCaseSelected",
5033 "value": {
5034 "key": "TestEstablishCaseSelected",
5035 "fieldSchemaKey": {
5036 "name": "TestCase",
5037 "version": "0.0.1"
5039 "optional": false
5043 "key": "TestEstablishStateTime",
5044 "value": {
5045 "key": "TestEstablishStateTime",
5046 "fieldSchemaKey": {
5047 "name": "TestTimestamp",
5048 "version": "0.0.1"
5050 "optional": false
5054 "key": "TestMatchCase",
5055 "value": {
5056 "key": "TestMatchCase",
5057 "fieldSchemaKey": {
5058 "name": "TestCase",
5059 "version": "0.0.1"
5061 "optional": false
5065 "key": "TestMatchCaseSelected",
5066 "value": {
5067 "key": "TestMatchCaseSelected",
5068 "fieldSchemaKey": {
5069 "name": "TestCase",
5070 "version": "0.0.1"
5072 "optional": false
5076 "key": "TestMatchStateTime",
5077 "value": {
5078 "key": "TestMatchStateTime",
5079 "fieldSchemaKey": {
5080 "name": "TestTimestamp",
5081 "version": "0.0.1"
5083 "optional": false
5087 "key": "TestSlogan",
5088 "value": {
5089 "key": "TestSlogan",
5090 "fieldSchemaKey": {
5091 "name": "TestSlogan",
5092 "version": "0.0.1"
5094 "optional": false
5098 "key": "TestTemperature",
5099 "value": {
5100 "key": "TestTemperature",
5101 "fieldSchemaKey": {
5102 "name": "TestTemperature",
5103 "version": "0.0.1"
5105 "optional": false
5109 "key": "TestTimestamp",
5110 "value": {
5111 "key": "TestTimestamp",
5112 "fieldSchemaKey": {
5113 "name": "TestTimestamp",
5114 "version": "0.0.1"
5116 "optional": false
5121 "taskParameters": {
5122 "entry": [
5124 "key": "Parameter0",
5125 "value": {
5126 "key": {
5127 "parentKeyName": "Task_Establish2",
5128 "parentKeyVersion": "0.0.1",
5129 "parentLocalName": "NULL",
5130 "localName": "Parameter0"
5132 "defaultValue": "DefaultValue0"
5137 "contextAlbumReference": [
5139 "name": "GlobalContextAlbum",
5140 "version": "0.0.1"
5143 "name": "Policy1ContextAlbum",
5144 "version": "0.0.1"
5147 "taskLogic": {
5148 "key": "_TaskLogic",
5149 "logicFlavour": "JAVASCRIPT",
5150 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
5155 "key": {
5156 "name": "Task_Establish3",
5157 "version": "0.0.1"
5159 "value": {
5160 "key": {
5161 "name": "Task_Establish3",
5162 "version": "0.0.1"
5164 "inputFields": {
5165 "entry": [
5167 "key": "TestMatchCase",
5168 "value": {
5169 "key": "TestMatchCase",
5170 "fieldSchemaKey": {
5171 "name": "TestCase",
5172 "version": "0.0.1"
5174 "optional": false
5178 "key": "TestMatchCaseSelected",
5179 "value": {
5180 "key": "TestMatchCaseSelected",
5181 "fieldSchemaKey": {
5182 "name": "TestCase",
5183 "version": "0.0.1"
5185 "optional": false
5189 "key": "TestMatchStateTime",
5190 "value": {
5191 "key": "TestMatchStateTime",
5192 "fieldSchemaKey": {
5193 "name": "TestTimestamp",
5194 "version": "0.0.1"
5196 "optional": false
5200 "key": "TestSlogan",
5201 "value": {
5202 "key": "TestSlogan",
5203 "fieldSchemaKey": {
5204 "name": "TestSlogan",
5205 "version": "0.0.1"
5207 "optional": false
5211 "key": "TestTemperature",
5212 "value": {
5213 "key": "TestTemperature",
5214 "fieldSchemaKey": {
5215 "name": "TestTemperature",
5216 "version": "0.0.1"
5218 "optional": false
5222 "key": "TestTimestamp",
5223 "value": {
5224 "key": "TestTimestamp",
5225 "fieldSchemaKey": {
5226 "name": "TestTimestamp",
5227 "version": "0.0.1"
5229 "optional": false
5234 "outputFields": {
5235 "entry": [
5237 "key": "TestEstablishCaseSelected",
5238 "value": {
5239 "key": "TestEstablishCaseSelected",
5240 "fieldSchemaKey": {
5241 "name": "TestCase",
5242 "version": "0.0.1"
5244 "optional": false
5248 "key": "TestEstablishStateTime",
5249 "value": {
5250 "key": "TestEstablishStateTime",
5251 "fieldSchemaKey": {
5252 "name": "TestTimestamp",
5253 "version": "0.0.1"
5255 "optional": false
5259 "key": "TestMatchCase",
5260 "value": {
5261 "key": "TestMatchCase",
5262 "fieldSchemaKey": {
5263 "name": "TestCase",
5264 "version": "0.0.1"
5266 "optional": false
5270 "key": "TestMatchCaseSelected",
5271 "value": {
5272 "key": "TestMatchCaseSelected",
5273 "fieldSchemaKey": {
5274 "name": "TestCase",
5275 "version": "0.0.1"
5277 "optional": false
5281 "key": "TestMatchStateTime",
5282 "value": {
5283 "key": "TestMatchStateTime",
5284 "fieldSchemaKey": {
5285 "name": "TestTimestamp",
5286 "version": "0.0.1"
5288 "optional": false
5292 "key": "TestSlogan",
5293 "value": {
5294 "key": "TestSlogan",
5295 "fieldSchemaKey": {
5296 "name": "TestSlogan",
5297 "version": "0.0.1"
5299 "optional": false
5303 "key": "TestTemperature",
5304 "value": {
5305 "key": "TestTemperature",
5306 "fieldSchemaKey": {
5307 "name": "TestTemperature",
5308 "version": "0.0.1"
5310 "optional": false
5314 "key": "TestTimestamp",
5315 "value": {
5316 "key": "TestTimestamp",
5317 "fieldSchemaKey": {
5318 "name": "TestTimestamp",
5319 "version": "0.0.1"
5321 "optional": false
5326 "taskParameters": {
5327 "entry": [
5329 "key": "Parameter0",
5330 "value": {
5331 "key": {
5332 "parentKeyName": "Task_Establish3",
5333 "parentKeyVersion": "0.0.1",
5334 "parentLocalName": "NULL",
5335 "localName": "Parameter0"
5337 "defaultValue": "DefaultValue0"
5342 "contextAlbumReference": [
5344 "name": "ExternalContextAlbum",
5345 "version": "0.0.1"
5348 "name": "GlobalContextAlbum",
5349 "version": "0.0.1"
5352 "taskLogic": {
5353 "key": "_TaskLogic",
5354 "logicFlavour": "JAVASCRIPT",
5355 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
5360 "key": {
5361 "name": "Task_Match0",
5362 "version": "0.0.1"
5364 "value": {
5365 "key": {
5366 "name": "Task_Match0",
5367 "version": "0.0.1"
5369 "inputFields": {
5370 "entry": [
5372 "key": "TestMatchCase",
5373 "value": {
5374 "key": "TestMatchCase",
5375 "fieldSchemaKey": {
5376 "name": "TestCase",
5377 "version": "0.0.1"
5379 "optional": false
5383 "key": "TestSlogan",
5384 "value": {
5385 "key": "TestSlogan",
5386 "fieldSchemaKey": {
5387 "name": "TestSlogan",
5388 "version": "0.0.1"
5390 "optional": false
5394 "key": "TestTemperature",
5395 "value": {
5396 "key": "TestTemperature",
5397 "fieldSchemaKey": {
5398 "name": "TestTemperature",
5399 "version": "0.0.1"
5401 "optional": false
5405 "key": "TestTimestamp",
5406 "value": {
5407 "key": "TestTimestamp",
5408 "fieldSchemaKey": {
5409 "name": "TestTimestamp",
5410 "version": "0.0.1"
5412 "optional": false
5417 "outputFields": {
5418 "entry": [
5420 "key": "TestMatchCase",
5421 "value": {
5422 "key": "TestMatchCase",
5423 "fieldSchemaKey": {
5424 "name": "TestCase",
5425 "version": "0.0.1"
5427 "optional": false
5431 "key": "TestMatchCaseSelected",
5432 "value": {
5433 "key": "TestMatchCaseSelected",
5434 "fieldSchemaKey": {
5435 "name": "TestCase",
5436 "version": "0.0.1"
5438 "optional": false
5442 "key": "TestMatchStateTime",
5443 "value": {
5444 "key": "TestMatchStateTime",
5445 "fieldSchemaKey": {
5446 "name": "TestTimestamp",
5447 "version": "0.0.1"
5449 "optional": false
5453 "key": "TestSlogan",
5454 "value": {
5455 "key": "TestSlogan",
5456 "fieldSchemaKey": {
5457 "name": "TestSlogan",
5458 "version": "0.0.1"
5460 "optional": false
5464 "key": "TestTemperature",
5465 "value": {
5466 "key": "TestTemperature",
5467 "fieldSchemaKey": {
5468 "name": "TestTemperature",
5469 "version": "0.0.1"
5471 "optional": false
5475 "key": "TestTimestamp",
5476 "value": {
5477 "key": "TestTimestamp",
5478 "fieldSchemaKey": {
5479 "name": "TestTimestamp",
5480 "version": "0.0.1"
5482 "optional": false
5487 "taskParameters": {
5488 "entry": [
5490 "key": "Parameter0",
5491 "value": {
5492 "key": {
5493 "parentKeyName": "Task_Match0",
5494 "parentKeyVersion": "0.0.1",
5495 "parentLocalName": "NULL",
5496 "localName": "Parameter0"
5498 "defaultValue": "DefaultValue0"
5502 "key": "Parameter1",
5503 "value": {
5504 "key": {
5505 "parentKeyName": "Task_Match0",
5506 "parentKeyVersion": "0.0.1",
5507 "parentLocalName": "NULL",
5508 "localName": "Parameter1"
5510 "defaultValue": "DefaultValue1"
5514 "key": "Parameter2",
5515 "value": {
5516 "key": {
5517 "parentKeyName": "Task_Match0",
5518 "parentKeyVersion": "0.0.1",
5519 "parentLocalName": "NULL",
5520 "localName": "Parameter2"
5522 "defaultValue": "DefaultValue2"
5527 "contextAlbumReference": [
5529 "name": "ExternalContextAlbum",
5530 "version": "0.0.1"
5533 "name": "GlobalContextAlbum",
5534 "version": "0.0.1"
5537 "name": "Policy0ContextAlbum",
5538 "version": "0.0.1"
5541 "name": "Policy1ContextAlbum",
5542 "version": "0.0.1"
5545 "taskLogic": {
5546 "key": "_TaskLogic",
5547 "logicFlavour": "JAVASCRIPT",
5548 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
5553 "key": {
5554 "name": "Task_Match1",
5555 "version": "0.0.1"
5557 "value": {
5558 "key": {
5559 "name": "Task_Match1",
5560 "version": "0.0.1"
5562 "inputFields": {
5563 "entry": [
5565 "key": "TestMatchCase",
5566 "value": {
5567 "key": "TestMatchCase",
5568 "fieldSchemaKey": {
5569 "name": "TestCase",
5570 "version": "0.0.1"
5572 "optional": false
5576 "key": "TestSlogan",
5577 "value": {
5578 "key": "TestSlogan",
5579 "fieldSchemaKey": {
5580 "name": "TestSlogan",
5581 "version": "0.0.1"
5583 "optional": false
5587 "key": "TestTemperature",
5588 "value": {
5589 "key": "TestTemperature",
5590 "fieldSchemaKey": {
5591 "name": "TestTemperature",
5592 "version": "0.0.1"
5594 "optional": false
5598 "key": "TestTimestamp",
5599 "value": {
5600 "key": "TestTimestamp",
5601 "fieldSchemaKey": {
5602 "name": "TestTimestamp",
5603 "version": "0.0.1"
5605 "optional": false
5610 "outputFields": {
5611 "entry": [
5613 "key": "TestMatchCase",
5614 "value": {
5615 "key": "TestMatchCase",
5616 "fieldSchemaKey": {
5617 "name": "TestCase",
5618 "version": "0.0.1"
5620 "optional": false
5624 "key": "TestMatchCaseSelected",
5625 "value": {
5626 "key": "TestMatchCaseSelected",
5627 "fieldSchemaKey": {
5628 "name": "TestCase",
5629 "version": "0.0.1"
5631 "optional": false
5635 "key": "TestMatchStateTime",
5636 "value": {
5637 "key": "TestMatchStateTime",
5638 "fieldSchemaKey": {
5639 "name": "TestTimestamp",
5640 "version": "0.0.1"
5642 "optional": false
5646 "key": "TestSlogan",
5647 "value": {
5648 "key": "TestSlogan",
5649 "fieldSchemaKey": {
5650 "name": "TestSlogan",
5651 "version": "0.0.1"
5653 "optional": false
5657 "key": "TestTemperature",
5658 "value": {
5659 "key": "TestTemperature",
5660 "fieldSchemaKey": {
5661 "name": "TestTemperature",
5662 "version": "0.0.1"
5664 "optional": false
5668 "key": "TestTimestamp",
5669 "value": {
5670 "key": "TestTimestamp",
5671 "fieldSchemaKey": {
5672 "name": "TestTimestamp",
5673 "version": "0.0.1"
5675 "optional": false
5680 "taskParameters": {
5681 "entry": [
5683 "key": "Parameter0",
5684 "value": {
5685 "key": {
5686 "parentKeyName": "Task_Match1",
5687 "parentKeyVersion": "0.0.1",
5688 "parentLocalName": "NULL",
5689 "localName": "Parameter0"
5691 "defaultValue": "DefaultValue0"
5695 "key": "Parameter1",
5696 "value": {
5697 "key": {
5698 "parentKeyName": "Task_Match1",
5699 "parentKeyVersion": "0.0.1",
5700 "parentLocalName": "NULL",
5701 "localName": "Parameter1"
5703 "defaultValue": "DefaultValue1"
5708 "contextAlbumReference": [
5710 "name": "GlobalContextAlbum",
5711 "version": "0.0.1"
5714 "name": "Policy0ContextAlbum",
5715 "version": "0.0.1"
5718 "taskLogic": {
5719 "key": "_TaskLogic",
5720 "logicFlavour": "JAVASCRIPT",
5721 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
5726 "key": {
5727 "name": "Task_Match2",
5728 "version": "0.0.1"
5730 "value": {
5731 "key": {
5732 "name": "Task_Match2",
5733 "version": "0.0.1"
5735 "inputFields": {
5736 "entry": [
5738 "key": "TestMatchCase",
5739 "value": {
5740 "key": "TestMatchCase",
5741 "fieldSchemaKey": {
5742 "name": "TestCase",
5743 "version": "0.0.1"
5745 "optional": false
5749 "key": "TestSlogan",
5750 "value": {
5751 "key": "TestSlogan",
5752 "fieldSchemaKey": {
5753 "name": "TestSlogan",
5754 "version": "0.0.1"
5756 "optional": false
5760 "key": "TestTemperature",
5761 "value": {
5762 "key": "TestTemperature",
5763 "fieldSchemaKey": {
5764 "name": "TestTemperature",
5765 "version": "0.0.1"
5767 "optional": false
5771 "key": "TestTimestamp",
5772 "value": {
5773 "key": "TestTimestamp",
5774 "fieldSchemaKey": {
5775 "name": "TestTimestamp",
5776 "version": "0.0.1"
5778 "optional": false
5783 "outputFields": {
5784 "entry": [
5786 "key": "TestMatchCase",
5787 "value": {
5788 "key": "TestMatchCase",
5789 "fieldSchemaKey": {
5790 "name": "TestCase",
5791 "version": "0.0.1"
5793 "optional": false
5797 "key": "TestMatchCaseSelected",
5798 "value": {
5799 "key": "TestMatchCaseSelected",
5800 "fieldSchemaKey": {
5801 "name": "TestCase",
5802 "version": "0.0.1"
5804 "optional": false
5808 "key": "TestMatchStateTime",
5809 "value": {
5810 "key": "TestMatchStateTime",
5811 "fieldSchemaKey": {
5812 "name": "TestTimestamp",
5813 "version": "0.0.1"
5815 "optional": false
5819 "key": "TestSlogan",
5820 "value": {
5821 "key": "TestSlogan",
5822 "fieldSchemaKey": {
5823 "name": "TestSlogan",
5824 "version": "0.0.1"
5826 "optional": false
5830 "key": "TestTemperature",
5831 "value": {
5832 "key": "TestTemperature",
5833 "fieldSchemaKey": {
5834 "name": "TestTemperature",
5835 "version": "0.0.1"
5837 "optional": false
5841 "key": "TestTimestamp",
5842 "value": {
5843 "key": "TestTimestamp",
5844 "fieldSchemaKey": {
5845 "name": "TestTimestamp",
5846 "version": "0.0.1"
5848 "optional": false
5853 "taskParameters": {
5854 "entry": [
5856 "key": "Parameter0",
5857 "value": {
5858 "key": {
5859 "parentKeyName": "Task_Match2",
5860 "parentKeyVersion": "0.0.1",
5861 "parentLocalName": "NULL",
5862 "localName": "Parameter0"
5864 "defaultValue": "DefaultValue0"
5869 "contextAlbumReference": [
5871 "name": "GlobalContextAlbum",
5872 "version": "0.0.1"
5875 "name": "Policy1ContextAlbum",
5876 "version": "0.0.1"
5879 "taskLogic": {
5880 "key": "_TaskLogic",
5881 "logicFlavour": "JAVASCRIPT",
5882 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
5887 "key": {
5888 "name": "Task_Match3",
5889 "version": "0.0.1"
5891 "value": {
5892 "key": {
5893 "name": "Task_Match3",
5894 "version": "0.0.1"
5896 "inputFields": {
5897 "entry": [
5899 "key": "TestMatchCase",
5900 "value": {
5901 "key": "TestMatchCase",
5902 "fieldSchemaKey": {
5903 "name": "TestCase",
5904 "version": "0.0.1"
5906 "optional": false
5910 "key": "TestSlogan",
5911 "value": {
5912 "key": "TestSlogan",
5913 "fieldSchemaKey": {
5914 "name": "TestSlogan",
5915 "version": "0.0.1"
5917 "optional": false
5921 "key": "TestTemperature",
5922 "value": {
5923 "key": "TestTemperature",
5924 "fieldSchemaKey": {
5925 "name": "TestTemperature",
5926 "version": "0.0.1"
5928 "optional": false
5932 "key": "TestTimestamp",
5933 "value": {
5934 "key": "TestTimestamp",
5935 "fieldSchemaKey": {
5936 "name": "TestTimestamp",
5937 "version": "0.0.1"
5939 "optional": false
5944 "outputFields": {
5945 "entry": [
5947 "key": "TestMatchCase",
5948 "value": {
5949 "key": "TestMatchCase",
5950 "fieldSchemaKey": {
5951 "name": "TestCase",
5952 "version": "0.0.1"
5954 "optional": false
5958 "key": "TestMatchCaseSelected",
5959 "value": {
5960 "key": "TestMatchCaseSelected",
5961 "fieldSchemaKey": {
5962 "name": "TestCase",
5963 "version": "0.0.1"
5965 "optional": false
5969 "key": "TestMatchStateTime",
5970 "value": {
5971 "key": "TestMatchStateTime",
5972 "fieldSchemaKey": {
5973 "name": "TestTimestamp",
5974 "version": "0.0.1"
5976 "optional": false
5980 "key": "TestSlogan",
5981 "value": {
5982 "key": "TestSlogan",
5983 "fieldSchemaKey": {
5984 "name": "TestSlogan",
5985 "version": "0.0.1"
5987 "optional": false
5991 "key": "TestTemperature",
5992 "value": {
5993 "key": "TestTemperature",
5994 "fieldSchemaKey": {
5995 "name": "TestTemperature",
5996 "version": "0.0.1"
5998 "optional": false
6002 "key": "TestTimestamp",
6003 "value": {
6004 "key": "TestTimestamp",
6005 "fieldSchemaKey": {
6006 "name": "TestTimestamp",
6007 "version": "0.0.1"
6009 "optional": false
6014 "taskParameters": {
6015 "entry": [
6017 "key": "Parameter0",
6018 "value": {
6019 "key": {
6020 "parentKeyName": "Task_Match3",
6021 "parentKeyVersion": "0.0.1",
6022 "parentLocalName": "NULL",
6023 "localName": "Parameter0"
6025 "defaultValue": "DefaultValue0"
6030 "contextAlbumReference": [
6032 "name": "ExternalContextAlbum",
6033 "version": "0.0.1"
6036 "name": "GlobalContextAlbum",
6037 "version": "0.0.1"
6040 "taskLogic": {
6041 "key": "_TaskLogic",
6042 "logicFlavour": "JAVASCRIPT",
6043 "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
6050 "events": {
6051 "key": {
6052 "name": "Events",
6053 "version": "0.0.1"
6055 "eventMap": {
6056 "entry": [
6058 "key": {
6059 "name": "Event0000",
6060 "version": "0.0.1"
6062 "value": {
6063 "key": {
6064 "name": "Event0000",
6065 "version": "0.0.1"
6067 "nameSpace": "org.onap.policy.apex.sample.events",
6068 "source": "Outside",
6069 "target": "Match",
6070 "parameter": {
6071 "entry": [
6073 "key": "TestMatchCase",
6074 "value": {
6075 "key": "TestMatchCase",
6076 "fieldSchemaKey": {
6077 "name": "TestCase",
6078 "version": "0.0.1"
6080 "optional": false
6084 "key": "TestSlogan",
6085 "value": {
6086 "key": "TestSlogan",
6087 "fieldSchemaKey": {
6088 "name": "TestSlogan",
6089 "version": "0.0.1"
6091 "optional": false
6095 "key": "TestTemperature",
6096 "value": {
6097 "key": "TestTemperature",
6098 "fieldSchemaKey": {
6099 "name": "TestTemperature",
6100 "version": "0.0.1"
6102 "optional": false
6106 "key": "TestTimestamp",
6107 "value": {
6108 "key": "TestTimestamp",
6109 "fieldSchemaKey": {
6110 "name": "TestTimestamp",
6111 "version": "0.0.1"
6113 "optional": false
6121 "key": {
6122 "name": "Event0001",
6123 "version": "0.0.1"
6125 "value": {
6126 "key": {
6127 "name": "Event0001",
6128 "version": "0.0.1"
6130 "nameSpace": "org.onap.policy.apex.sample.events",
6131 "source": "Match",
6132 "target": "Establish",
6133 "parameter": {
6134 "entry": [
6136 "key": "TestMatchCase",
6137 "value": {
6138 "key": "TestMatchCase",
6139 "fieldSchemaKey": {
6140 "name": "TestCase",
6141 "version": "0.0.1"
6143 "optional": false
6147 "key": "TestMatchCaseSelected",
6148 "value": {
6149 "key": "TestMatchCaseSelected",
6150 "fieldSchemaKey": {
6151 "name": "TestCase",
6152 "version": "0.0.1"
6154 "optional": false
6158 "key": "TestMatchStateTime",
6159 "value": {
6160 "key": "TestMatchStateTime",
6161 "fieldSchemaKey": {
6162 "name": "TestTimestamp",
6163 "version": "0.0.1"
6165 "optional": false
6169 "key": "TestSlogan",
6170 "value": {
6171 "key": "TestSlogan",
6172 "fieldSchemaKey": {
6173 "name": "TestSlogan",
6174 "version": "0.0.1"
6176 "optional": false
6180 "key": "TestTemperature",
6181 "value": {
6182 "key": "TestTemperature",
6183 "fieldSchemaKey": {
6184 "name": "TestTemperature",
6185 "version": "0.0.1"
6187 "optional": false
6191 "key": "TestTimestamp",
6192 "value": {
6193 "key": "TestTimestamp",
6194 "fieldSchemaKey": {
6195 "name": "TestTimestamp",
6196 "version": "0.0.1"
6198 "optional": false
6206 "key": {
6207 "name": "Event0002",
6208 "version": "0.0.1"
6210 "value": {
6211 "key": {
6212 "name": "Event0002",
6213 "version": "0.0.1"
6215 "nameSpace": "org.onap.policy.apex.sample.events",
6216 "source": "Establish",
6217 "target": "Decide",
6218 "parameter": {
6219 "entry": [
6221 "key": "TestEstablishCaseSelected",
6222 "value": {
6223 "key": "TestEstablishCaseSelected",
6224 "fieldSchemaKey": {
6225 "name": "TestCase",
6226 "version": "0.0.1"
6228 "optional": false
6232 "key": "TestEstablishStateTime",
6233 "value": {
6234 "key": "TestEstablishStateTime",
6235 "fieldSchemaKey": {
6236 "name": "TestTimestamp",
6237 "version": "0.0.1"
6239 "optional": false
6243 "key": "TestMatchCase",
6244 "value": {
6245 "key": "TestMatchCase",
6246 "fieldSchemaKey": {
6247 "name": "TestCase",
6248 "version": "0.0.1"
6250 "optional": false
6254 "key": "TestMatchCaseSelected",
6255 "value": {
6256 "key": "TestMatchCaseSelected",
6257 "fieldSchemaKey": {
6258 "name": "TestCase",
6259 "version": "0.0.1"
6261 "optional": false
6265 "key": "TestMatchStateTime",
6266 "value": {
6267 "key": "TestMatchStateTime",
6268 "fieldSchemaKey": {
6269 "name": "TestTimestamp",
6270 "version": "0.0.1"
6272 "optional": false
6276 "key": "TestSlogan",
6277 "value": {
6278 "key": "TestSlogan",
6279 "fieldSchemaKey": {
6280 "name": "TestSlogan",
6281 "version": "0.0.1"
6283 "optional": false
6287 "key": "TestTemperature",
6288 "value": {
6289 "key": "TestTemperature",
6290 "fieldSchemaKey": {
6291 "name": "TestTemperature",
6292 "version": "0.0.1"
6294 "optional": false
6298 "key": "TestTimestamp",
6299 "value": {
6300 "key": "TestTimestamp",
6301 "fieldSchemaKey": {
6302 "name": "TestTimestamp",
6303 "version": "0.0.1"
6305 "optional": false
6313 "key": {
6314 "name": "Event0003",
6315 "version": "0.0.1"
6317 "value": {
6318 "key": {
6319 "name": "Event0003",
6320 "version": "0.0.1"
6322 "nameSpace": "org.onap.policy.apex.sample.events",
6323 "source": "Decide",
6324 "target": "Act",
6325 "parameter": {
6326 "entry": [
6328 "key": "TestDecideCaseSelected",
6329 "value": {
6330 "key": "TestDecideCaseSelected",
6331 "fieldSchemaKey": {
6332 "name": "TestCase",
6333 "version": "0.0.1"
6335 "optional": false
6339 "key": "TestDecideStateTime",
6340 "value": {
6341 "key": "TestDecideStateTime",
6342 "fieldSchemaKey": {
6343 "name": "TestTimestamp",
6344 "version": "0.0.1"
6346 "optional": false
6350 "key": "TestEstablishCaseSelected",
6351 "value": {
6352 "key": "TestEstablishCaseSelected",
6353 "fieldSchemaKey": {
6354 "name": "TestCase",
6355 "version": "0.0.1"
6357 "optional": false
6361 "key": "TestEstablishStateTime",
6362 "value": {
6363 "key": "TestEstablishStateTime",
6364 "fieldSchemaKey": {
6365 "name": "TestTimestamp",
6366 "version": "0.0.1"
6368 "optional": false
6372 "key": "TestMatchCase",
6373 "value": {
6374 "key": "TestMatchCase",
6375 "fieldSchemaKey": {
6376 "name": "TestCase",
6377 "version": "0.0.1"
6379 "optional": false
6383 "key": "TestMatchCaseSelected",
6384 "value": {
6385 "key": "TestMatchCaseSelected",
6386 "fieldSchemaKey": {
6387 "name": "TestCase",
6388 "version": "0.0.1"
6390 "optional": false
6394 "key": "TestMatchStateTime",
6395 "value": {
6396 "key": "TestMatchStateTime",
6397 "fieldSchemaKey": {
6398 "name": "TestTimestamp",
6399 "version": "0.0.1"
6401 "optional": false
6405 "key": "TestSlogan",
6406 "value": {
6407 "key": "TestSlogan",
6408 "fieldSchemaKey": {
6409 "name": "TestSlogan",
6410 "version": "0.0.1"
6412 "optional": false
6416 "key": "TestTemperature",
6417 "value": {
6418 "key": "TestTemperature",
6419 "fieldSchemaKey": {
6420 "name": "TestTemperature",
6421 "version": "0.0.1"
6423 "optional": false
6427 "key": "TestTimestamp",
6428 "value": {
6429 "key": "TestTimestamp",
6430 "fieldSchemaKey": {
6431 "name": "TestTimestamp",
6432 "version": "0.0.1"
6434 "optional": false
6442 "key": {
6443 "name": "Event0004",
6444 "version": "0.0.1"
6446 "value": {
6447 "key": {
6448 "name": "Event0004",
6449 "version": "0.0.1"
6451 "nameSpace": "org.onap.policy.apex.sample.events",
6452 "source": "Act",
6453 "target": "Outside",
6454 "parameter": {
6455 "entry": [
6457 "key": "TestActCaseSelected",
6458 "value": {
6459 "key": "TestActCaseSelected",
6460 "fieldSchemaKey": {
6461 "name": "TestCase",
6462 "version": "0.0.1"
6464 "optional": false
6468 "key": "TestActStateTime",
6469 "value": {
6470 "key": "TestActStateTime",
6471 "fieldSchemaKey": {
6472 "name": "TestTimestamp",
6473 "version": "0.0.1"
6475 "optional": false
6479 "key": "TestDecideCaseSelected",
6480 "value": {
6481 "key": "TestDecideCaseSelected",
6482 "fieldSchemaKey": {
6483 "name": "TestCase",
6484 "version": "0.0.1"
6486 "optional": false
6490 "key": "TestDecideStateTime",
6491 "value": {
6492 "key": "TestDecideStateTime",
6493 "fieldSchemaKey": {
6494 "name": "TestTimestamp",
6495 "version": "0.0.1"
6497 "optional": false
6501 "key": "TestEstablishCaseSelected",
6502 "value": {
6503 "key": "TestEstablishCaseSelected",
6504 "fieldSchemaKey": {
6505 "name": "TestCase",
6506 "version": "0.0.1"
6508 "optional": false
6512 "key": "TestEstablishStateTime",
6513 "value": {
6514 "key": "TestEstablishStateTime",
6515 "fieldSchemaKey": {
6516 "name": "TestTimestamp",
6517 "version": "0.0.1"
6519 "optional": false
6523 "key": "TestMatchCase",
6524 "value": {
6525 "key": "TestMatchCase",
6526 "fieldSchemaKey": {
6527 "name": "TestCase",
6528 "version": "0.0.1"
6530 "optional": false
6534 "key": "TestMatchCaseSelected",
6535 "value": {
6536 "key": "TestMatchCaseSelected",
6537 "fieldSchemaKey": {
6538 "name": "TestCase",
6539 "version": "0.0.1"
6541 "optional": false
6545 "key": "TestMatchStateTime",
6546 "value": {
6547 "key": "TestMatchStateTime",
6548 "fieldSchemaKey": {
6549 "name": "TestTimestamp",
6550 "version": "0.0.1"
6552 "optional": false
6556 "key": "TestSlogan",
6557 "value": {
6558 "key": "TestSlogan",
6559 "fieldSchemaKey": {
6560 "name": "TestSlogan",
6561 "version": "0.0.1"
6563 "optional": false
6567 "key": "TestTemperature",
6568 "value": {
6569 "key": "TestTemperature",
6570 "fieldSchemaKey": {
6571 "name": "TestTemperature",
6572 "version": "0.0.1"
6574 "optional": false
6578 "key": "TestTimestamp",
6579 "value": {
6580 "key": "TestTimestamp",
6581 "fieldSchemaKey": {
6582 "name": "TestTimestamp",
6583 "version": "0.0.1"
6585 "optional": false
6593 "key": {
6594 "name": "Event0100",
6595 "version": "0.0.1"
6597 "value": {
6598 "key": {
6599 "name": "Event0100",
6600 "version": "0.0.1"
6602 "nameSpace": "org.onap.policy.apex.sample.events",
6603 "source": "Outside",
6604 "target": "Match",
6605 "parameter": {
6606 "entry": [
6608 "key": "TestMatchCase",
6609 "value": {
6610 "key": "TestMatchCase",
6611 "fieldSchemaKey": {
6612 "name": "TestCase",
6613 "version": "0.0.1"
6615 "optional": false
6619 "key": "TestSlogan",
6620 "value": {
6621 "key": "TestSlogan",
6622 "fieldSchemaKey": {
6623 "name": "TestSlogan",
6624 "version": "0.0.1"
6626 "optional": false
6630 "key": "TestTemperature",
6631 "value": {
6632 "key": "TestTemperature",
6633 "fieldSchemaKey": {
6634 "name": "TestTemperature",
6635 "version": "0.0.1"
6637 "optional": false
6641 "key": "TestTimestamp",
6642 "value": {
6643 "key": "TestTimestamp",
6644 "fieldSchemaKey": {
6645 "name": "TestTimestamp",
6646 "version": "0.0.1"
6648 "optional": false
6656 "key": {
6657 "name": "Event0101",
6658 "version": "0.0.1"
6660 "value": {
6661 "key": {
6662 "name": "Event0101",
6663 "version": "0.0.1"
6665 "nameSpace": "org.onap.policy.apex.sample.events",
6666 "source": "Match",
6667 "target": "Establish",
6668 "parameter": {
6669 "entry": [
6671 "key": "TestMatchCase",
6672 "value": {
6673 "key": "TestMatchCase",
6674 "fieldSchemaKey": {
6675 "name": "TestCase",
6676 "version": "0.0.1"
6678 "optional": false
6682 "key": "TestMatchCaseSelected",
6683 "value": {
6684 "key": "TestMatchCaseSelected",
6685 "fieldSchemaKey": {
6686 "name": "TestCase",
6687 "version": "0.0.1"
6689 "optional": false
6693 "key": "TestMatchStateTime",
6694 "value": {
6695 "key": "TestMatchStateTime",
6696 "fieldSchemaKey": {
6697 "name": "TestTimestamp",
6698 "version": "0.0.1"
6700 "optional": false
6704 "key": "TestSlogan",
6705 "value": {
6706 "key": "TestSlogan",
6707 "fieldSchemaKey": {
6708 "name": "TestSlogan",
6709 "version": "0.0.1"
6711 "optional": false
6715 "key": "TestTemperature",
6716 "value": {
6717 "key": "TestTemperature",
6718 "fieldSchemaKey": {
6719 "name": "TestTemperature",
6720 "version": "0.0.1"
6722 "optional": false
6726 "key": "TestTimestamp",
6727 "value": {
6728 "key": "TestTimestamp",
6729 "fieldSchemaKey": {
6730 "name": "TestTimestamp",
6731 "version": "0.0.1"
6733 "optional": false
6741 "key": {
6742 "name": "Event0102",
6743 "version": "0.0.1"
6745 "value": {
6746 "key": {
6747 "name": "Event0102",
6748 "version": "0.0.1"
6750 "nameSpace": "org.onap.policy.apex.sample.events",
6751 "source": "Establish",
6752 "target": "Decide",
6753 "parameter": {
6754 "entry": [
6756 "key": "TestEstablishCaseSelected",
6757 "value": {
6758 "key": "TestEstablishCaseSelected",
6759 "fieldSchemaKey": {
6760 "name": "TestCase",
6761 "version": "0.0.1"
6763 "optional": false
6767 "key": "TestEstablishStateTime",
6768 "value": {
6769 "key": "TestEstablishStateTime",
6770 "fieldSchemaKey": {
6771 "name": "TestTimestamp",
6772 "version": "0.0.1"
6774 "optional": false
6778 "key": "TestMatchCase",
6779 "value": {
6780 "key": "TestMatchCase",
6781 "fieldSchemaKey": {
6782 "name": "TestCase",
6783 "version": "0.0.1"
6785 "optional": false
6789 "key": "TestMatchCaseSelected",
6790 "value": {
6791 "key": "TestMatchCaseSelected",
6792 "fieldSchemaKey": {
6793 "name": "TestCase",
6794 "version": "0.0.1"
6796 "optional": false
6800 "key": "TestMatchStateTime",
6801 "value": {
6802 "key": "TestMatchStateTime",
6803 "fieldSchemaKey": {
6804 "name": "TestTimestamp",
6805 "version": "0.0.1"
6807 "optional": false
6811 "key": "TestSlogan",
6812 "value": {
6813 "key": "TestSlogan",
6814 "fieldSchemaKey": {
6815 "name": "TestSlogan",
6816 "version": "0.0.1"
6818 "optional": false
6822 "key": "TestTemperature",
6823 "value": {
6824 "key": "TestTemperature",
6825 "fieldSchemaKey": {
6826 "name": "TestTemperature",
6827 "version": "0.0.1"
6829 "optional": false
6833 "key": "TestTimestamp",
6834 "value": {
6835 "key": "TestTimestamp",
6836 "fieldSchemaKey": {
6837 "name": "TestTimestamp",
6838 "version": "0.0.1"
6840 "optional": false
6848 "key": {
6849 "name": "Event0103",
6850 "version": "0.0.1"
6852 "value": {
6853 "key": {
6854 "name": "Event0103",
6855 "version": "0.0.1"
6857 "nameSpace": "org.onap.policy.apex.sample.events",
6858 "source": "Decide",
6859 "target": "Act",
6860 "parameter": {
6861 "entry": [
6863 "key": "TestDecideCaseSelected",
6864 "value": {
6865 "key": "TestDecideCaseSelected",
6866 "fieldSchemaKey": {
6867 "name": "TestCase",
6868 "version": "0.0.1"
6870 "optional": false
6874 "key": "TestDecideStateTime",
6875 "value": {
6876 "key": "TestDecideStateTime",
6877 "fieldSchemaKey": {
6878 "name": "TestTimestamp",
6879 "version": "0.0.1"
6881 "optional": false
6885 "key": "TestEstablishCaseSelected",
6886 "value": {
6887 "key": "TestEstablishCaseSelected",
6888 "fieldSchemaKey": {
6889 "name": "TestCase",
6890 "version": "0.0.1"
6892 "optional": false
6896 "key": "TestEstablishStateTime",
6897 "value": {
6898 "key": "TestEstablishStateTime",
6899 "fieldSchemaKey": {
6900 "name": "TestTimestamp",
6901 "version": "0.0.1"
6903 "optional": false
6907 "key": "TestMatchCase",
6908 "value": {
6909 "key": "TestMatchCase",
6910 "fieldSchemaKey": {
6911 "name": "TestCase",
6912 "version": "0.0.1"
6914 "optional": false
6918 "key": "TestMatchCaseSelected",
6919 "value": {
6920 "key": "TestMatchCaseSelected",
6921 "fieldSchemaKey": {
6922 "name": "TestCase",
6923 "version": "0.0.1"
6925 "optional": false
6929 "key": "TestMatchStateTime",
6930 "value": {
6931 "key": "TestMatchStateTime",
6932 "fieldSchemaKey": {
6933 "name": "TestTimestamp",
6934 "version": "0.0.1"
6936 "optional": false
6940 "key": "TestSlogan",
6941 "value": {
6942 "key": "TestSlogan",
6943 "fieldSchemaKey": {
6944 "name": "TestSlogan",
6945 "version": "0.0.1"
6947 "optional": false
6951 "key": "TestTemperature",
6952 "value": {
6953 "key": "TestTemperature",
6954 "fieldSchemaKey": {
6955 "name": "TestTemperature",
6956 "version": "0.0.1"
6958 "optional": false
6962 "key": "TestTimestamp",
6963 "value": {
6964 "key": "TestTimestamp",
6965 "fieldSchemaKey": {
6966 "name": "TestTimestamp",
6967 "version": "0.0.1"
6969 "optional": false
6977 "key": {
6978 "name": "Event0104",
6979 "version": "0.0.1"
6981 "value": {
6982 "key": {
6983 "name": "Event0104",
6984 "version": "0.0.1"
6986 "nameSpace": "org.onap.policy.apex.sample.events",
6987 "source": "Act",
6988 "target": "Outside",
6989 "parameter": {
6990 "entry": [
6992 "key": "TestActCaseSelected",
6993 "value": {
6994 "key": "TestActCaseSelected",
6995 "fieldSchemaKey": {
6996 "name": "TestCase",
6997 "version": "0.0.1"
6999 "optional": false
7003 "key": "TestActStateTime",
7004 "value": {
7005 "key": "TestActStateTime",
7006 "fieldSchemaKey": {
7007 "name": "TestTimestamp",
7008 "version": "0.0.1"
7010 "optional": false
7014 "key": "TestDecideCaseSelected",
7015 "value": {
7016 "key": "TestDecideCaseSelected",
7017 "fieldSchemaKey": {
7018 "name": "TestCase",
7019 "version": "0.0.1"
7021 "optional": false
7025 "key": "TestDecideStateTime",
7026 "value": {
7027 "key": "TestDecideStateTime",
7028 "fieldSchemaKey": {
7029 "name": "TestTimestamp",
7030 "version": "0.0.1"
7032 "optional": false
7036 "key": "TestEstablishCaseSelected",
7037 "value": {
7038 "key": "TestEstablishCaseSelected",
7039 "fieldSchemaKey": {
7040 "name": "TestCase",
7041 "version": "0.0.1"
7043 "optional": false
7047 "key": "TestEstablishStateTime",
7048 "value": {
7049 "key": "TestEstablishStateTime",
7050 "fieldSchemaKey": {
7051 "name": "TestTimestamp",
7052 "version": "0.0.1"
7054 "optional": false
7058 "key": "TestMatchCase",
7059 "value": {
7060 "key": "TestMatchCase",
7061 "fieldSchemaKey": {
7062 "name": "TestCase",
7063 "version": "0.0.1"
7065 "optional": false
7069 "key": "TestMatchCaseSelected",
7070 "value": {
7071 "key": "TestMatchCaseSelected",
7072 "fieldSchemaKey": {
7073 "name": "TestCase",
7074 "version": "0.0.1"
7076 "optional": false
7080 "key": "TestMatchStateTime",
7081 "value": {
7082 "key": "TestMatchStateTime",
7083 "fieldSchemaKey": {
7084 "name": "TestTimestamp",
7085 "version": "0.0.1"
7087 "optional": false
7091 "key": "TestSlogan",
7092 "value": {
7093 "key": "TestSlogan",
7094 "fieldSchemaKey": {
7095 "name": "TestSlogan",
7096 "version": "0.0.1"
7098 "optional": false
7102 "key": "TestTemperature",
7103 "value": {
7104 "key": "TestTemperature",
7105 "fieldSchemaKey": {
7106 "name": "TestTemperature",
7107 "version": "0.0.1"
7109 "optional": false
7113 "key": "TestTimestamp",
7114 "value": {
7115 "key": "TestTimestamp",
7116 "fieldSchemaKey": {
7117 "name": "TestTimestamp",
7118 "version": "0.0.1"
7120 "optional": false
7130 "albums": {
7131 "key": {
7132 "name": "Context",
7133 "version": "0.0.1"
7135 "albums": {
7136 "entry": [
7138 "key": {
7139 "name": "ExternalContextAlbum",
7140 "version": "0.0.1"
7142 "value": {
7143 "key": {
7144 "name": "ExternalContextAlbum",
7145 "version": "0.0.1"
7147 "scope": "EXTERNAL",
7148 "isWritable": false,
7149 "itemSchema": {
7150 "name": "TestExternalContextItem",
7151 "version": "0.0.1"
7156 "key": {
7157 "name": "GlobalContextAlbum",
7158 "version": "0.0.1"
7160 "value": {
7161 "key": {
7162 "name": "GlobalContextAlbum",
7163 "version": "0.0.1"
7165 "scope": "GLOBAL",
7166 "isWritable": true,
7167 "itemSchema": {
7168 "name": "TestGlobalContextItem",
7169 "version": "0.0.1"
7174 "key": {
7175 "name": "Policy0ContextAlbum",
7176 "version": "0.0.1"
7178 "value": {
7179 "key": {
7180 "name": "Policy0ContextAlbum",
7181 "version": "0.0.1"
7183 "scope": "APPLICATION",
7184 "isWritable": true,
7185 "itemSchema": {
7186 "name": "TestPolicyContextItem",
7187 "version": "0.0.1"
7192 "key": {
7193 "name": "Policy1ContextAlbum",
7194 "version": "0.0.1"
7196 "value": {
7197 "key": {
7198 "name": "Policy1ContextAlbum",
7199 "version": "0.0.1"
7201 "scope": "APPLICATION",
7202 "isWritable": true,
7203 "itemSchema": {
7204 "name": "TestPolicyContextItem",
7205 "version": "0.0.1"
7212 "schemas": {
7213 "key": {
7214 "name": "TestDatatypes",
7215 "version": "0.0.1"
7217 "schemas": {
7218 "entry": [
7220 "key": {
7221 "name": "TestCase",
7222 "version": "0.0.1"
7224 "value": {
7225 "key": {
7226 "name": "TestCase",
7227 "version": "0.0.1"
7229 "schemaFlavour": "Java",
7230 "schemaDefinition": "java.lang.Byte"
7234 "key": {
7235 "name": "TestContextItem000",
7236 "version": "0.0.1"
7238 "value": {
7239 "key": {
7240 "name": "TestContextItem000",
7241 "version": "0.0.1"
7243 "schemaFlavour": "Java",
7244 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem000"
7248 "key": {
7249 "name": "TestContextItem001",
7250 "version": "0.0.1"
7252 "value": {
7253 "key": {
7254 "name": "TestContextItem001",
7255 "version": "0.0.1"
7257 "schemaFlavour": "Java",
7258 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem001"
7262 "key": {
7263 "name": "TestContextItem002",
7264 "version": "0.0.1"
7266 "value": {
7267 "key": {
7268 "name": "TestContextItem002",
7269 "version": "0.0.1"
7271 "schemaFlavour": "Java",
7272 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem002"
7276 "key": {
7277 "name": "TestContextItem003",
7278 "version": "0.0.1"
7280 "value": {
7281 "key": {
7282 "name": "TestContextItem003",
7283 "version": "0.0.1"
7285 "schemaFlavour": "Java",
7286 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem003"
7290 "key": {
7291 "name": "TestContextItem004",
7292 "version": "0.0.1"
7294 "value": {
7295 "key": {
7296 "name": "TestContextItem004",
7297 "version": "0.0.1"
7299 "schemaFlavour": "Java",
7300 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem004"
7304 "key": {
7305 "name": "TestContextItem005",
7306 "version": "0.0.1"
7308 "value": {
7309 "key": {
7310 "name": "TestContextItem005",
7311 "version": "0.0.1"
7313 "schemaFlavour": "Java",
7314 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem005"
7318 "key": {
7319 "name": "TestContextItem006",
7320 "version": "0.0.1"
7322 "value": {
7323 "key": {
7324 "name": "TestContextItem006",
7325 "version": "0.0.1"
7327 "schemaFlavour": "Java",
7328 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem006"
7332 "key": {
7333 "name": "TestContextItem007",
7334 "version": "0.0.1"
7336 "value": {
7337 "key": {
7338 "name": "TestContextItem007",
7339 "version": "0.0.1"
7341 "schemaFlavour": "Java",
7342 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem007"
7346 "key": {
7347 "name": "TestContextItem008",
7348 "version": "0.0.1"
7350 "value": {
7351 "key": {
7352 "name": "TestContextItem008",
7353 "version": "0.0.1"
7355 "schemaFlavour": "Java",
7356 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem008"
7360 "key": {
7361 "name": "TestContextItem009",
7362 "version": "0.0.1"
7364 "value": {
7365 "key": {
7366 "name": "TestContextItem009",
7367 "version": "0.0.1"
7369 "schemaFlavour": "Java",
7370 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem009"
7374 "key": {
7375 "name": "TestContextItem00A",
7376 "version": "0.0.1"
7378 "value": {
7379 "key": {
7380 "name": "TestContextItem00A",
7381 "version": "0.0.1"
7383 "schemaFlavour": "Java",
7384 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00A"
7388 "key": {
7389 "name": "TestContextItem00B",
7390 "version": "0.0.1"
7392 "value": {
7393 "key": {
7394 "name": "TestContextItem00B",
7395 "version": "0.0.1"
7397 "schemaFlavour": "Java",
7398 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00B"
7402 "key": {
7403 "name": "TestContextItem00C",
7404 "version": "0.0.1"
7406 "value": {
7407 "key": {
7408 "name": "TestContextItem00C",
7409 "version": "0.0.1"
7411 "schemaFlavour": "Java",
7412 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00C"
7416 "key": {
7417 "name": "TestExternalContextItem",
7418 "version": "0.0.1"
7420 "value": {
7421 "key": {
7422 "name": "TestExternalContextItem",
7423 "version": "0.0.1"
7425 "schemaFlavour": "Java",
7426 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestExternalContextItem"
7430 "key": {
7431 "name": "TestGlobalContextItem",
7432 "version": "0.0.1"
7434 "value": {
7435 "key": {
7436 "name": "TestGlobalContextItem",
7437 "version": "0.0.1"
7439 "schemaFlavour": "Java",
7440 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem"
7444 "key": {
7445 "name": "TestPolicyContextItem",
7446 "version": "0.0.1"
7448 "value": {
7449 "key": {
7450 "name": "TestPolicyContextItem",
7451 "version": "0.0.1"
7453 "schemaFlavour": "Java",
7454 "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem"
7458 "key": {
7459 "name": "TestSlogan",
7460 "version": "0.0.1"
7462 "value": {
7463 "key": {
7464 "name": "TestSlogan",
7465 "version": "0.0.1"
7467 "schemaFlavour": "Java",
7468 "schemaDefinition": "java.lang.String"
7472 "key": {
7473 "name": "TestTemperature",
7474 "version": "0.0.1"
7476 "value": {
7477 "key": {
7478 "name": "TestTemperature",
7479 "version": "0.0.1"
7481 "schemaFlavour": "Java",
7482 "schemaDefinition": "java.lang.Double"
7486 "key": {
7487 "name": "TestTimestamp",
7488 "version": "0.0.1"
7490 "value": {
7491 "key": {
7492 "name": "TestTimestamp",
7493 "version": "0.0.1"
7495 "schemaFlavour": "Java",
7496 "schemaDefinition": "java.lang.Long"
7504 "engineParameters": {
7505 "executorParameters": {
7506 "JAVASCRIPT": {
7507 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
7512 "eventInputParameters": {
7513 "FirstConsumer": {
7514 "carrierTechnologyParameters": {
7515 "carrierTechnology": "RESTSERVER",
7516 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters",
7517 "parameters": {
7518 "standalone": true,
7519 "host": "0.0.0.0",
7520 "port": 23324
7523 "eventProtocolParameters": {
7524 "eventProtocol": "JSON"
7526 "synchronousMode": true,
7527 "synchronousPeer": "FirstProducer",
7528 "synchronousTimeout": 2000
7531 "eventOutputParameters": {
7532 "FirstProducer": {
7533 "carrierTechnologyParameters": {
7534 "carrierTechnology": "RESTSERVER",
7535 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters"
7537 "eventProtocolParameters": {
7538 "eventProtocol": "JSON"
7540 "synchronousMode": true,
7541 "synchronousPeer": "FirstConsumer",
7542 "synchronousTimeout": 2000
7552 <stringProp name="Argument.metadata">=</stringProp>
7556 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7557 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7558 <stringProp name="HTTPSampler.protocol">https</stringProp>
7559 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7560 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies</stringProp>
7561 <stringProp name="HTTPSampler.method">POST</stringProp>
7562 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7563 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7564 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7565 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7566 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7567 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7568 <stringProp name="HTTPSampler.response_timeout"></stringProp>
7571 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7572 <collectionProp name="Asserion.test_strings">
7573 <stringProp name="49586">200</stringProp>
7575 <stringProp name="Assertion.custom_message"></stringProp>
7576 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7577 <boolProp name="Assertion.assume_success">false</boolProp>
7578 <intProp name="Assertion.test_type">1</intProp>
7579 </ResponseAssertion>
7582 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Nodetemplate metadata for sampleGroup policy" enabled="true">
7583 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
7584 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
7585 <collectionProp name="Arguments.arguments">
7586 <elementProp name="" elementType="HTTPArgument">
7587 <boolProp name="HTTPArgument.always_encode">false</boolProp>
7588 <stringProp name="Argument.value">{
7589 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
7590 "node_types": {
7591 "org.onap.nodetypes.policy.MetadataSet": {
7592 "derived_from": "tosca.nodetypes.Root",
7593 "version": "1.0.0"
7596 "topology_template": {
7597 "node_templates": {
7598 "apex.metadata.pnf": {
7599 "version": "1.0.0",
7600 "type": "org.onap.nodetypes.policy.MetadataSet",
7601 "type_version": "1.0.0",
7602 "description": "Metadata set for apex pnf Policy",
7603 "metadata": {
7604 "apexPolicyModel": {
7605 "key": {
7606 "name": "onap.policies.apex.Simplecontrolloop",
7607 "version": "0.0.1"
7609 "keyInformation": {
7610 "key": {
7611 "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
7612 "version": "0.0.1"
7614 "keyInfoMap": {
7615 "entry": [
7617 "key": {
7618 "name": "SimpleBooleanType",
7619 "version": "0.0.1"
7621 "value": {
7622 "key": {
7623 "name": "SimpleBooleanType",
7624 "version": "0.0.1"
7626 "UUID": "7218fb2f-59e3-321d-9ae1-bc97b19eb4ae",
7627 "description": "Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""
7631 "key": {
7632 "name": "SimpleCL_AAIFailureResponseEvent",
7633 "version": "0.0.1"
7635 "value": {
7636 "key": {
7637 "name": "SimpleCL_AAIFailureResponseEvent",
7638 "version": "0.0.1"
7640 "UUID": "c8a29e27-0a15-354a-84f9-4c7f207e5c81",
7641 "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""
7645 "key": {
7646 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
7647 "version": "0.0.1"
7649 "value": {
7650 "key": {
7651 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
7652 "version": "0.0.1"
7654 "UUID": "5e843cee-0180-39b9-8989-180b2ffe11c0",
7655 "description": "Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\""
7659 "key": {
7660 "name": "SimpleCL_AAIRequestErrorType",
7661 "version": "0.0.1"
7663 "value": {
7664 "key": {
7665 "name": "SimpleCL_AAIRequestErrorType",
7666 "version": "0.0.1"
7668 "UUID": "90291c92-9b27-3cd9-8720-db572419c048",
7669 "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""
7673 "key": {
7674 "name": "SimpleCL_AAIRequestEvent",
7675 "version": "0.0.1"
7677 "value": {
7678 "key": {
7679 "name": "SimpleCL_AAIRequestEvent",
7680 "version": "0.0.1"
7682 "UUID": "7b7e6751-4e0b-389d-98c0-5567bbc0294c",
7683 "description": "Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""
7687 "key": {
7688 "name": "SimpleCL_AAISuccessResponseEvent",
7689 "version": "0.0.1"
7691 "value": {
7692 "key": {
7693 "name": "SimpleCL_AAISuccessResponseEvent",
7694 "version": "0.0.1"
7696 "UUID": "63d5680c-14ef-3505-8d34-ebb646bba07b",
7697 "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""
7701 "key": {
7702 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
7703 "version": "0.0.1"
7705 "value": {
7706 "key": {
7707 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
7708 "version": "0.0.1"
7710 "UUID": "a84ca97d-6e94-39a2-91f9-59a6c9aa435e",
7711 "description": "Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\""
7715 "key": {
7716 "name": "SimpleCL_CDSActionIdentifiersType",
7717 "version": "0.0.1"
7719 "value": {
7720 "key": {
7721 "name": "SimpleCL_CDSActionIdentifiersType",
7722 "version": "0.0.1"
7724 "UUID": "0e2ee622-7fd3-3e49-82e2-539c4f5e9624",
7725 "description": "Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""
7729 "key": {
7730 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
7731 "version": "0.0.1"
7733 "value": {
7734 "key": {
7735 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
7736 "version": "0.0.1"
7738 "UUID": "e84f8682-ea33-3ad0-8626-8bc4634581fc",
7739 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""
7743 "key": {
7744 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
7745 "version": "0.0.1"
7747 "value": {
7748 "key": {
7749 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
7750 "version": "0.0.1"
7752 "UUID": "a252f835-2479-38ef-9ef4-20af62725752",
7753 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""
7757 "key": {
7758 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
7759 "version": "0.0.1"
7761 "value": {
7762 "key": {
7763 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
7764 "version": "0.0.1"
7766 "UUID": "cfc46ea9-b8c1-38dd-ac9c-304c916daf34",
7767 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\""
7771 "key": {
7772 "name": "SimpleCL_CDSConfigModifyRequestEvent",
7773 "version": "0.0.1"
7775 "value": {
7776 "key": {
7777 "name": "SimpleCL_CDSConfigModifyRequestEvent",
7778 "version": "0.0.1"
7780 "UUID": "1e7095d6-a455-3f89-acae-486e35d7e311",
7781 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""
7785 "key": {
7786 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
7787 "version": "0.0.1"
7789 "value": {
7790 "key": {
7791 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
7792 "version": "0.0.1"
7794 "UUID": "d22ea83b-695d-3da9-b9f5-41f16ca433bf",
7795 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""
7799 "key": {
7800 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
7801 "version": "0.0.1"
7803 "value": {
7804 "key": {
7805 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
7806 "version": "0.0.1"
7808 "UUID": "e9fe2e40-1f0d-30dd-8b9e-885695878693",
7809 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""
7813 "key": {
7814 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
7815 "version": "0.0.1"
7817 "value": {
7818 "key": {
7819 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
7820 "version": "0.0.1"
7822 "UUID": "5e04fa76-0a17-38a9-8524-23b2d1a23fa5",
7823 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""
7827 "key": {
7828 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
7829 "version": "0.0.1"
7831 "value": {
7832 "key": {
7833 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
7834 "version": "0.0.1"
7836 "UUID": "15866380-40f5-3f8e-87d9-13747a36d352",
7837 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""
7841 "key": {
7842 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
7843 "version": "0.0.1"
7845 "value": {
7846 "key": {
7847 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
7848 "version": "0.0.1"
7850 "UUID": "2c3d76ce-dd42-32ac-a397-ab418534e1cf",
7851 "description": "Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\""
7855 "key": {
7856 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
7857 "version": "0.0.1"
7859 "value": {
7860 "key": {
7861 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
7862 "version": "0.0.1"
7864 "UUID": "b99c44da-dae7-3c96-b528-58852537d063",
7865 "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""
7869 "key": {
7870 "name": "SimpleCL_CDSFailureResponseStatusType",
7871 "version": "0.0.1"
7873 "value": {
7874 "key": {
7875 "name": "SimpleCL_CDSFailureResponseStatusType",
7876 "version": "0.0.1"
7878 "UUID": "1db688e2-3afe-3b03-9795-fdbfa80fa240",
7879 "description": "Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""
7883 "key": {
7884 "name": "SimpleCL_CDSRequestCommonHeaderType",
7885 "version": "0.0.1"
7887 "value": {
7888 "key": {
7889 "name": "SimpleCL_CDSRequestCommonHeaderType",
7890 "version": "0.0.1"
7892 "UUID": "31022456-e85b-3a9b-9ecb-a09691792d3e",
7893 "description": "Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""
7897 "key": {
7898 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
7899 "version": "0.0.1"
7901 "value": {
7902 "key": {
7903 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
7904 "version": "0.0.1"
7906 "UUID": "d6075720-622e-3a0d-827a-aa4580a2f5d7",
7907 "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""
7911 "key": {
7912 "name": "SimpleCL_CDSSuccessResponseStatusType",
7913 "version": "0.0.1"
7915 "value": {
7916 "key": {
7917 "name": "SimpleCL_CDSSuccessResponseStatusType",
7918 "version": "0.0.1"
7920 "UUID": "948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5",
7921 "description": "Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""
7925 "key": {
7926 "name": "SimpleCL_EventDetailsAlbum",
7927 "version": "0.0.1"
7929 "value": {
7930 "key": {
7931 "name": "SimpleCL_EventDetailsAlbum",
7932 "version": "0.0.1"
7934 "UUID": "63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644",
7935 "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""
7939 "key": {
7940 "name": "SimpleCL_EventDetailsAlbumType",
7941 "version": "0.0.1"
7943 "value": {
7944 "key": {
7945 "name": "SimpleCL_EventDetailsAlbumType",
7946 "version": "0.0.1"
7948 "UUID": "a0407d0b-5719-38bf-9529-25ad62ace8c4",
7949 "description": "Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""
7953 "key": {
7954 "name": "SimpleCL_HandleAAIFailureResponseTask",
7955 "version": "0.0.1"
7957 "value": {
7958 "key": {
7959 "name": "SimpleCL_HandleAAIFailureResponseTask",
7960 "version": "0.0.1"
7962 "UUID": "28e894dc-4ab8-3469-aab7-d81bd05bb4c9",
7963 "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask:0.0.1\""
7967 "key": {
7968 "name": "SimpleCL_HandleAAISuccessResponseTask",
7969 "version": "0.0.1"
7971 "value": {
7972 "key": {
7973 "name": "SimpleCL_HandleAAISuccessResponseTask",
7974 "version": "0.0.1"
7976 "UUID": "073f1433-999e-3506-98ad-ef820d2fa7f0",
7977 "description": "Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask:0.0.1\""
7981 "key": {
7982 "name": "SimpleCL_HandleVesEventTask",
7983 "version": "0.0.1"
7985 "value": {
7986 "key": {
7987 "name": "SimpleCL_HandleVesEventTask",
7988 "version": "0.0.1"
7990 "UUID": "afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74",
7991 "description": "Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask:0.0.1\""
7995 "key": {
7996 "name": "SimpleCL_LogStatusEvent",
7997 "version": "0.0.1"
7999 "value": {
8000 "key": {
8001 "name": "SimpleCL_LogStatusEvent",
8002 "version": "0.0.1"
8004 "UUID": "98e1ddd7-3bd9-30c1-b877-4b9b4d3bff15",
8005 "description": "Generated description for concept referred to by key \"SimpleCL_LogStatusEvent:0.0.1\""
8009 "key": {
8010 "name": "SimpleCL_VesEvent",
8011 "version": "0.0.1"
8013 "value": {
8014 "key": {
8015 "name": "SimpleCL_VesEvent",
8016 "version": "0.0.1"
8018 "UUID": "0f57665a-f0a9-314e-ad0a-04c1f5758174",
8019 "description": "Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""
8023 "key": {
8024 "name": "SimpleCL_VesEventHandlerPolicy",
8025 "version": "0.0.1"
8027 "value": {
8028 "key": {
8029 "name": "SimpleCL_VesEventHandlerPolicy",
8030 "version": "0.0.1"
8032 "UUID": "ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b",
8033 "description": "Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy:0.0.1\""
8037 "key": {
8038 "name": "SimpleCL_VesEventType",
8039 "version": "0.0.1"
8041 "value": {
8042 "key": {
8043 "name": "SimpleCL_VesEventType",
8044 "version": "0.0.1"
8046 "UUID": "9fd7a967-57d4-36ef-81e9-c3396f3aa8d1",
8047 "description": "Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""
8051 "key": {
8052 "name": "SimpleLongType",
8053 "version": "0.0.1"
8055 "value": {
8056 "key": {
8057 "name": "SimpleLongType",
8058 "version": "0.0.1"
8060 "UUID": "2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574",
8061 "description": "Generated description for concept referred to by key \"SimpleLongType:0.0.1\""
8065 "key": {
8066 "name": "SimpleStringType",
8067 "version": "0.0.1"
8069 "value": {
8070 "key": {
8071 "name": "SimpleStringType",
8072 "version": "0.0.1"
8074 "UUID": "8a4957cf-9493-3a76-8c22-a208e23259af",
8075 "description": "Generated description for concept referred to by key \"SimpleStringType:0.0.1\""
8079 "key": {
8080 "name": "onap.policies.apex.Simplecontrolloop",
8081 "version": "0.0.1"
8083 "value": {
8084 "key": {
8085 "name": "onap.policies.apex.Simplecontrolloop",
8086 "version": "0.0.1"
8088 "UUID": "ecc97b87-f30b-344c-a476-d36501bf5cbd",
8089 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop:0.0.1\""
8093 "key": {
8094 "name": "onap.policies.apex.Simplecontrolloop_Albums",
8095 "version": "0.0.1"
8097 "value": {
8098 "key": {
8099 "name": "onap.policies.apex.Simplecontrolloop_Albums",
8100 "version": "0.0.1"
8102 "UUID": "1469671a-56dd-3a68-bf6c-77a5cf7a9487",
8103 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\""
8107 "key": {
8108 "name": "onap.policies.apex.Simplecontrolloop_Events",
8109 "version": "0.0.1"
8111 "value": {
8112 "key": {
8113 "name": "onap.policies.apex.Simplecontrolloop_Events",
8114 "version": "0.0.1"
8116 "UUID": "23c4eee4-aba5-36f6-96d6-46f40061bfed",
8117 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Events:0.0.1\""
8121 "key": {
8122 "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
8123 "version": "0.0.1"
8125 "value": {
8126 "key": {
8127 "name": "onap.policies.apex.Simplecontrolloop_KeyInfo",
8128 "version": "0.0.1"
8130 "UUID": "ea9e73ff-483c-3827-896c-6eaa9d69bc6e",
8131 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\""
8135 "key": {
8136 "name": "onap.policies.apex.Simplecontrolloop_Policies",
8137 "version": "0.0.1"
8139 "value": {
8140 "key": {
8141 "name": "onap.policies.apex.Simplecontrolloop_Policies",
8142 "version": "0.0.1"
8144 "UUID": "38c068e5-bb9a-3997-9e50-ec77c66825c8",
8145 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\""
8149 "key": {
8150 "name": "onap.policies.apex.Simplecontrolloop_Schemas",
8151 "version": "0.0.1"
8153 "value": {
8154 "key": {
8155 "name": "onap.policies.apex.Simplecontrolloop_Schemas",
8156 "version": "0.0.1"
8158 "UUID": "38514b27-8b9b-3d06-844a-3aced27deb0a",
8159 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\""
8163 "key": {
8164 "name": "onap.policies.apex.Simplecontrolloop_Tasks",
8165 "version": "0.0.1"
8167 "value": {
8168 "key": {
8169 "name": "onap.policies.apex.Simplecontrolloop_Tasks",
8170 "version": "0.0.1"
8172 "UUID": "0e0387b5-07fa-30e4-8554-eb51d2e18939",
8173 "description": "Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\""
8179 "policies": {
8180 "key": {
8181 "name": "onap.policies.apex.Simplecontrolloop_Policies",
8182 "version": "0.0.1"
8184 "policyMap": {
8185 "entry": [
8187 "key": {
8188 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
8189 "version": "0.0.1"
8191 "value": {
8192 "policyKey": {
8193 "name": "SimpleCL_AAIFailureResponseHandlerPolicy",
8194 "version": "0.0.1"
8196 "template": "Freestyle",
8197 "state": {
8198 "entry": [
8200 "key": "SimpleCL_ReceiveAAIFailureResponseState",
8201 "value": {
8202 "stateKey": {
8203 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
8204 "parentKeyVersion": "0.0.1",
8205 "parentLocalName": "NULL",
8206 "localName": "SimpleCL_ReceiveAAIFailureResponseState"
8208 "trigger": {
8209 "name": "SimpleCL_AAIFailureResponseEvent",
8210 "version": "0.0.1"
8212 "stateOutputs": {
8213 "entry": [
8215 "key": "AAIFailureStateOutput",
8216 "value": {
8217 "key": {
8218 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
8219 "parentKeyVersion": "0.0.1",
8220 "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
8221 "localName": "AAIFailureStateOutput"
8223 "outgoingEvent": {
8224 "name": "SimpleCL_LogStatusEvent",
8225 "version": "0.0.1"
8227 "nextState": {
8228 "parentKeyName": "NULL",
8229 "parentKeyVersion": "0.0.0",
8230 "parentLocalName": "NULL",
8231 "localName": "NULL"
8237 "contextAlbumReference": [],
8238 "taskSelectionLogic": {
8239 "key": "NULL",
8240 "logicFlavour": "UNDEFINED",
8241 "logic": ""
8243 "stateFinalizerLogicMap": {
8244 "entry": []
8246 "defaultTask": {
8247 "name": "SimpleCL_HandleAAIFailureResponseTask",
8248 "version": "0.0.1"
8250 "taskReferences": {
8251 "entry": [
8253 "key": {
8254 "name": "SimpleCL_HandleAAIFailureResponseTask",
8255 "version": "0.0.1"
8257 "value": {
8258 "key": {
8259 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
8260 "parentKeyVersion": "0.0.1",
8261 "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
8262 "localName": "SimpleCL_AAIFailureResponseHandlerPolicy"
8264 "outputType": "DIRECT",
8265 "output": {
8266 "parentKeyName": "SimpleCL_AAIFailureResponseHandlerPolicy",
8267 "parentKeyVersion": "0.0.1",
8268 "parentLocalName": "SimpleCL_ReceiveAAIFailureResponseState",
8269 "localName": "AAIFailureStateOutput"
8279 "firstState": "SimpleCL_ReceiveAAIFailureResponseState"
8283 "key": {
8284 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
8285 "version": "0.0.1"
8287 "value": {
8288 "policyKey": {
8289 "name": "SimpleCL_AAISuccessResponseHandlerPolicy",
8290 "version": "0.0.1"
8292 "template": "Freestyle",
8293 "state": {
8294 "entry": [
8296 "key": "SimpleCL_ReceiveAAISuccessResponseState",
8297 "value": {
8298 "stateKey": {
8299 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
8300 "parentKeyVersion": "0.0.1",
8301 "parentLocalName": "NULL",
8302 "localName": "SimpleCL_ReceiveAAISuccessResponseState"
8304 "trigger": {
8305 "name": "SimpleCL_AAISuccessResponseEvent",
8306 "version": "0.0.1"
8308 "stateOutputs": {
8309 "entry": [
8311 "key": "AAISuccessStateOutput",
8312 "value": {
8313 "key": {
8314 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
8315 "parentKeyVersion": "0.0.1",
8316 "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
8317 "localName": "AAISuccessStateOutput"
8319 "outgoingEvent": {
8320 "name": "SimpleCL_CDSConfigModifyRequestEvent",
8321 "version": "0.0.1"
8323 "nextState": {
8324 "parentKeyName": "NULL",
8325 "parentKeyVersion": "0.0.0",
8326 "parentLocalName": "NULL",
8327 "localName": "NULL"
8333 "contextAlbumReference": [],
8334 "taskSelectionLogic": {
8335 "key": "NULL",
8336 "logicFlavour": "UNDEFINED",
8337 "logic": ""
8339 "stateFinalizerLogicMap": {
8340 "entry": []
8342 "defaultTask": {
8343 "name": "SimpleCL_HandleAAISuccessResponseTask",
8344 "version": "0.0.1"
8346 "taskReferences": {
8347 "entry": [
8349 "key": {
8350 "name": "SimpleCL_HandleAAISuccessResponseTask",
8351 "version": "0.0.1"
8353 "value": {
8354 "key": {
8355 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
8356 "parentKeyVersion": "0.0.1",
8357 "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
8358 "localName": "SimpleCL_AAISuccessResponseHandlerPolicy"
8360 "outputType": "DIRECT",
8361 "output": {
8362 "parentKeyName": "SimpleCL_AAISuccessResponseHandlerPolicy",
8363 "parentKeyVersion": "0.0.1",
8364 "parentLocalName": "SimpleCL_ReceiveAAISuccessResponseState",
8365 "localName": "AAISuccessStateOutput"
8375 "firstState": "SimpleCL_ReceiveAAISuccessResponseState"
8379 "key": {
8380 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
8381 "version": "0.0.1"
8383 "value": {
8384 "policyKey": {
8385 "name": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
8386 "version": "0.0.1"
8388 "template": "Freestyle",
8389 "state": {
8390 "entry": [
8392 "key": "SimpleCL_CDSConfigModifyFailureResponseState",
8393 "value": {
8394 "stateKey": {
8395 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
8396 "parentKeyVersion": "0.0.1",
8397 "parentLocalName": "NULL",
8398 "localName": "SimpleCL_CDSConfigModifyFailureResponseState"
8400 "trigger": {
8401 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
8402 "version": "0.0.1"
8404 "stateOutputs": {
8405 "entry": [
8407 "key": "ConfigModifyFailureResponseOutput",
8408 "value": {
8409 "key": {
8410 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
8411 "parentKeyVersion": "0.0.1",
8412 "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
8413 "localName": "ConfigModifyFailureResponseOutput"
8415 "outgoingEvent": {
8416 "name": "SimpleCL_LogStatusEvent",
8417 "version": "0.0.1"
8419 "nextState": {
8420 "parentKeyName": "NULL",
8421 "parentKeyVersion": "0.0.0",
8422 "parentLocalName": "NULL",
8423 "localName": "NULL"
8429 "contextAlbumReference": [],
8430 "taskSelectionLogic": {
8431 "key": "NULL",
8432 "logicFlavour": "UNDEFINED",
8433 "logic": ""
8435 "stateFinalizerLogicMap": {
8436 "entry": []
8438 "defaultTask": {
8439 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
8440 "version": "0.0.1"
8442 "taskReferences": {
8443 "entry": [
8445 "key": {
8446 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
8447 "version": "0.0.1"
8449 "value": {
8450 "key": {
8451 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
8452 "parentKeyVersion": "0.0.1",
8453 "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
8454 "localName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy"
8456 "outputType": "DIRECT",
8457 "output": {
8458 "parentKeyName": "SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy",
8459 "parentKeyVersion": "0.0.1",
8460 "parentLocalName": "SimpleCL_CDSConfigModifyFailureResponseState",
8461 "localName": "ConfigModifyFailureResponseOutput"
8471 "firstState": "SimpleCL_CDSConfigModifyFailureResponseState"
8475 "key": {
8476 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
8477 "version": "0.0.1"
8479 "value": {
8480 "policyKey": {
8481 "name": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
8482 "version": "0.0.1"
8484 "template": "Freestyle",
8485 "state": {
8486 "entry": [
8488 "key": "SimpleCL_CDSConfigModifySuccessResponseState",
8489 "value": {
8490 "stateKey": {
8491 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
8492 "parentKeyVersion": "0.0.1",
8493 "parentLocalName": "NULL",
8494 "localName": "SimpleCL_CDSConfigModifySuccessResponseState"
8496 "trigger": {
8497 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
8498 "version": "0.0.1"
8500 "stateOutputs": {
8501 "entry": [
8503 "key": "ConfigModifySuccessResponseOutput",
8504 "value": {
8505 "key": {
8506 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
8507 "parentKeyVersion": "0.0.1",
8508 "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
8509 "localName": "ConfigModifySuccessResponseOutput"
8511 "outgoingEvent": {
8512 "name": "SimpleCL_LogStatusEvent",
8513 "version": "0.0.1"
8515 "nextState": {
8516 "parentKeyName": "NULL",
8517 "parentKeyVersion": "0.0.0",
8518 "parentLocalName": "NULL",
8519 "localName": "NULL"
8525 "contextAlbumReference": [],
8526 "taskSelectionLogic": {
8527 "key": "NULL",
8528 "logicFlavour": "UNDEFINED",
8529 "logic": ""
8531 "stateFinalizerLogicMap": {
8532 "entry": []
8534 "defaultTask": {
8535 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
8536 "version": "0.0.1"
8538 "taskReferences": {
8539 "entry": [
8541 "key": {
8542 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
8543 "version": "0.0.1"
8545 "value": {
8546 "key": {
8547 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
8548 "parentKeyVersion": "0.0.1",
8549 "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
8550 "localName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy"
8552 "outputType": "DIRECT",
8553 "output": {
8554 "parentKeyName": "SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy",
8555 "parentKeyVersion": "0.0.1",
8556 "parentLocalName": "SimpleCL_CDSConfigModifySuccessResponseState",
8557 "localName": "ConfigModifySuccessResponseOutput"
8567 "firstState": "SimpleCL_CDSConfigModifySuccessResponseState"
8571 "key": {
8572 "name": "SimpleCL_VesEventHandlerPolicy",
8573 "version": "0.0.1"
8575 "value": {
8576 "policyKey": {
8577 "name": "SimpleCL_VesEventHandlerPolicy",
8578 "version": "0.0.1"
8580 "template": "Freestyle",
8581 "state": {
8582 "entry": [
8584 "key": "SimpleCL_ReceiveVesState",
8585 "value": {
8586 "stateKey": {
8587 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
8588 "parentKeyVersion": "0.0.1",
8589 "parentLocalName": "NULL",
8590 "localName": "SimpleCL_ReceiveVesState"
8592 "trigger": {
8593 "name": "SimpleCL_VesEvent",
8594 "version": "0.0.1"
8596 "stateOutputs": {
8597 "entry": [
8599 "key": "VesOutput",
8600 "value": {
8601 "key": {
8602 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
8603 "parentKeyVersion": "0.0.1",
8604 "parentLocalName": "SimpleCL_ReceiveVesState",
8605 "localName": "VesOutput"
8607 "outgoingEvent": {
8608 "name": "SimpleCL_AAIRequestEvent",
8609 "version": "0.0.1"
8611 "nextState": {
8612 "parentKeyName": "NULL",
8613 "parentKeyVersion": "0.0.0",
8614 "parentLocalName": "NULL",
8615 "localName": "NULL"
8621 "contextAlbumReference": [],
8622 "taskSelectionLogic": {
8623 "key": "NULL",
8624 "logicFlavour": "UNDEFINED",
8625 "logic": ""
8627 "stateFinalizerLogicMap": {
8628 "entry": []
8630 "defaultTask": {
8631 "name": "SimpleCL_HandleVesEventTask",
8632 "version": "0.0.1"
8634 "taskReferences": {
8635 "entry": [
8637 "key": {
8638 "name": "SimpleCL_HandleVesEventTask",
8639 "version": "0.0.1"
8641 "value": {
8642 "key": {
8643 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
8644 "parentKeyVersion": "0.0.1",
8645 "parentLocalName": "SimpleCL_ReceiveVesState",
8646 "localName": "SimpleCL_VesEventHandlerPolicy"
8648 "outputType": "DIRECT",
8649 "output": {
8650 "parentKeyName": "SimpleCL_VesEventHandlerPolicy",
8651 "parentKeyVersion": "0.0.1",
8652 "parentLocalName": "SimpleCL_ReceiveVesState",
8653 "localName": "VesOutput"
8663 "firstState": "SimpleCL_ReceiveVesState"
8669 "tasks": {
8670 "key": {
8671 "name": "onap.policies.apex.Simplecontrolloop_Tasks",
8672 "version": "0.0.1"
8674 "taskMap": {
8675 "entry": [
8677 "key": {
8678 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
8679 "version": "0.0.1"
8681 "value": {
8682 "key": {
8683 "name": "SimpleCL_CDSConfigModifyFailureResponseTask",
8684 "version": "0.0.1"
8686 "inputFields": {
8687 "entry": [
8689 "key": "actionIdentifiers",
8690 "value": {
8691 "key": "actionIdentifiers",
8692 "fieldSchemaKey": {
8693 "name": "SimpleCL_CDSActionIdentifiersType",
8694 "version": "0.0.1"
8696 "optional": false
8700 "key": "commonHeader",
8701 "value": {
8702 "key": "commonHeader",
8703 "fieldSchemaKey": {
8704 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
8705 "version": "0.0.1"
8707 "optional": false
8711 "key": "payload",
8712 "value": {
8713 "key": "payload",
8714 "fieldSchemaKey": {
8715 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
8716 "version": "0.0.1"
8718 "optional": false
8722 "key": "status",
8723 "value": {
8724 "key": "status",
8725 "fieldSchemaKey": {
8726 "name": "SimpleCL_CDSFailureResponseStatusType",
8727 "version": "0.0.1"
8729 "optional": false
8734 "outputFields": {
8735 "entry": [
8737 "key": "message",
8738 "value": {
8739 "key": "message",
8740 "fieldSchemaKey": {
8741 "name": "SimpleStringType",
8742 "version": "0.0.1"
8744 "optional": false
8749 "taskParameters": {
8750 "entry": []
8752 "contextAlbumReference": [
8754 "name": "SimpleCL_EventDetailsAlbum",
8755 "version": "0.0.1"
8758 "taskLogic": {
8759 "key": "TaskLogic",
8760 "logicFlavour": "JAVASCRIPT",
8761 "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar cdsResponse = executor.inFields;\nvar albumID = cdsResponse.get(\"commonHeader\").get(\"subRequestId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"PNF\", eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
8766 "key": {
8767 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
8768 "version": "0.0.1"
8770 "value": {
8771 "key": {
8772 "name": "SimpleCL_CDSConfigModifySuccessResponseTask",
8773 "version": "0.0.1"
8775 "inputFields": {
8776 "entry": [
8778 "key": "actionIdentifiers",
8779 "value": {
8780 "key": "actionIdentifiers",
8781 "fieldSchemaKey": {
8782 "name": "SimpleCL_CDSActionIdentifiersType",
8783 "version": "0.0.1"
8785 "optional": false
8789 "key": "commonHeader",
8790 "value": {
8791 "key": "commonHeader",
8792 "fieldSchemaKey": {
8793 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
8794 "version": "0.0.1"
8796 "optional": false
8800 "key": "payload",
8801 "value": {
8802 "key": "payload",
8803 "fieldSchemaKey": {
8804 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
8805 "version": "0.0.1"
8807 "optional": false
8811 "key": "status",
8812 "value": {
8813 "key": "status",
8814 "fieldSchemaKey": {
8815 "name": "SimpleCL_CDSSuccessResponseStatusType",
8816 "version": "0.0.1"
8818 "optional": false
8823 "outputFields": {
8824 "entry": [
8826 "key": "message",
8827 "value": {
8828 "key": "message",
8829 "fieldSchemaKey": {
8830 "name": "SimpleStringType",
8831 "version": "0.0.1"
8833 "optional": false
8838 "taskParameters": {
8839 "entry": []
8841 "contextAlbumReference": [
8843 "name": "SimpleCL_EventDetailsAlbum",
8844 "version": "0.0.1"
8847 "taskLogic": {
8848 "key": "TaskLogic",
8849 "logicFlavour": "JAVASCRIPT",
8850 "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar cdsResponse = executor.inFields;\nvar albumID = cdsResponse.get(\"commonHeader\").get(\"subRequestId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"PNF\", eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
8855 "key": {
8856 "name": "SimpleCL_HandleAAIFailureResponseTask",
8857 "version": "0.0.1"
8859 "value": {
8860 "key": {
8861 "name": "SimpleCL_HandleAAIFailureResponseTask",
8862 "version": "0.0.1"
8864 "inputFields": {
8865 "entry": [
8867 "key": "requestError",
8868 "value": {
8869 "key": "requestError",
8870 "fieldSchemaKey": {
8871 "name": "SimpleCL_AAIRequestErrorType",
8872 "version": "0.0.1"
8874 "optional": false
8879 "outputFields": {
8880 "entry": [
8882 "key": "message",
8883 "value": {
8884 "key": "message",
8885 "fieldSchemaKey": {
8886 "name": "SimpleStringType",
8887 "version": "0.0.1"
8889 "optional": false
8894 "taskParameters": {
8895 "entry": []
8897 "contextAlbumReference": [
8899 "name": "SimpleCL_EventDetailsAlbum",
8900 "version": "0.0.1"
8903 "taskLogic": {
8904 "key": "TaskLogic",
8905 "logicFlavour": "JAVASCRIPT",
8906 "logic": "var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\n//Sending messageId received from AAI error message since eventId is not available in this task logic\nsend(executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"messageId\"), \"PNF\", \"N/A\", timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
8911 "key": {
8912 "name": "SimpleCL_HandleAAISuccessResponseTask",
8913 "version": "0.0.1"
8915 "value": {
8916 "key": {
8917 "name": "SimpleCL_HandleAAISuccessResponseTask",
8918 "version": "0.0.1"
8920 "inputFields": {
8921 "entry": [
8923 "key": "equip-model",
8924 "value": {
8925 "key": "equip-model",
8926 "fieldSchemaKey": {
8927 "name": "SimpleStringType",
8928 "version": "0.0.1"
8930 "optional": false
8934 "key": "equip-type",
8935 "value": {
8936 "key": "equip-type",
8937 "fieldSchemaKey": {
8938 "name": "SimpleStringType",
8939 "version": "0.0.1"
8941 "optional": false
8945 "key": "equip-vendor",
8946 "value": {
8947 "key": "equip-vendor",
8948 "fieldSchemaKey": {
8949 "name": "SimpleStringType",
8950 "version": "0.0.1"
8952 "optional": false
8956 "key": "in-maint",
8957 "value": {
8958 "key": "in-maint",
8959 "fieldSchemaKey": {
8960 "name": "SimpleBooleanType",
8961 "version": "0.0.1"
8963 "optional": false
8967 "key": "ipaddress-v4-oam",
8968 "value": {
8969 "key": "ipaddress-v4-oam",
8970 "fieldSchemaKey": {
8971 "name": "SimpleStringType",
8972 "version": "0.0.1"
8974 "optional": false
8978 "key": "ipaddress-v6-oam",
8979 "value": {
8980 "key": "ipaddress-v6-oam",
8981 "fieldSchemaKey": {
8982 "name": "SimpleStringType",
8983 "version": "0.0.1"
8985 "optional": false
8989 "key": "management-option",
8990 "value": {
8991 "key": "management-option",
8992 "fieldSchemaKey": {
8993 "name": "SimpleStringType",
8994 "version": "0.0.1"
8996 "optional": false
9000 "key": "pnf-id",
9001 "value": {
9002 "key": "pnf-id",
9003 "fieldSchemaKey": {
9004 "name": "SimpleStringType",
9005 "version": "0.0.1"
9007 "optional": false
9011 "key": "pnf-name",
9012 "value": {
9013 "key": "pnf-name",
9014 "fieldSchemaKey": {
9015 "name": "SimpleStringType",
9016 "version": "0.0.1"
9018 "optional": false
9022 "key": "pnf-name2",
9023 "value": {
9024 "key": "pnf-name2",
9025 "fieldSchemaKey": {
9026 "name": "SimpleStringType",
9027 "version": "0.0.1"
9029 "optional": false
9033 "key": "resource-version",
9034 "value": {
9035 "key": "resource-version",
9036 "fieldSchemaKey": {
9037 "name": "SimpleStringType",
9038 "version": "0.0.1"
9040 "optional": false
9045 "outputFields": {
9046 "entry": [
9048 "key": "actionIdentifiers",
9049 "value": {
9050 "key": "actionIdentifiers",
9051 "fieldSchemaKey": {
9052 "name": "SimpleCL_CDSActionIdentifiersType",
9053 "version": "0.0.1"
9055 "optional": false
9059 "key": "commonHeader",
9060 "value": {
9061 "key": "commonHeader",
9062 "fieldSchemaKey": {
9063 "name": "SimpleCL_CDSRequestCommonHeaderType",
9064 "version": "0.0.1"
9066 "optional": false
9070 "key": "payload",
9071 "value": {
9072 "key": "payload",
9073 "fieldSchemaKey": {
9074 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
9075 "version": "0.0.1"
9077 "optional": false
9082 "taskParameters": {
9083 "entry": []
9085 "contextAlbumReference": [
9087 "name": "SimpleCL_EventDetailsAlbum",
9088 "version": "0.0.1"
9091 "taskLogic": {
9092 "key": "TaskLogic",
9093 "logicFlavour": "JAVASCRIPT",
9094 "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar pnfDetails = executor.inFields;\nvar albumID = pnfDetails.get(\"pnf-id\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nvar timestamp = longType(new Date().getTime());\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n send(commonEventHeader.get(\"eventId\"), \"PNF\", otherFieldsMap.get(\"pnfName\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"pnf-test-cba\";\n var blueprintVersion = \"1.0.0\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n executor.outFields.put(\"commonHeader\", commonHeader);\n executor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\n executor.outFields.put(\"payload\", payload);\n\n send(commonEventHeader.get(\"eventId\"), \"PNF\", otherFieldsMap.get(\"pnfName\"), timestamp, \"SUCCESS\", logMessage)\n}\n\nreturnVal;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
9099 "key": {
9100 "name": "SimpleCL_HandleVesEventTask",
9101 "version": "0.0.1"
9103 "value": {
9104 "key": {
9105 "name": "SimpleCL_HandleVesEventTask",
9106 "version": "0.0.1"
9108 "inputFields": {
9109 "entry": [
9111 "key": "event",
9112 "value": {
9113 "key": "event",
9114 "fieldSchemaKey": {
9115 "name": "SimpleCL_VesEventType",
9116 "version": "0.0.1"
9118 "optional": false
9123 "outputFields": {
9124 "entry": [
9126 "key": "aaifield",
9127 "value": {
9128 "key": "aaifield",
9129 "fieldSchemaKey": {
9130 "name": "SimpleStringType",
9131 "version": "0.0.1"
9133 "optional": false
9138 "taskParameters": {
9139 "entry": []
9141 "contextAlbumReference": [
9143 "name": "SimpleCL_EventDetailsAlbum",
9144 "version": "0.0.1"
9147 "taskLogic": {
9148 "key": "TaskLogic",
9149 "logicFlavour": "JAVASCRIPT",
9150 "logic": "var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"PNF\", otherFields.get(\"hashMap\").get(\"pnfName\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"pnf-name\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Simplecontrolloop\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"simple-controlloop-usecase\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n //headers.put(\"Authorization\" , \"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\");\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"
9157 "events": {
9158 "key": {
9159 "name": "onap.policies.apex.Simplecontrolloop_Events",
9160 "version": "0.0.1"
9162 "eventMap": {
9163 "entry": [
9165 "key": {
9166 "name": "SimpleCL_AAIFailureResponseEvent",
9167 "version": "0.0.1"
9169 "value": {
9170 "key": {
9171 "name": "SimpleCL_AAIFailureResponseEvent",
9172 "version": "0.0.1"
9174 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9175 "source": "AAI",
9176 "target": "APEX",
9177 "parameter": {
9178 "entry": [
9180 "key": "requestError",
9181 "value": {
9182 "key": "requestError",
9183 "fieldSchemaKey": {
9184 "name": "SimpleCL_AAIRequestErrorType",
9185 "version": "0.0.1"
9187 "optional": false
9192 "toscaPolicyState": "EXIT_FAILURE"
9196 "key": {
9197 "name": "SimpleCL_AAIRequestEvent",
9198 "version": "0.0.1"
9200 "value": {
9201 "key": {
9202 "name": "SimpleCL_AAIRequestEvent",
9203 "version": "0.0.1"
9205 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9206 "source": "APEX",
9207 "target": "AAI",
9208 "parameter": {
9209 "entry": [
9211 "key": "aaifield",
9212 "value": {
9213 "key": "aaifield",
9214 "fieldSchemaKey": {
9215 "name": "SimpleStringType",
9216 "version": "0.0.1"
9218 "optional": false
9223 "toscaPolicyState": ""
9227 "key": {
9228 "name": "SimpleCL_AAISuccessResponseEvent",
9229 "version": "0.0.1"
9231 "value": {
9232 "key": {
9233 "name": "SimpleCL_AAISuccessResponseEvent",
9234 "version": "0.0.1"
9236 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9237 "source": "AAI",
9238 "target": "APEX",
9239 "parameter": {
9240 "entry": [
9242 "key": "equip-model",
9243 "value": {
9244 "key": "equip-model",
9245 "fieldSchemaKey": {
9246 "name": "SimpleStringType",
9247 "version": "0.0.1"
9249 "optional": false
9253 "key": "equip-type",
9254 "value": {
9255 "key": "equip-type",
9256 "fieldSchemaKey": {
9257 "name": "SimpleStringType",
9258 "version": "0.0.1"
9260 "optional": false
9264 "key": "equip-vendor",
9265 "value": {
9266 "key": "equip-vendor",
9267 "fieldSchemaKey": {
9268 "name": "SimpleStringType",
9269 "version": "0.0.1"
9271 "optional": false
9275 "key": "in-maint",
9276 "value": {
9277 "key": "in-maint",
9278 "fieldSchemaKey": {
9279 "name": "SimpleBooleanType",
9280 "version": "0.0.1"
9282 "optional": false
9286 "key": "ipaddress-v4-oam",
9287 "value": {
9288 "key": "ipaddress-v4-oam",
9289 "fieldSchemaKey": {
9290 "name": "SimpleStringType",
9291 "version": "0.0.1"
9293 "optional": false
9297 "key": "ipaddress-v6-oam",
9298 "value": {
9299 "key": "ipaddress-v6-oam",
9300 "fieldSchemaKey": {
9301 "name": "SimpleStringType",
9302 "version": "0.0.1"
9304 "optional": false
9308 "key": "management-option",
9309 "value": {
9310 "key": "management-option",
9311 "fieldSchemaKey": {
9312 "name": "SimpleStringType",
9313 "version": "0.0.1"
9315 "optional": false
9319 "key": "pnf-id",
9320 "value": {
9321 "key": "pnf-id",
9322 "fieldSchemaKey": {
9323 "name": "SimpleStringType",
9324 "version": "0.0.1"
9326 "optional": false
9330 "key": "pnf-name",
9331 "value": {
9332 "key": "pnf-name",
9333 "fieldSchemaKey": {
9334 "name": "SimpleStringType",
9335 "version": "0.0.1"
9337 "optional": false
9341 "key": "pnf-name2",
9342 "value": {
9343 "key": "pnf-name2",
9344 "fieldSchemaKey": {
9345 "name": "SimpleStringType",
9346 "version": "0.0.1"
9348 "optional": false
9352 "key": "resource-version",
9353 "value": {
9354 "key": "resource-version",
9355 "fieldSchemaKey": {
9356 "name": "SimpleStringType",
9357 "version": "0.0.1"
9359 "optional": false
9364 "toscaPolicyState": ""
9368 "key": {
9369 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
9370 "version": "0.0.1"
9372 "value": {
9373 "key": {
9374 "name": "SimpleCL_CDSConfigModifyFailureResponseEvent",
9375 "version": "0.0.1"
9377 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9378 "source": "CDS",
9379 "target": "APEX",
9380 "parameter": {
9381 "entry": [
9383 "key": "actionIdentifiers",
9384 "value": {
9385 "key": "actionIdentifiers",
9386 "fieldSchemaKey": {
9387 "name": "SimpleCL_CDSActionIdentifiersType",
9388 "version": "0.0.1"
9390 "optional": false
9394 "key": "commonHeader",
9395 "value": {
9396 "key": "commonHeader",
9397 "fieldSchemaKey": {
9398 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
9399 "version": "0.0.1"
9401 "optional": false
9405 "key": "payload",
9406 "value": {
9407 "key": "payload",
9408 "fieldSchemaKey": {
9409 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
9410 "version": "0.0.1"
9412 "optional": false
9416 "key": "status",
9417 "value": {
9418 "key": "status",
9419 "fieldSchemaKey": {
9420 "name": "SimpleCL_CDSFailureResponseStatusType",
9421 "version": "0.0.1"
9423 "optional": false
9428 "toscaPolicyState": "EXIT_FAILURE"
9432 "key": {
9433 "name": "SimpleCL_CDSConfigModifyRequestEvent",
9434 "version": "0.0.1"
9436 "value": {
9437 "key": {
9438 "name": "SimpleCL_CDSConfigModifyRequestEvent",
9439 "version": "0.0.1"
9441 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9442 "source": "APEX",
9443 "target": "APEX",
9444 "parameter": {
9445 "entry": [
9447 "key": "actionIdentifiers",
9448 "value": {
9449 "key": "actionIdentifiers",
9450 "fieldSchemaKey": {
9451 "name": "SimpleCL_CDSActionIdentifiersType",
9452 "version": "0.0.1"
9454 "optional": false
9458 "key": "commonHeader",
9459 "value": {
9460 "key": "commonHeader",
9461 "fieldSchemaKey": {
9462 "name": "SimpleCL_CDSRequestCommonHeaderType",
9463 "version": "0.0.1"
9465 "optional": false
9469 "key": "payload",
9470 "value": {
9471 "key": "payload",
9472 "fieldSchemaKey": {
9473 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
9474 "version": "0.0.1"
9476 "optional": false
9481 "toscaPolicyState": ""
9485 "key": {
9486 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
9487 "version": "0.0.1"
9489 "value": {
9490 "key": {
9491 "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
9492 "version": "0.0.1"
9494 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9495 "source": "CDS",
9496 "target": "APEX",
9497 "parameter": {
9498 "entry": [
9500 "key": "actionIdentifiers",
9501 "value": {
9502 "key": "actionIdentifiers",
9503 "fieldSchemaKey": {
9504 "name": "SimpleCL_CDSActionIdentifiersType",
9505 "version": "0.0.1"
9507 "optional": false
9511 "key": "commonHeader",
9512 "value": {
9513 "key": "commonHeader",
9514 "fieldSchemaKey": {
9515 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
9516 "version": "0.0.1"
9518 "optional": false
9522 "key": "payload",
9523 "value": {
9524 "key": "payload",
9525 "fieldSchemaKey": {
9526 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
9527 "version": "0.0.1"
9529 "optional": false
9533 "key": "status",
9534 "value": {
9535 "key": "status",
9536 "fieldSchemaKey": {
9537 "name": "SimpleCL_CDSSuccessResponseStatusType",
9538 "version": "0.0.1"
9540 "optional": false
9545 "toscaPolicyState": "EXIT_SUCCESS"
9549 "key": {
9550 "name": "SimpleCL_LogStatusEvent",
9551 "version": "0.0.1"
9553 "value": {
9554 "key": {
9555 "name": "SimpleCL_LogStatusEvent",
9556 "version": "0.0.1"
9558 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9559 "source": "APEX",
9560 "target": "DCAE",
9561 "parameter": {
9562 "entry": [
9564 "key": "message",
9565 "value": {
9566 "key": "message",
9567 "fieldSchemaKey": {
9568 "name": "SimpleStringType",
9569 "version": "0.0.1"
9571 "optional": false
9576 "toscaPolicyState": ""
9580 "key": {
9581 "name": "SimpleCL_VesEvent",
9582 "version": "0.0.1"
9584 "value": {
9585 "key": {
9586 "name": "SimpleCL_VesEvent",
9587 "version": "0.0.1"
9589 "nameSpace": "org.onap.policy.apex.simplecontrolloop",
9590 "source": "DCAE",
9591 "target": "APEX",
9592 "parameter": {
9593 "entry": [
9595 "key": "event",
9596 "value": {
9597 "key": "event",
9598 "fieldSchemaKey": {
9599 "name": "SimpleCL_VesEventType",
9600 "version": "0.0.1"
9602 "optional": false
9607 "toscaPolicyState": "ENTRY"
9613 "albums": {
9614 "key": {
9615 "name": "onap.policies.apex.Simplecontrolloop_Albums",
9616 "version": "0.0.1"
9618 "albums": {
9619 "entry": [
9621 "key": {
9622 "name": "SimpleCL_EventDetailsAlbum",
9623 "version": "0.0.1"
9625 "value": {
9626 "key": {
9627 "name": "SimpleCL_EventDetailsAlbum",
9628 "version": "0.0.1"
9630 "scope": "policy",
9631 "isWritable": true,
9632 "itemSchema": {
9633 "name": "SimpleCL_EventDetailsAlbumType",
9634 "version": "0.0.1"
9641 "schemas": {
9642 "key": {
9643 "name": "onap.policies.apex.Simplecontrolloop_Schemas",
9644 "version": "0.0.1"
9646 "schemas": {
9647 "entry": [
9649 "key": {
9650 "name": "SimpleBooleanType",
9651 "version": "0.0.1"
9653 "value": {
9654 "key": {
9655 "name": "SimpleBooleanType",
9656 "version": "0.0.1"
9658 "schemaFlavour": "Java",
9659 "schemaDefinition": "java.lang.Boolean"
9663 "key": {
9664 "name": "SimpleCL_AAIRequestErrorType",
9665 "version": "0.0.1"
9667 "value": {
9668 "key": {
9669 "name": "SimpleCL_AAIRequestErrorType",
9670 "version": "0.0.1"
9672 "schemaFlavour": "Avro",
9673 "schemaDefinition": "{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
9677 "key": {
9678 "name": "SimpleCL_CDSActionIdentifiersType",
9679 "version": "0.0.1"
9681 "value": {
9682 "key": {
9683 "name": "SimpleCL_CDSActionIdentifiersType",
9684 "version": "0.0.1"
9686 "schemaFlavour": "Avro",
9687 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"
9691 "key": {
9692 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
9693 "version": "0.0.1"
9695 "value": {
9696 "key": {
9697 "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
9698 "version": "0.0.1"
9700 "schemaFlavour": "Avro",
9701 "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"
9705 "key": {
9706 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
9707 "version": "0.0.1"
9709 "value": {
9710 "key": {
9711 "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
9712 "version": "0.0.1"
9714 "schemaFlavour": "Avro",
9715 "schemaDefinition": "{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"
9719 "key": {
9720 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
9721 "version": "0.0.1"
9723 "value": {
9724 "key": {
9725 "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
9726 "version": "0.0.1"
9728 "schemaFlavour": "Avro",
9729 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
9733 "key": {
9734 "name": "SimpleCL_CDSFailureResponseStatusType",
9735 "version": "0.0.1"
9737 "value": {
9738 "key": {
9739 "name": "SimpleCL_CDSFailureResponseStatusType",
9740 "version": "0.0.1"
9742 "schemaFlavour": "Avro",
9743 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"
9747 "key": {
9748 "name": "SimpleCL_CDSRequestCommonHeaderType",
9749 "version": "0.0.1"
9751 "value": {
9752 "key": {
9753 "name": "SimpleCL_CDSRequestCommonHeaderType",
9754 "version": "0.0.1"
9756 "schemaFlavour": "Avro",
9757 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"
9761 "key": {
9762 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
9763 "version": "0.0.1"
9765 "value": {
9766 "key": {
9767 "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
9768 "version": "0.0.1"
9770 "schemaFlavour": "Avro",
9771 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"
9775 "key": {
9776 "name": "SimpleCL_CDSSuccessResponseStatusType",
9777 "version": "0.0.1"
9779 "value": {
9780 "key": {
9781 "name": "SimpleCL_CDSSuccessResponseStatusType",
9782 "version": "0.0.1"
9784 "schemaFlavour": "Avro",
9785 "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"
9789 "key": {
9790 "name": "SimpleCL_EventDetailsAlbumType",
9791 "version": "0.0.1"
9793 "value": {
9794 "key": {
9795 "name": "SimpleCL_EventDetailsAlbumType",
9796 "version": "0.0.1"
9798 "schemaFlavour": "Avro",
9799 "schemaDefinition": "{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"
9803 "key": {
9804 "name": "SimpleCL_VesEventType",
9805 "version": "0.0.1"
9807 "value": {
9808 "key": {
9809 "name": "SimpleCL_VesEventType",
9810 "version": "0.0.1"
9812 "schemaFlavour": "Avro",
9813 "schemaDefinition": "{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"
9817 "key": {
9818 "name": "SimpleLongType",
9819 "version": "0.0.1"
9821 "value": {
9822 "key": {
9823 "name": "SimpleLongType",
9824 "version": "0.0.1"
9826 "schemaFlavour": "Java",
9827 "schemaDefinition": "java.lang.Long"
9831 "key": {
9832 "name": "SimpleStringType",
9833 "version": "0.0.1"
9835 "value": {
9836 "key": {
9837 "name": "SimpleStringType",
9838 "version": "0.0.1"
9840 "schemaFlavour": "Java",
9841 "schemaDefinition": "java.lang.String"
9853 <stringProp name="Argument.metadata">=</stringProp>
9857 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
9858 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
9859 <stringProp name="HTTPSampler.protocol">https</stringProp>
9860 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
9861 <stringProp name="HTTPSampler.path">/policy/api/v1/nodetemplates</stringProp>
9862 <stringProp name="HTTPSampler.method">POST</stringProp>
9863 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
9864 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
9865 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
9866 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
9867 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
9868 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
9869 <stringProp name="HTTPSampler.response_timeout"></stringProp>
9870 <stringProp name="TestPlan.comments">Create Nodetemplate metadata for sampleGroup policy</stringProp>
9873 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
9874 <collectionProp name="Asserion.test_strings">
9875 <stringProp name="49586">200</stringProp>
9877 <stringProp name="Assertion.custom_message"></stringProp>
9878 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
9879 <boolProp name="Assertion.assume_success">false</boolProp>
9880 <intProp name="Assertion.test_type">1</intProp>
9881 </ResponseAssertion>
9884 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy for sampleGroup" enabled="true">
9885 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
9886 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
9887 <collectionProp name="Arguments.arguments">
9888 <elementProp name="" elementType="HTTPArgument">
9889 <boolProp name="HTTPArgument.always_encode">false</boolProp>
9890 <stringProp name="Argument.value">{
9891 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
9892 "topology_template": {
9893 "policies": [
9895 "operational.apex.stabilityTestSampleDomain": {
9896 "type": "onap.policies.native.Apex",
9897 "type_version": "1.0.0",
9898 "name": "operational.apex.stabilityTestSampleDomain",
9899 "version": "1.0.0",
9900 "metadata": {
9901 "metadataSetName": "apex.metadata.pnf",
9902 "metadataSetVersion": "1.0.0"
9904 "properties": {
9905 "engineServiceParameters": {
9906 "name": "TestApexEnginePnf",
9907 "version": "0.0.1",
9908 "id": 45,
9909 "instanceCount": 4,
9910 "deploymentPort": 12561,
9911 "engineParameters": {
9912 "executorParameters": {
9913 "JAVASCRIPT": {
9914 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
9917 "contextParameters": {
9918 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters",
9919 "schemaParameters": {
9920 "Avro": {
9921 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
9925 "taskParameters": [
9927 "key": "logUrl",
9928 "value": "http://message-router:3904/events/APEX-CL-MGT"
9933 "eventInputParameters": {
9934 "SimpleCL_DCAEConsumer": {
9935 "carrierTechnologyParameters": {
9936 "carrierTechnology": "RESTCLIENT",
9937 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
9938 "parameters": {
9939 "url": "http://message-router:3904/events/apex-pnf-input/cl/apex?timeout=30000"
9942 "eventProtocolParameters": {
9943 "eventProtocol": "JSON"
9945 "eventName": "SimpleCL_VesEvent"
9947 "SimpleCL_AAIResponseConsumer": {
9948 "carrierTechnologyParameters": {
9949 "carrierTechnology": "RESTREQUESTOR",
9950 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
9951 "parameters": {
9952 "url": "https://aai:8443/aai/v14/network/pnfs/pnf/{pnfName}",
9953 "httpMethod": "GET",
9954 "httpCodeFilter": "[2-5][0-1][0-9]",
9955 "httpHeaders": [
9957 "Accept",
9958 "application/json"
9961 "Content-Type",
9962 "application/json"
9965 "X-FromAppId",
9966 "dcae-curl"
9969 "x-transactionId",
9970 "9998"
9973 "Authorization",
9974 "Basic QUFJOkFBSQ=="
9979 "eventProtocolParameters": {
9980 "eventProtocol": "JSON"
9982 "eventName": "SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent",
9983 "requestorMode": true,
9984 "requestorPeer": "SimpleCL_AAIProducer",
9985 "requestorTimeout": 2000
9987 "SimpleCL_CDSConfigModifyResponseConsumer": {
9988 "carrierTechnologyParameters": {
9989 "carrierTechnology": "GRPC",
9990 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
9992 "eventProtocolParameters": {
9993 "eventProtocol": "JSON"
9995 "eventName": "SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent",
9996 "requestorMode": true,
9997 "requestorPeer": "SimpleCL_CDSConfigModifyRequestProducer",
9998 "requestorTimeout": 500
10001 "eventOutputParameters": {
10002 "SimpleCL_AAIProducer": {
10003 "carrierTechnologyParameters": {
10004 "carrierTechnology": "RESTREQUESTOR",
10005 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
10007 "eventProtocolParameters": {
10008 "eventProtocol": "JSON"
10010 "eventNameFilter": "SimpleCL_AAIRequestEvent",
10011 "requestorMode": true,
10012 "requestorPeer": "SimpleCL_AAIResponseConsumer",
10013 "requestorTimeout": 2000
10015 "SimpleCL_CDSConfigModifyRequestProducer": {
10016 "carrierTechnologyParameters": {
10017 "carrierTechnology": "GRPC",
10018 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
10019 "parameters": {
10020 "host": "cds-blueprints-processor-grpc",
10021 "port": 9111,
10022 "username": "ccsdkapps",
10023 "password": "ccsdkapps",
10024 "timeout": 60
10027 "eventProtocolParameters": {
10028 "eventProtocol": "JSON"
10030 "eventNameFilter": "SimpleCL_CDSConfigModifyRequestEvent",
10031 "requestorMode": true,
10032 "requestorPeer": "SimpleCL_CDSConfigModifyResponseConsumer",
10033 "requestorTimeout": 500
10035 "SimpleCL_logOutputter": {
10036 "carrierTechnologyParameters": {
10037 "carrierTechnology": "FILE",
10038 "parameters": {
10039 "fileName": "outputevents.log"
10042 "eventProtocolParameters": {
10043 "eventProtocol": "JSON"
10053 <stringProp name="Argument.metadata">=</stringProp>
10057 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
10058 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
10059 <stringProp name="HTTPSampler.protocol">https</stringProp>
10060 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10061 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies</stringProp>
10062 <stringProp name="HTTPSampler.method">POST</stringProp>
10063 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10064 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10065 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10066 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10067 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10068 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10069 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10070 </HTTPSamplerProxy>
10072 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10073 <collectionProp name="Asserion.test_strings">
10074 <stringProp name="49586">200</stringProp>
10076 <stringProp name="Assertion.custom_message"></stringProp>
10077 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10078 <boolProp name="Assertion.assume_success">false</boolProp>
10079 <intProp name="Assertion.test_type">1</intProp>
10080 </ResponseAssertion>
10083 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Change State to ACTIVE (defaultGroup)" enabled="true">
10084 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10085 <collectionProp name="Arguments.arguments"/>
10087 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10088 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10089 <stringProp name="HTTPSampler.protocol">https</stringProp>
10090 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10091 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/groups/defaultGroup?state=ACTIVE</stringProp>
10092 <stringProp name="HTTPSampler.method">PUT</stringProp>
10093 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10094 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10095 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10096 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10097 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10098 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10099 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10100 </HTTPSamplerProxy>
10102 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10103 <collectionProp name="Asserion.test_strings">
10104 <stringProp name="49586">200</stringProp>
10106 <stringProp name="Assertion.custom_message"></stringProp>
10107 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10108 <boolProp name="Assertion.assume_success">false</boolProp>
10109 <intProp name="Assertion.test_type">1</intProp>
10110 </ResponseAssertion>
10113 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create/Update PDP Group" enabled="true">
10114 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
10115 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
10116 <collectionProp name="Arguments.arguments">
10117 <elementProp name="" elementType="HTTPArgument">
10118 <boolProp name="HTTPArgument.always_encode">false</boolProp>
10119 <stringProp name="Argument.value">{
10120 "groups": [
10122 "name": "sampleGroup",
10123 "pdpGroupState": "ACTIVE",
10124 "properties": {},
10125 "pdpSubgroups": [
10127 "pdpType": "apex",
10128 "desiredInstanceCount": 1,
10129 "properties": {},
10130 "supportedPolicyTypes": [
10132 "name": "onap.policies.native.Apex",
10133 "version": "1.0.0"
10136 "policies": []
10142 <stringProp name="Argument.metadata">=</stringProp>
10146 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10147 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10148 <stringProp name="HTTPSampler.protocol">https</stringProp>
10149 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10150 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/groups/batch</stringProp>
10151 <stringProp name="HTTPSampler.method">POST</stringProp>
10152 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10153 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10154 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10155 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10156 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10157 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10158 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10159 <stringProp name="TestPlan.comments">create SampleGroup </stringProp>
10160 </HTTPSamplerProxy>
10162 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10163 <collectionProp name="Asserion.test_strings">
10164 <stringProp name="49586">200</stringProp>
10166 <stringProp name="Assertion.custom_message"></stringProp>
10167 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10168 <boolProp name="Assertion.assume_success">false</boolProp>
10169 <intProp name="Assertion.test_type">1</intProp>
10170 </ResponseAssertion>
10173 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Query" enabled="true">
10174 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10175 <collectionProp name="Arguments.arguments"/>
10177 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10178 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10179 <stringProp name="HTTPSampler.protocol">https</stringProp>
10180 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10181 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps</stringProp>
10182 <stringProp name="HTTPSampler.method">GET</stringProp>
10183 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10184 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10185 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10186 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10187 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10188 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10189 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10190 <stringProp name="TestPlan.comments">Check PdpGroup Query</stringProp>
10191 </HTTPSamplerProxy>
10193 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
10194 <stringProp name="ConstantTimer.delay">120000</stringProp>
10197 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10198 <collectionProp name="Asserion.test_strings">
10199 <stringProp name="49586">200</stringProp>
10201 <stringProp name="Assertion.custom_message"></stringProp>
10202 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10203 <boolProp name="Assertion.assume_success">false</boolProp>
10204 <intProp name="Assertion.test_type">1</intProp>
10205 </ResponseAssertion>
10207 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
10208 <stringProp name="scriptLanguage">groovy</stringProp>
10209 <stringProp name="parameters"></stringProp>
10210 <stringProp name="filename"></stringProp>
10211 <stringProp name="cacheKey">true</stringProp>
10212 <stringProp name="script">import groovy.json.JsonSlurper;
10214 if (prev.getResponseCode() == '200') {
10215 def jsonSlurper = new JsonSlurper();
10216 res = jsonSlurper.parseText(prev.getResponseDataAsString());
10218 assert res instanceof Map;
10219 assert res.groups.size == 2;
10220 assert res.groups[0].pdpGroupState== 'ACTIVE';
10221 assert res.groups[1].pdpGroupState== 'ACTIVE';
10228 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="PAP Test Flow" enabled="true">
10229 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
10230 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
10231 <boolProp name="LoopController.continue_forever">false</boolProp>
10232 <intProp name="LoopController.loops">-1</intProp>
10234 <stringProp name="ThreadGroup.num_threads">1</stringProp>
10235 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
10236 <boolProp name="ThreadGroup.scheduler">true</boolProp>
10237 <stringProp name="ThreadGroup.duration">259200</stringProp>
10238 <stringProp name="ThreadGroup.delay"></stringProp>
10239 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
10242 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check Health" enabled="true">
10243 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10244 <collectionProp name="Arguments.arguments"/>
10246 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10247 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10248 <stringProp name="HTTPSampler.protocol">https</stringProp>
10249 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10250 <stringProp name="HTTPSampler.path">/policy/pap/v1/healthcheck</stringProp>
10251 <stringProp name="HTTPSampler.method">GET</stringProp>
10252 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10253 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10254 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10255 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10256 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10257 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10258 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10259 <stringProp name="TestPlan.comments">Basic Health Check</stringProp>
10260 </HTTPSamplerProxy>
10262 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10263 <collectionProp name="Asserion.test_strings">
10264 <stringProp name="49586">200</stringProp>
10266 <stringProp name="Assertion.custom_message"></stringProp>
10267 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10268 <boolProp name="Assertion.assume_success">false</boolProp>
10269 <intProp name="Assertion.test_type">1</intProp>
10270 </ResponseAssertion>
10272 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
10273 <stringProp name="scriptLanguage">groovy</stringProp>
10274 <stringProp name="parameters"></stringProp>
10275 <stringProp name="filename"></stringProp>
10276 <stringProp name="cacheKey">true</stringProp>
10277 <stringProp name="script">import groovy.json.JsonSlurper;
10280 if (prev.getResponseCode() == '200') {
10281 def jsonSlurper = new JsonSlurper();
10282 res = jsonSlurper.parseText(prev.getResponseDataAsString());
10284 assert res instanceof Map;
10285 assert res.code == 200;
10286 assert res.name == "Policy PAP";
10287 assert res.healthy==true;
10288 assert res.message=="alive";
10294 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PAP Metrics" enabled="true">
10295 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10296 <collectionProp name="Arguments.arguments"/>
10298 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10299 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10300 <stringProp name="HTTPSampler.protocol">https</stringProp>
10301 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10302 <stringProp name="HTTPSampler.path">/metrics</stringProp>
10303 <stringProp name="HTTPSampler.method">GET</stringProp>
10304 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10305 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10306 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10307 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10308 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10309 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10310 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10311 <stringProp name="TestPlan.comments">PAP Metrics</stringProp>
10312 </HTTPSamplerProxy>
10314 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10315 <collectionProp name="Asserion.test_strings">
10316 <stringProp name="49586">200</stringProp>
10318 <stringProp name="Assertion.custom_message"></stringProp>
10319 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10320 <boolProp name="Assertion.assume_success">false</boolProp>
10321 <intProp name="Assertion.test_type">1</intProp>
10322 </ResponseAssertion>
10324 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
10325 <stringProp name="cacheKey">true</stringProp>
10326 <stringProp name="filename"></stringProp>
10327 <stringProp name="parameters"></stringProp>
10328 <stringProp name="script">
10329 if (prev.getResponseCode() == '200') {
10330 def res = prev.getResponseDataAsString();
10332 def deploySuccessCount = '0';
10333 if (res.contains('pap_policy_deployments_total{operation="deploy",status="SUCCESS",} ')) {
10334 deploySuccessCount = (res =~ /pap_policy_deployments_total\{operation="deploy",status="SUCCESS",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1];
10337 def undeploySuccessCount = '0';
10338 if (res.contains('pap_policy_deployments_total{operation="undeploy",status="SUCCESS",} ')) {
10339 undeploySuccessCount = (res =~ /pap_policy_deployments_total\{operation="undeploy",status="SUCCESS",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1];
10342 def deployFailureCount = '0';
10343 if (res.contains('pap_policy_deployments_total{operation="deploy",status="FAILURE",} ')) {
10344 deployFailureCount = (res =~ /pap_policy_deployments_total\{operation="deploy",status="FAILURE",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1];
10346 def undeployFailureCount = '0';
10347 if (res.contains('pap_policy_deployments_total{operation="undeploy",status="FAILURE",} ')) {
10348 undeployFailureCount = (res =~ /pap_policy_deployments_total\{operation="undeploy",status="FAILURE",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
10351 def simpleDeployAPICount = '0';
10352 if (res.contains('http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="202",uri="/policy/pap/v1/pdps/policies",} ')) {
10353 simpleDeployAPICount = (res =~ /http_server_requests_seconds_count\{exception="None",method="POST",outcome="SUCCESS",status="202",uri="\/policy\/pap\/v1\/pdps\/policies",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
10355 def simpleUndeployAPICount = '0';
10356 if (res.contains('http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="202",uri="/policy/pap/v1/pdps/policies/{name}",} ')) {
10357 simpleUndeployAPICount = (res =~ /http_server_requests_seconds_count\{exception="None",method="DELETE",outcome="SUCCESS",status="202",uri="\/policy\/pap\/v1\/pdps\/policies\/\{name\}",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
10359 def batchDeploymentAPICount = '0';
10360 if (res.contains('http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="202",uri="/policy/pap/v1/pdps/deployments/batch",} ')) {
10361 batchDeploymentAPICount = (res =~ /http_server_requests_seconds_count\{exception="None",method="POST",outcome="SUCCESS",status="202",uri="\/policy\/pap\/v1\/pdps\/deployments\/batch",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
10363 log.info("deploySuccessCount: "+ deploySuccessCount);
10364 log.info("undeploySuccessCount: "+ undeploySuccessCount);
10365 log.info("batchDeploymentAPICount: "+ batchDeploymentAPICount);
10366 log.info("simpleDeployAPICount: "+ simpleDeployAPICount);
10367 log.info("simpleUndeployAPICount: "+ simpleUndeployAPICount);
10369 vars.put("deploySuccessCount", deploySuccessCount);
10370 vars.put("undeploySuccessCount", undeploySuccessCount);
10371 vars.put("deployFailureCount", deployFailureCount);
10372 vars.put("undeployFailureCount", undeployFailureCount);
10373 vars.put("simpleDeployAPICount", simpleDeployAPICount);
10374 vars.put("simpleUndeployAPICount", simpleUndeployAPICount);
10375 vars.put("batchDeploymentAPICount", batchDeploymentAPICount);
10378 <stringProp name="scriptLanguage">groovy</stringProp>
10379 </JSR223PostProcessor>
10382 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Query" enabled="true">
10383 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10384 <collectionProp name="Arguments.arguments"/>
10386 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10387 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10388 <stringProp name="HTTPSampler.protocol">https</stringProp>
10389 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10390 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps</stringProp>
10391 <stringProp name="HTTPSampler.method">GET</stringProp>
10392 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10393 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10394 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10395 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10396 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10397 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10398 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10399 <stringProp name="TestPlan.comments">Check PdpGroup Query</stringProp>
10400 </HTTPSamplerProxy>
10402 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10403 <collectionProp name="Asserion.test_strings">
10404 <stringProp name="49586">200</stringProp>
10406 <stringProp name="Assertion.custom_message"></stringProp>
10407 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10408 <boolProp name="Assertion.assume_success">false</boolProp>
10409 <intProp name="Assertion.test_type">1</intProp>
10410 </ResponseAssertion>
10412 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
10413 <stringProp name="scriptLanguage">groovy</stringProp>
10414 <stringProp name="parameters"></stringProp>
10415 <stringProp name="filename"></stringProp>
10416 <stringProp name="cacheKey">true</stringProp>
10417 <stringProp name="script">import groovy.json.JsonSlurper;
10419 if (prev.getResponseCode() == '200') {
10420 def jsonSlurper = new JsonSlurper();
10421 res = jsonSlurper.parseText(prev.getResponseDataAsString());
10423 assert res instanceof Map;
10424 assert res.groups.size == 2;
10425 assert res.groups[0].pdpGroupState== 'ACTIVE';
10426 assert res.groups[1].pdpGroupState== 'ACTIVE';
10432 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy defaultDomain Policy" enabled="true">
10433 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
10434 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
10435 <collectionProp name="Arguments.arguments">
10436 <elementProp name="" elementType="HTTPArgument">
10437 <boolProp name="HTTPArgument.always_encode">false</boolProp>
10438 <stringProp name="Argument.value">{
10439 "policies" : [
10441 "policy-id": "operational.apex.stabilityTestDefaultDomain",
10442 "policy-version": "1.0.0"
10446 <stringProp name="Argument.metadata">=</stringProp>
10450 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10451 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10452 <stringProp name="HTTPSampler.protocol">https</stringProp>
10453 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10454 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
10455 <stringProp name="HTTPSampler.method">POST</stringProp>
10456 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10457 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10458 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10459 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10460 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10461 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10462 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10463 </HTTPSamplerProxy>
10465 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10466 <collectionProp name="Asserion.test_strings">
10467 <stringProp name="49588">202</stringProp>
10469 <stringProp name="Assertion.custom_message"></stringProp>
10470 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10471 <boolProp name="Assertion.assume_success">false</boolProp>
10472 <intProp name="Assertion.test_type">1</intProp>
10473 </ResponseAssertion>
10475 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
10476 <stringProp name="ConstantTimer.delay">5000</stringProp>
10479 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
10480 <stringProp name="TestPlan.comments">Set variables to use for verifying the deployment status</stringProp>
10481 <stringProp name="scriptLanguage">groovy</stringProp>
10482 <stringProp name="parameters"></stringProp>
10483 <stringProp name="filename"></stringProp>
10484 <stringProp name="cacheKey">true</stringProp>
10485 <stringProp name="script">vars.put("dGstatusResponse", "");
10486 vars.put("dg_status_check_counter", "0");</stringProp>
10487 </JSR223PostProcessor>
10490 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="While Controller" enabled="true">
10491 <stringProp name="WhileController.condition">${__javaScript((vars.get("dGstatusResponse") == null || vars.get("dGstatusResponse").indexOf("SUCCESS") == -1) && (parseInt(vars.get("dg_status_check_counter")) < 30),)}</stringProp>
10492 <stringProp name="TestPlan.comments">Wait until the policy is successfully deployed, retry for some time</stringProp>
10495 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check status of defaultGroup policy" enabled="true">
10496 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10497 <collectionProp name="Arguments.arguments"/>
10499 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10500 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10501 <stringProp name="HTTPSampler.protocol">https</stringProp>
10502 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10503 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/status/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0</stringProp>
10504 <stringProp name="HTTPSampler.method">GET</stringProp>
10505 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10506 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10507 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10508 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10509 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10510 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10511 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10512 </HTTPSamplerProxy>
10514 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10515 <collectionProp name="Asserion.test_strings">
10516 <stringProp name="49586">200</stringProp>
10518 <stringProp name="Assertion.custom_message"></stringProp>
10519 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10520 <boolProp name="Assertion.assume_success">false</boolProp>
10521 <intProp name="Assertion.test_type">1</intProp>
10522 </ResponseAssertion>
10524 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
10525 <stringProp name="scriptLanguage">groovy</stringProp>
10526 <stringProp name="parameters"></stringProp>
10527 <stringProp name="filename"></stringProp>
10528 <stringProp name="cacheKey">true</stringProp>
10529 <stringProp name="script">
10530 if (prev.getResponseCode() == '200') {
10531 def res = prev.getResponseDataAsString();
10532 vars.put("dGstatusResponse", res);
10534 int x =(vars.get("dg_status_check_counter")).toInteger();
10536 vars.put("dg_status_check_counter", Integer.toString(x));
10539 </JSR223PostProcessor>
10542 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
10543 <stringProp name="ConstantTimer.delay">2000</stringProp>
10547 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Audit defaultGroup" enabled="true">
10548 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10549 <collectionProp name="Arguments.arguments"/>
10551 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10552 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10553 <stringProp name="HTTPSampler.protocol">https</stringProp>
10554 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10555 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/audit/defaultGroup</stringProp>
10556 <stringProp name="HTTPSampler.method">GET</stringProp>
10557 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10558 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10559 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10560 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10561 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10562 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10563 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10564 <stringProp name="TestPlan.comments">Check PdpGroup Audit</stringProp>
10565 </HTTPSamplerProxy>
10567 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10568 <collectionProp name="Asserion.test_strings">
10569 <stringProp name="49586">200</stringProp>
10571 <stringProp name="Assertion.custom_message"></stringProp>
10572 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10573 <boolProp name="Assertion.assume_success">false</boolProp>
10574 <intProp name="Assertion.test_type">1</intProp>
10575 </ResponseAssertion>
10578 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Audit Policy (defaultGroup)" enabled="true">
10579 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10580 <collectionProp name="Arguments.arguments"/>
10582 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10583 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10584 <stringProp name="HTTPSampler.protocol">https</stringProp>
10585 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10586 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/audit/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0</stringProp>
10587 <stringProp name="HTTPSampler.method">GET</stringProp>
10588 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10589 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10590 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10591 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10592 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10593 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10594 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10595 <stringProp name="TestPlan.comments">Check PdpGroup Audit</stringProp>
10596 </HTTPSamplerProxy>
10598 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10599 <collectionProp name="Asserion.test_strings">
10600 <stringProp name="49586">200</stringProp>
10602 <stringProp name="Assertion.custom_message"></stringProp>
10603 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10604 <boolProp name="Assertion.assume_success">false</boolProp>
10605 <intProp name="Assertion.test_type">1</intProp>
10606 </ResponseAssertion>
10609 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Query" enabled="true">
10610 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10611 <collectionProp name="Arguments.arguments"/>
10613 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10614 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10615 <stringProp name="HTTPSampler.protocol">https</stringProp>
10616 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10617 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps</stringProp>
10618 <stringProp name="HTTPSampler.method">GET</stringProp>
10619 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10620 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10621 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10622 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10623 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10624 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10625 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10626 <stringProp name="TestPlan.comments">Check PdpGroup Query</stringProp>
10627 </HTTPSamplerProxy>
10629 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10630 <collectionProp name="Asserion.test_strings">
10631 <stringProp name="49586">200</stringProp>
10633 <stringProp name="Assertion.custom_message"></stringProp>
10634 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10635 <boolProp name="Assertion.assume_success">false</boolProp>
10636 <intProp name="Assertion.test_type">1</intProp>
10637 </ResponseAssertion>
10639 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
10640 <stringProp name="scriptLanguage">groovy</stringProp>
10641 <stringProp name="parameters"></stringProp>
10642 <stringProp name="filename"></stringProp>
10643 <stringProp name="cacheKey">true</stringProp>
10644 <stringProp name="script">import groovy.json.JsonSlurper;
10647 if (prev.getResponseCode() == '200') {
10648 def jsonSlurper = new JsonSlurper();
10649 res = jsonSlurper.parseText(prev.getResponseDataAsString());
10651 assert res instanceof Map;
10652 assert res.groups.size == 2;
10654 for(int groupSize=0;groupSize<res.groups.size;groupSize++){
10656 for(int subGrpSize=0;subGrpSize<res.groups[groupSize].pdpSubgroups.size;subGrpSize++){
10658 def pdpSubGrp=res.groups[groupSize].pdpSubgroups[subGrpSize];
10659 if(pdpSubGrp.pdpType =='apex'){
10660 assert pdpSubGrp.pdpInstances.size == 1; // 1 instance in defaultGroup and 1 in sampleGroup
10661 if (res.groups[groupSize].name == 'defaultGroup') {
10662 // stabilityTestDefaultDomain policy is only deployed to defaultGroup
10663 assert pdpSubGrp.policies.size == 1;
10664 assert pdpSubGrp.policies[0].name == 'operational.apex.stabilityTestDefaultDomain';
10666 else if(res.groups[groupSize].name == 'sampleGroup' ){
10667 assert pdpSubGrp.policies.size == 0;
10668 //assert pdpSubGrp.policies[0].name == 'operational.apex.stabilityTestDefaultDomain';
10679 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deployment Update for sampleGroup" enabled="true">
10680 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
10681 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
10682 <collectionProp name="Arguments.arguments">
10683 <elementProp name="" elementType="HTTPArgument">
10684 <boolProp name="HTTPArgument.always_encode">false</boolProp>
10685 <stringProp name="Argument.value">{
10686 "groups": [
10688 "name": "sampleGroup",
10689 "deploymentSubgroups": [
10691 "pdpType": "apex",
10692 "action": "POST",
10693 "policies": [
10695 "name": "operational.apex.stabilityTestSampleDomain",
10696 "version": "1.0.0"
10704 <stringProp name="Argument.metadata">=</stringProp>
10708 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10709 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10710 <stringProp name="HTTPSampler.protocol">https</stringProp>
10711 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10712 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp>
10713 <stringProp name="HTTPSampler.method">POST</stringProp>
10714 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10715 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10716 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10717 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10718 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10719 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10720 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10721 </HTTPSamplerProxy>
10723 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10724 <collectionProp name="Asserion.test_strings">
10725 <stringProp name="49588">202</stringProp>
10727 <stringProp name="Assertion.custom_message"></stringProp>
10728 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10729 <boolProp name="Assertion.assume_success">false</boolProp>
10730 <intProp name="Assertion.test_type">1</intProp>
10731 </ResponseAssertion>
10733 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
10734 <stringProp name="ConstantTimer.delay">5000</stringProp>
10737 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
10738 <stringProp name="TestPlan.comments">Set variables to use for verifying the deployment status</stringProp>
10739 <stringProp name="scriptLanguage">groovy</stringProp>
10740 <stringProp name="parameters"></stringProp>
10741 <stringProp name="filename"></stringProp>
10742 <stringProp name="cacheKey">true</stringProp>
10743 <stringProp name="script">vars.put("sGstatusResponse", "");
10744 vars.put("sg_status_check_counter", "0");</stringProp>
10745 </JSR223PostProcessor>
10748 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="While Controller" enabled="true">
10749 <stringProp name="WhileController.condition">${__javaScript((vars.get("sGstatusResponse") == null || vars.get("sGstatusResponse").indexOf("SUCCESS") == -1) && (parseInt(vars.get("sg_status_check_counter")) < 30),)}</stringProp>
10750 <stringProp name="TestPlan.comments">Wait until the policy is successfully deployed, retry for some time</stringProp>
10753 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check status of sampleGroup policy" enabled="true">
10754 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10755 <collectionProp name="Arguments.arguments"/>
10757 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10758 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10759 <stringProp name="HTTPSampler.protocol">https</stringProp>
10760 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10761 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/status/sampleGroup/operational.apex.stabilityTestSampleDomain/1.0.0</stringProp>
10762 <stringProp name="HTTPSampler.method">GET</stringProp>
10763 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10764 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10765 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10766 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10767 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10768 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10769 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10770 </HTTPSamplerProxy>
10772 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10773 <collectionProp name="Asserion.test_strings">
10774 <stringProp name="49586">200</stringProp>
10776 <stringProp name="Assertion.custom_message"></stringProp>
10777 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10778 <boolProp name="Assertion.assume_success">false</boolProp>
10779 <intProp name="Assertion.test_type">1</intProp>
10780 </ResponseAssertion>
10782 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
10783 <stringProp name="scriptLanguage">groovy</stringProp>
10784 <stringProp name="parameters"></stringProp>
10785 <stringProp name="filename"></stringProp>
10786 <stringProp name="cacheKey">true</stringProp>
10787 <stringProp name="script">
10788 if (prev.getResponseCode() == '200') {
10789 def res = prev.getResponseDataAsString();
10790 vars.put("sGstatusResponse", res);
10792 int x =(vars.get("sg_status_check_counter")).toInteger();
10794 vars.put("sg_status_check_counter", Integer.toString(x));
10796 </JSR223PostProcessor>
10799 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
10800 <stringProp name="ConstantTimer.delay">2000</stringProp>
10804 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check status of PdpGroups" enabled="true">
10805 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10806 <collectionProp name="Arguments.arguments"/>
10808 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10809 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10810 <stringProp name="HTTPSampler.protocol">https</stringProp>
10811 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10812 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/status</stringProp>
10813 <stringProp name="HTTPSampler.method">GET</stringProp>
10814 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10815 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10816 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10817 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10818 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10819 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10820 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10821 <stringProp name="TestPlan.comments">Query policies status</stringProp>
10822 </HTTPSamplerProxy>
10824 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10825 <collectionProp name="Asserion.test_strings">
10826 <stringProp name="49586">200</stringProp>
10828 <stringProp name="Assertion.custom_message"></stringProp>
10829 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10830 <boolProp name="Assertion.assume_success">false</boolProp>
10831 <intProp name="Assertion.test_type">1</intProp>
10832 </ResponseAssertion>
10835 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Query" enabled="true">
10836 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10837 <collectionProp name="Arguments.arguments"/>
10839 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10840 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10841 <stringProp name="HTTPSampler.protocol">https</stringProp>
10842 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10843 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps</stringProp>
10844 <stringProp name="HTTPSampler.method">GET</stringProp>
10845 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10846 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10847 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10848 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10849 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10850 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10851 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10852 <stringProp name="TestPlan.comments">Check PdpGroup Query</stringProp>
10853 </HTTPSamplerProxy>
10855 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10856 <collectionProp name="Asserion.test_strings">
10857 <stringProp name="49586">200</stringProp>
10859 <stringProp name="Assertion.custom_message"></stringProp>
10860 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10861 <boolProp name="Assertion.assume_success">false</boolProp>
10862 <intProp name="Assertion.test_type">1</intProp>
10863 </ResponseAssertion>
10865 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
10866 <stringProp name="scriptLanguage">groovy</stringProp>
10867 <stringProp name="parameters"></stringProp>
10868 <stringProp name="filename"></stringProp>
10869 <stringProp name="cacheKey">true</stringProp>
10870 <stringProp name="script">import groovy.json.JsonSlurper;
10873 if (prev.getResponseCode() == '200') {
10874 def jsonSlurper = new JsonSlurper();
10875 res = jsonSlurper.parseText(prev.getResponseDataAsString());
10877 assert res instanceof Map;
10878 assert res.groups.size == 2;
10880 for(int groupSize=0;groupSize<res.groups.size;groupSize++){
10882 for(int subGrpSize=0;subGrpSize<res.groups[groupSize].pdpSubgroups.size;subGrpSize++){
10884 def pdpSubGrp=res.groups[groupSize].pdpSubgroups[subGrpSize];
10885 if(pdpSubGrp.pdpType == 'apex'){
10886 if (res.groups[groupSize].name == 'defaultGroup') {
10887 assert pdpSubGrp.policies.size == 1;
10888 assert pdpSubGrp.policies[0].name == 'operational.apex.stabilityTestDefaultDomain';
10889 }else if(res.groups[groupSize].name == 'sampleGroup' ){
10890 // only stabilityTestSampleDomain policy is deployed to sampleGroup
10891 assert pdpSubGrp.policies.size == 1;
10892 assert (pdpSubGrp.policies[0].name == 'operational.apex.stabilityTestSampleDomain');
10903 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check Audit sampleGroup policy" enabled="true">
10904 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10905 <collectionProp name="Arguments.arguments"/>
10907 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10908 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10909 <stringProp name="HTTPSampler.protocol">https</stringProp>
10910 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10911 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/audit/sampleGroup/operational.apex.stabilityTestSampleDomain/1.0.0</stringProp>
10912 <stringProp name="HTTPSampler.method">GET</stringProp>
10913 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10914 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10915 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10916 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10917 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10918 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10919 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10920 <stringProp name="TestPlan.comments">Check Audit sampleGroup policy</stringProp>
10921 </HTTPSamplerProxy>
10923 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10924 <collectionProp name="Asserion.test_strings">
10925 <stringProp name="49586">200</stringProp>
10927 <stringProp name="Assertion.custom_message"></stringProp>
10928 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10929 <boolProp name="Assertion.assume_success">false</boolProp>
10930 <intProp name="Assertion.test_type">1</intProp>
10931 </ResponseAssertion>
10934 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check Consolidated Health" enabled="true">
10935 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10936 <collectionProp name="Arguments.arguments"/>
10938 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10939 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10940 <stringProp name="HTTPSampler.protocol">https</stringProp>
10941 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10942 <stringProp name="HTTPSampler.path">/policy/pap/v1/components/healthcheck</stringProp>
10943 <stringProp name="HTTPSampler.method">GET</stringProp>
10944 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10945 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10946 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10947 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10948 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10949 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
10950 <stringProp name="HTTPSampler.response_timeout"></stringProp>
10951 <stringProp name="TestPlan.comments">Consolidated Health Check</stringProp>
10952 </HTTPSamplerProxy>
10954 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
10955 <collectionProp name="Asserion.test_strings">
10956 <stringProp name="49586">200</stringProp>
10958 <stringProp name="Assertion.custom_message"></stringProp>
10959 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
10960 <boolProp name="Assertion.assume_success">false</boolProp>
10961 <intProp name="Assertion.test_type">1</intProp>
10962 </ResponseAssertion>
10964 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
10965 <stringProp name="scriptLanguage">groovy</stringProp>
10966 <stringProp name="parameters"></stringProp>
10967 <stringProp name="filename"></stringProp>
10968 <stringProp name="cacheKey">true</stringProp>
10969 <stringProp name="script">import groovy.json.JsonSlurper;
10972 if (prev.getResponseCode() == '200') {
10973 def jsonSlurper = new JsonSlurper();
10974 res = jsonSlurper.parseText(prev.getResponseDataAsString());
10975 assert res instanceof Map;
10976 assert res.pdps.xacml!=null;
10977 assert res.pdps.drools!=null;
10978 assert res.pdps.apex!=null;
10984 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check Deployed Policies" enabled="true">
10985 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10986 <collectionProp name="Arguments.arguments"/>
10988 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
10989 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
10990 <stringProp name="HTTPSampler.protocol">https</stringProp>
10991 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
10992 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/deployed</stringProp>
10993 <stringProp name="HTTPSampler.method">GET</stringProp>
10994 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
10995 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
10996 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
10997 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
10998 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
10999 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11000 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11001 <stringProp name="TestPlan.comments">Query Deployed policies</stringProp>
11002 </HTTPSamplerProxy>
11004 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11005 <collectionProp name="Asserion.test_strings">
11006 <stringProp name="49586">200</stringProp>
11008 <stringProp name="Assertion.custom_message"></stringProp>
11009 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11010 <boolProp name="Assertion.assume_success">false</boolProp>
11011 <intProp name="Assertion.test_type">1</intProp>
11012 </ResponseAssertion>
11014 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
11015 <stringProp name="scriptLanguage">groovy</stringProp>
11016 <stringProp name="parameters"></stringProp>
11017 <stringProp name="filename"></stringProp>
11018 <stringProp name="cacheKey">true</stringProp>
11019 <stringProp name="script">import groovy.json.JsonSlurper;
11022 if (prev.getResponseCode() == '200') {
11023 def jsonSlurper = new JsonSlurper();
11024 res = jsonSlurper.parseText(prev.getResponseDataAsString());
11025 assert res.size >1 ;
11032 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy Policy in sampleGroup" enabled="true">
11033 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
11034 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
11035 <collectionProp name="Arguments.arguments">
11036 <elementProp name="" elementType="HTTPArgument">
11037 <boolProp name="HTTPArgument.always_encode">false</boolProp>
11038 <stringProp name="Argument.value">{
11039 "groups": [
11041 "name": "sampleGroup",
11042 "deploymentSubgroups": [
11044 "pdpType": "apex",
11045 "action": "DELETE",
11046 "policies": [
11048 "name": "operational.apex.stabilityTestSampleDomain",
11049 "version": "1.0.0"
11057 <stringProp name="Argument.metadata">=</stringProp>
11061 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11062 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11063 <stringProp name="HTTPSampler.protocol">https</stringProp>
11064 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11065 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/deployments/batch</stringProp>
11066 <stringProp name="HTTPSampler.method">POST</stringProp>
11067 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11068 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11069 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11070 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11071 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11072 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11073 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11074 </HTTPSamplerProxy>
11076 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11077 <collectionProp name="Asserion.test_strings">
11078 <stringProp name="49588">202</stringProp>
11080 <stringProp name="Assertion.custom_message"></stringProp>
11081 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11082 <boolProp name="Assertion.assume_success">false</boolProp>
11083 <intProp name="Assertion.test_type">1</intProp>
11084 </ResponseAssertion>
11087 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy Default Policy" enabled="true">
11088 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11089 <collectionProp name="Arguments.arguments"/>
11091 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11092 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11093 <stringProp name="HTTPSampler.protocol">https</stringProp>
11094 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11095 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.apex.stabilityTestDefaultDomain</stringProp>
11096 <stringProp name="HTTPSampler.method">DELETE</stringProp>
11097 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11098 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11099 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11100 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11101 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11102 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11103 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11104 </HTTPSamplerProxy>
11106 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11107 <collectionProp name="Asserion.test_strings">
11108 <stringProp name="49588">202</stringProp>
11110 <stringProp name="Assertion.custom_message"></stringProp>
11111 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11112 <boolProp name="Assertion.assume_success">false</boolProp>
11113 <intProp name="Assertion.test_type">1</intProp>
11114 </ResponseAssertion>
11116 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
11117 <stringProp name="ConstantTimer.delay">5000</stringProp>
11120 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
11121 <stringProp name="TestPlan.comments">Set variables to use for verifying the deployment status</stringProp>
11122 <stringProp name="scriptLanguage">groovy</stringProp>
11123 <stringProp name="parameters"></stringProp>
11124 <stringProp name="filename"></stringProp>
11125 <stringProp name="cacheKey">true</stringProp>
11126 <stringProp name="script">// reset with an initial value for the while loop condition in next step to pass and the status request is made atleast once
11127 vars.put("statusResponse", "operational.apex.stabilityTestDefaultDomain");
11128 //initialize counter to 0
11129 vars.put("status_check_counter", "0");</stringProp>
11130 </JSR223PostProcessor>
11133 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="While Controller" enabled="true">
11134 <stringProp name="WhileController.condition">${__javaScript((vars.get("statusResponse").indexOf("operational.apex.stabilityTestDefaultDomain") != -1 || vars.get("statusResponse").indexOf("operational.apex.stabilityTestSampleDomain") != -1) && (parseInt(vars.get("status_check_counter")) < 30),)}</stringProp>
11135 <stringProp name="TestPlan.comments">Wait until all policies are successfully undeployed</stringProp>
11138 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check status of policies" enabled="true">
11139 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11140 <collectionProp name="Arguments.arguments"/>
11142 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11143 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11144 <stringProp name="HTTPSampler.protocol">https</stringProp>
11145 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11146 <stringProp name="HTTPSampler.path">/policy/pap/v1/policies/status</stringProp>
11147 <stringProp name="HTTPSampler.method">GET</stringProp>
11148 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11149 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11150 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11151 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11152 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11153 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11154 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11155 </HTTPSamplerProxy>
11157 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
11158 <stringProp name="scriptLanguage">groovy</stringProp>
11159 <stringProp name="parameters"></stringProp>
11160 <stringProp name="filename"></stringProp>
11161 <stringProp name="cacheKey">true</stringProp>
11162 <stringProp name="script">
11163 if (prev.getResponseCode() == '200') {
11164 def res = prev.getResponseDataAsString();
11165 vars.put("statusResponse", res);
11167 int x =(vars.get("status_check_counter")).toInteger();
11169 vars.put("status_check_counter", Integer.toString(x));
11171 </JSR223PostProcessor>
11174 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
11175 <stringProp name="ConstantTimer.delay">3000</stringProp>
11179 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check PdpGroup Query" enabled="true">
11180 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11181 <collectionProp name="Arguments.arguments"/>
11183 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11184 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11185 <stringProp name="HTTPSampler.protocol">https</stringProp>
11186 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11187 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps</stringProp>
11188 <stringProp name="HTTPSampler.method">GET</stringProp>
11189 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11190 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11191 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11192 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11193 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11194 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11195 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11196 <stringProp name="TestPlan.comments">Check PdpGroup Query</stringProp>
11197 </HTTPSamplerProxy>
11199 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11200 <collectionProp name="Asserion.test_strings">
11201 <stringProp name="49586">200</stringProp>
11203 <stringProp name="Assertion.custom_message"></stringProp>
11204 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11205 <boolProp name="Assertion.assume_success">false</boolProp>
11206 <intProp name="Assertion.test_type">1</intProp>
11207 </ResponseAssertion>
11209 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
11210 <stringProp name="scriptLanguage">groovy</stringProp>
11211 <stringProp name="parameters"></stringProp>
11212 <stringProp name="filename"></stringProp>
11213 <stringProp name="cacheKey">true</stringProp>
11214 <stringProp name="script">import groovy.json.JsonSlurper;
11216 if (prev.getResponseCode() == '200') {
11217 def jsonSlurper = new JsonSlurper();
11218 res = jsonSlurper.parseText(prev.getResponseDataAsString());
11220 assert res instanceof Map;
11221 assert res.groups.size == 2;
11223 for(int groupSize=0;groupSize<res.groups.size;groupSize++){
11225 for(int subGrpSize=0;subGrpSize<res.groups[groupSize].pdpSubgroups.size;subGrpSize++){
11227 def pdpSubGrp=res.groups[groupSize].pdpSubgroups[subGrpSize];
11228 if(pdpSubGrp.pdpType =='apex'){
11229 assert pdpSubGrp.pdpInstances.size == 1; // 1 instance in defaultGroup and 1 in sampleGroup
11230 if (res.groups[groupSize].name == 'defaultGroup') {
11231 assert pdpSubGrp.policies.size == 0;
11233 else if(res.groups[groupSize].name == 'sampleGroup' ){
11234 assert pdpSubGrp.policies.size == 0;
11245 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PAP Metrics after deployments" enabled="true">
11246 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11247 <collectionProp name="Arguments.arguments"/>
11249 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11250 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11251 <stringProp name="HTTPSampler.protocol">https</stringProp>
11252 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11253 <stringProp name="HTTPSampler.path">/metrics</stringProp>
11254 <stringProp name="HTTPSampler.method">GET</stringProp>
11255 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11256 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11257 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11258 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11259 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11260 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11261 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11262 <stringProp name="TestPlan.comments">PAP Metrics after deployments</stringProp>
11263 </HTTPSamplerProxy>
11265 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11266 <collectionProp name="Asserion.test_strings">
11267 <stringProp name="49586">200</stringProp>
11269 <stringProp name="Assertion.custom_message"></stringProp>
11270 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11271 <boolProp name="Assertion.assume_success">false</boolProp>
11272 <intProp name="Assertion.test_type">1</intProp>
11273 </ResponseAssertion>
11275 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
11276 <stringProp name="scriptLanguage">groovy</stringProp>
11277 <stringProp name="parameters"></stringProp>
11278 <stringProp name="filename"></stringProp>
11279 <stringProp name="cacheKey">true</stringProp>
11280 <stringProp name="script">
11281 if (prev.getResponseCode() == '200') {
11282 def res = prev.getResponseDataAsString();
11283 assert res.contains('http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/pap/v1/healthcheck",}');
11285 def newDeploySuccessCount = '0';
11286 if (res.contains('pap_policy_deployments_total{operation="deploy",status="SUCCESS",} ')) {
11287 newDeploySuccessCount = (res =~ /pap_policy_deployments_total\{operation="deploy",status="SUCCESS",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1];
11290 def newUndeploySuccessCount = '0';
11291 if (res.contains('pap_policy_deployments_total{operation="undeploy",status="SUCCESS",} ')) {
11292 newUndeploySuccessCount = (res =~ /pap_policy_deployments_total\{operation="undeploy",status="SUCCESS",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1];
11295 def newDeployFailureCount = '0';
11296 if (res.contains('pap_policy_deployments_total{operation="deploy",status="FAILURE",} ')) {
11297 newDeployFailureCount = (res =~ /pap_policy_deployments_total\{operation="deploy",status="FAILURE",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1];
11299 def newUndeployFailureCount = '0';
11300 if (res.contains('pap_policy_deployments_total{operation="undeploy",status="FAILURE",} ')) {
11301 newUndeployFailureCount = (res =~ /pap_policy_deployments_total\{operation="undeploy",status="FAILURE",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
11304 def newSimpleDeployAPICount = '0';
11305 if (res.contains('http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="202",uri="/policy/pap/v1/pdps/policies",} ')) {
11306 newSimpleDeployAPICount = (res =~ /http_server_requests_seconds_count\{exception="None",method="POST",outcome="SUCCESS",status="202",uri="\/policy\/pap\/v1\/pdps\/policies",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
11308 def newSimpleUndeployAPICount = '0';
11309 if (res.contains('http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="202",uri="/policy/pap/v1/pdps/policies/{name}",} ')) {
11310 newSimpleUndeployAPICount = (res =~ /http_server_requests_seconds_count\{exception="None",method="DELETE",outcome="SUCCESS",status="202",uri="\/policy\/pap\/v1\/pdps\/policies\/\{name\}",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
11312 def newBatchDeploymentAPICount = '0';
11313 if (res.contains('http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="202",uri="/policy/pap/v1/pdps/deployments/batch",} ')) {
11314 newBatchDeploymentAPICount = (res =~ /http_server_requests_seconds_count\{exception="None",method="POST",outcome="SUCCESS",status="202",uri="\/policy\/pap\/v1\/pdps\/deployments\/batch",\} ([0-9]+)?([.]*[0-9]*)?/)[0][1]
11316 log.info("newDeploySuccessCount: "+ newDeploySuccessCount);
11317 log.info("newUndeploySuccessCount: "+ newUndeploySuccessCount);
11318 log.info("newBatchDeploymentAPICount: "+ newBatchDeploymentAPICount);
11319 log.info("newSimpleDeployAPICount: "+ newSimpleDeployAPICount);
11320 log.info("newSimpleUndeployAPICount: "+ newSimpleUndeployAPICount);
11322 assert Long.valueOf(vars.get("deployFailureCount")) == Long.valueOf(newDeployFailureCount);
11323 assert Long.valueOf(vars.get("undeployFailureCount")) == Long.valueOf(newUndeployFailureCount);
11324 // One policy is deployed/undeployed using batch API and the other one using simple APIs
11325 assert (Long.valueOf(vars.get("simpleDeployAPICount"))+1) <= Long.valueOf(newSimpleDeployAPICount);
11326 assert (Long.valueOf(vars.get("simpleUndeployAPICount"))+1) <= Long.valueOf(newSimpleUndeployAPICount);
11327 assert (Long.valueOf(vars.get("batchDeploymentAPICount"))+2) <= Long.valueOf(newBatchDeploymentAPICount);
11328 assert (Long.valueOf(vars.get("deploySuccessCount"))+2) <= Long.valueOf(newDeploySuccessCount);
11329 assert (Long.valueOf(vars.get("undeploySuccessCount"))+2) <= Long.valueOf(newUndeploySuccessCount);
11336 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
11337 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
11338 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
11339 <boolProp name="LoopController.continue_forever">false</boolProp>
11340 <stringProp name="LoopController.loops">1</stringProp>
11342 <stringProp name="ThreadGroup.num_threads">1</stringProp>
11343 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
11344 <boolProp name="ThreadGroup.scheduler">false</boolProp>
11345 <stringProp name="ThreadGroup.duration"></stringProp>
11346 <stringProp name="ThreadGroup.delay"></stringProp>
11347 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
11350 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Change sampleGroup State to PASSIVE" enabled="true">
11351 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11352 <collectionProp name="Arguments.arguments"/>
11354 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11355 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11356 <stringProp name="HTTPSampler.protocol">https</stringProp>
11357 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11358 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/groups/sampleGroup?state=PASSIVE</stringProp>
11359 <stringProp name="HTTPSampler.method">PUT</stringProp>
11360 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11361 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11362 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11363 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11364 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11365 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11366 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11367 </HTTPSamplerProxy>
11369 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11370 <collectionProp name="Asserion.test_strings">
11371 <stringProp name="49586">200</stringProp>
11373 <stringProp name="Assertion.custom_message"></stringProp>
11374 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11375 <boolProp name="Assertion.assume_success">false</boolProp>
11376 <intProp name="Assertion.test_type">1</intProp>
11377 </ResponseAssertion>
11380 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete PdpGroup SampleGroup" enabled="true">
11381 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11382 <collectionProp name="Arguments.arguments"/>
11384 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11385 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11386 <stringProp name="HTTPSampler.protocol">https</stringProp>
11387 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11388 <stringProp name="HTTPSampler.path">/policy/pap/v1/pdps/groups/sampleGroup</stringProp>
11389 <stringProp name="HTTPSampler.method">DELETE</stringProp>
11390 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11391 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11392 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11393 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11394 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11395 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11396 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11397 <stringProp name="TestPlan.comments">Delete PdpGroup </stringProp>
11398 </HTTPSamplerProxy>
11400 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11401 <collectionProp name="Asserion.test_strings">
11402 <stringProp name="49586">200</stringProp>
11404 <stringProp name="Assertion.custom_message"></stringProp>
11405 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11406 <boolProp name="Assertion.assume_success">false</boolProp>
11407 <intProp name="Assertion.test_type">1</intProp>
11408 </ResponseAssertion>
11411 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Change defaultGroup State to PASSIVE" enabled="true">
11412 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11413 <collectionProp name="Arguments.arguments"/>
11415 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
11416 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
11417 <stringProp name="HTTPSampler.protocol">https</stringProp>
11418 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11419 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE</stringProp>
11420 <stringProp name="HTTPSampler.method">PUT</stringProp>
11421 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11422 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11423 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11424 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11425 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11426 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11427 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11428 </HTTPSamplerProxy>
11430 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11431 <collectionProp name="Asserion.test_strings">
11432 <stringProp name="49586">200</stringProp>
11434 <stringProp name="Assertion.custom_message"></stringProp>
11435 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11436 <boolProp name="Assertion.assume_success">false</boolProp>
11437 <intProp name="Assertion.test_type">1</intProp>
11438 </ResponseAssertion>
11441 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy defaultDomain" enabled="true">
11442 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11443 <collectionProp name="Arguments.arguments"/>
11445 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
11446 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
11447 <stringProp name="HTTPSampler.protocol">https</stringProp>
11448 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11449 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0</stringProp>
11450 <stringProp name="HTTPSampler.method">DELETE</stringProp>
11451 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11452 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11453 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11454 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11455 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11456 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11457 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11458 </HTTPSamplerProxy>
11460 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11461 <collectionProp name="Asserion.test_strings">
11462 <stringProp name="49586">200</stringProp>
11464 <stringProp name="Assertion.custom_message"></stringProp>
11465 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11466 <boolProp name="Assertion.assume_success">false</boolProp>
11467 <intProp name="Assertion.test_type">1</intProp>
11468 </ResponseAssertion>
11471 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy for sampleGroup" enabled="true">
11472 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11473 <collectionProp name="Arguments.arguments"/>
11475 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
11476 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
11477 <stringProp name="HTTPSampler.protocol">https</stringProp>
11478 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11479 <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/operational.apex.stabilityTestSampleDomain/versions/1.0.0</stringProp>
11480 <stringProp name="HTTPSampler.method">DELETE</stringProp>
11481 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11482 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11483 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11484 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11485 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11486 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11487 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11488 </HTTPSamplerProxy>
11490 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11491 <collectionProp name="Asserion.test_strings">
11492 <stringProp name="49586">200</stringProp>
11494 <stringProp name="Assertion.custom_message"></stringProp>
11495 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11496 <boolProp name="Assertion.assume_success">false</boolProp>
11497 <intProp name="Assertion.test_type">1</intProp>
11498 </ResponseAssertion>
11501 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Nodetemplate metadata for sampleDomain policy" enabled="true">
11502 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
11503 <collectionProp name="Arguments.arguments"/>
11505 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
11506 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
11507 <stringProp name="HTTPSampler.protocol">https</stringProp>
11508 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
11509 <stringProp name="HTTPSampler.path">/policy/api/v1/nodetemplates/apex.metadata.pnf/versions/1.0.0</stringProp>
11510 <stringProp name="HTTPSampler.method">DELETE</stringProp>
11511 <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
11512 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
11513 <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
11514 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
11515 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
11516 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
11517 <stringProp name="HTTPSampler.response_timeout"></stringProp>
11518 </HTTPSamplerProxy>
11520 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
11521 <collectionProp name="Asserion.test_strings">
11522 <stringProp name="49586">200</stringProp>
11524 <stringProp name="Assertion.custom_message"></stringProp>
11525 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
11526 <boolProp name="Assertion.assume_success">false</boolProp>
11527 <intProp name="Assertion.test_type">1</intProp>
11528 </ResponseAssertion>
11532 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
11533 <boolProp name="ResultCollector.error_logging">false</boolProp>
11535 <name>saveConfig</name>
11536 <value class="SampleSaveConfiguration">
11538 <latency>true</latency>
11539 <timestamp>true</timestamp>
11540 <success>true</success>
11541 <label>true</label>
11543 <message>true</message>
11544 <threadName>true</threadName>
11545 <dataType>true</dataType>
11546 <encoding>false</encoding>
11547 <assertions>true</assertions>
11548 <subresults>true</subresults>
11549 <responseData>false</responseData>
11550 <samplerData>false</samplerData>
11552 <fieldNames>true</fieldNames>
11553 <responseHeaders>false</responseHeaders>
11554 <requestHeaders>false</requestHeaders>
11555 <responseDataOnError>false</responseDataOnError>
11556 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
11557 <assertionsResultsToSave>0</assertionsResultsToSave>
11558 <bytes>true</bytes>
11559 <sentBytes>true</sentBytes>
11561 <threadCounts>true</threadCounts>
11562 <sampleCount>true</sampleCount>
11563 <idleTime>true</idleTime>
11564 <connectTime>true</connectTime>
11567 <stringProp name="filename">/home/asreekumar/s3p/resultSummary.jtl</stringProp>
11570 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
11571 <boolProp name="ResultCollector.error_logging">false</boolProp>
11573 <name>saveConfig</name>
11574 <value class="SampleSaveConfiguration">
11576 <latency>true</latency>
11577 <timestamp>true</timestamp>
11578 <success>true</success>
11579 <label>true</label>
11581 <message>true</message>
11582 <threadName>true</threadName>
11583 <dataType>true</dataType>
11584 <encoding>false</encoding>
11585 <assertions>true</assertions>
11586 <subresults>true</subresults>
11587 <responseData>false</responseData>
11588 <samplerData>false</samplerData>
11590 <fieldNames>true</fieldNames>
11591 <responseHeaders>false</responseHeaders>
11592 <requestHeaders>false</requestHeaders>
11593 <responseDataOnError>false</responseDataOnError>
11594 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
11595 <assertionsResultsToSave>0</assertionsResultsToSave>
11596 <bytes>true</bytes>
11597 <sentBytes>true</sentBytes>
11599 <threadCounts>true</threadCounts>
11600 <idleTime>true</idleTime>
11601 <connectTime>true</connectTime>
11604 <stringProp name="filename">/home/asreekumar/s3p/resultTree.jtl</stringProp>
11607 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
11608 <boolProp name="ResultCollector.error_logging">false</boolProp>
11610 <name>saveConfig</name>
11611 <value class="SampleSaveConfiguration">
11613 <latency>true</latency>
11614 <timestamp>true</timestamp>
11615 <success>true</success>
11616 <label>true</label>
11618 <message>true</message>
11619 <threadName>true</threadName>
11620 <dataType>true</dataType>
11621 <encoding>false</encoding>
11622 <assertions>true</assertions>
11623 <subresults>true</subresults>
11624 <responseData>false</responseData>
11625 <samplerData>false</samplerData>
11627 <fieldNames>true</fieldNames>
11628 <responseHeaders>false</responseHeaders>
11629 <requestHeaders>false</requestHeaders>
11630 <responseDataOnError>false</responseDataOnError>
11631 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
11632 <assertionsResultsToSave>0</assertionsResultsToSave>
11633 <bytes>true</bytes>
11634 <sentBytes>true</sentBytes>
11636 <threadCounts>true</threadCounts>
11637 <idleTime>true</idleTime>
11638 <connectTime>true</connectTime>
11641 <stringProp name="filename">/home/asreekumar/s3p/resultTable.log</stringProp>