diff options
author | 2020-06-30 16:22:34 +0000 | |
---|---|---|
committer | 2020-07-02 06:06:28 +0000 | |
commit | d11a3e9608178a9b2ccc8249a3263c571783f69d (patch) | |
tree | f1725c0a3c42f3dbc1684af9c7b62cc5f51cc2f4 /platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml | |
parent | 279a547642166a05a8f1ca246a785ba978096558 (diff) |
DG changes for the closed loop and async
support in MDONS
Change-Id: Ibb16b84cd37d8d41dd0f511fea81ec329a0f8021
Issue-ID: SDNC-1233
Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Former-commit-id: 225e1b887423a6a5972cf90216156eebc727a41d
Diffstat (limited to 'platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml')
-rw-r--r-- | platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml b/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml index db55f387..cdb04afb 100644 --- a/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml +++ b/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml @@ -27,10 +27,18 @@ resource='service-instance' resource='SQL'
key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $request-id'
force='true' pfx='save-result'></save>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+key="SELECT * from REQUEST_DETAILS WHERE domain_requests = $request-id "
+pfx='access'></get-resource>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $access.request-id'
+force='true' pfx='save-result'></save>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
<parameter name="level" value="info" />
<parameter name="field1" value="Finished updating service in AAI and DB to CREATED"/>
+ <parameter name="field2" value="`$access.request-id`"/>
</record>
</block>
</outcome>
@@ -43,10 +51,26 @@ force='true' pfx='save-result'></save> </block>
</outcome>
</switch>
+ <set>
+ <parameter name='so.service-instance-id' value='`$access.service-instance-id`' />
+ <parameter name='so.service-type' value='`$access.service-type`' />
+ <parameter name='so.svc-request-id' value='`$access.request-id`' />
+ <parameter name='so.response-code' value='`$response-code`' />
+ <parameter name='so.response-message' value='`$response-message`' />
+ <parameter name='so.ack-final-indicator' value='Y' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Parameters"/>
+ <parameter name="field2" value="`$so.service-instance-id`"/>
+ <parameter name="field3" value="`$so.svc-request-id`"/>
+ <parameter name="field4" value="`$so.response-code`"/>
+ </record>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.template.so.response.filename`" />
- <parameter name="restapiUrl" value="`$output.notification-url`"/>
- <parameter name="restapiUser" value="`$prop.so.username`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/async-response-so.json'`" />
+ <parameter name="restapiUrl" value="http://so-bpmn-infra.onap:8081/mso/async/services/updateStatus"/>
+ <parameter name="restapiUser" value="sdncaBpmn" />
<parameter name="restapiPassword" value="`$prop.so.password`"/>
<parameter name="httpMethod" value="POST"/>
<parameter name="responsePrefix" value="so-response"/>
|