0029374f93c192eeed6817db00b875825c73ac38
[policy/apex-pdp.git] /
1 {
2     "engineServiceParameters": {
3         "name": "MyApexEngine",
4         "version": "0.0.1",
5         "id": 45,
6         "instanceCount": 1,
7         "deploymentPort": 12561,
8         "policyModelFileName": "target/TaskParametersTestPolicyModel.json",
9         "engineParameters": {
10             "executorParameters": {
11                 "JAVASCRIPT": {
12                     "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
13                 }
14             },
15             "taskParameters": [
16                 {
17                     "key": "serviceId",
18                     "value": "serviceIdxyz",
19                     "taskId": "SetServiceIdForTest:1.0.0"
20                 },
21                 {
22                     "key": "closedLoopId",
23                     "value": "closedLoopIdxyz",
24                     "taskId": "SetControlLoopNameForTest:1.0.0"
25                 }
26             ]
27         }    },
28     "eventInputParameters": {
29         "GetCodeConsumer": {
30             "carrierTechnologyParameters": {
31                 "carrierTechnology": "RESTCLIENT",
32                 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
33                 "parameters": {
34                     "url": "http://localhost:32801/TestTaskParametersRest/apex/event/GetEvent",
35                     "httpMethod": "GET"
36                 }
37             },
38             "eventProtocolParameters": {
39                 "eventProtocol": "JSON"
40             },
41             "eventName": "CLTriggerEvent"
42         },
43         "FirstConsumer": {
44             "carrierTechnologyParameters": {
45                 "carrierTechnology": "RESTREQUESTOR",
46                 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
47                 "parameters": {
48                     "url": "http://localhost:32801/TestTaskParametersRest/apex/service/{tagId}/{value}",
49                     "httpMethod": "POST"
50                 }
51             },
52             "eventProtocolParameters": {
53                 "eventProtocol": "JSON"
54             },
55             "eventNameFilter": "ServiceInfoEvent",
56             "requestorMode": true,
57             "requestorPeer": "FirstProducer"
58         }
59     },
60     "eventOutputParameters": {
61         "FirstProducer": {
62             "carrierTechnologyParameters": {
63                 "carrierTechnology": "RESTREQUESTOR",
64                 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
65             },
66             "eventProtocolParameters": {
67                 "eventProtocol": "JSON"
68             },
69             "eventNameFilter": "ServiceInfoEvent",
70             "requestorMode": true,
71             "requestorPeer": "FirstConsumer"
72         },
73         "SecondProducer": {
74             "carrierTechnologyParameters": {
75                 "carrierTechnology": "RESTCLIENT",
76                 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
77                 "parameters": {
78                     "url": "http://localhost:32801/TestTaskParametersRest/apex/action/{tagId}/{value}",
79                     "httpMethod": "POST"
80                 }
81             },
82             "eventProtocolParameters": {
83                 "eventProtocol": "JSON"
84             },
85             "eventNameFilter": "CLOutputEvent"
86         }
87     }
88 }