From 82358726fc0c37adcd426a41cdca4f3b4ddf2c56 Mon Sep 17 00:00:00 2001 From: "KULESHOV, ELENA" Date: Wed, 24 Mar 2021 09:46:59 -0400 Subject: request db endpoint and bpmn cleanup added new request db adapter endpoint use bpmn constants when available allow bpmn input setup parameter to be extended Issue-ID: SO-3606 Signed-off-by: AT&T Open Source Change-Id: Ibde4d82cc7432ea3cdd9a75aef0dc695ebbf9a1b --- .../data/repository/RequestProcessingDataRepository.java | 4 ++++ .../java/org/onap/so/db/request/client/RequestsDbClient.java | 12 ++++++++++++ 2 files changed, 16 insertions(+) (limited to 'mso-api-handlers') diff --git a/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/RequestProcessingDataRepository.java b/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/RequestProcessingDataRepository.java index 21bc2a697a..9ec214fc6d 100644 --- a/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/RequestProcessingDataRepository.java +++ b/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/RequestProcessingDataRepository.java @@ -23,6 +23,7 @@ package org.onap.so.db.request.data.repository; import java.util.List; import org.onap.so.db.request.beans.RequestProcessingData; import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.data.rest.core.annotation.RepositoryRestResource; @@ -44,4 +45,7 @@ public interface RequestProcessingDataRepository extends JpaRepository getRequestProcessingDataBySoRequestIdAndNameAndTagOrderByCreateTimeDesc( + String soRequestId, String name, String tag) { + + return getMultipleResponse(getUri(UriBuilder + .fromUri(endpoint + findBySoRequestIdAndNameAndTagOrderByCreateTimeDesc) + .queryParam(SO_REQUEST_ID, soRequestId).queryParam(NAME, name).queryParam(TAG, tag).build().toString()), + new ParameterizedTypeReference>() {}); + } + public void persistProcessingData(String flowExecutionPath, String requestId) { -- cgit 1.2.3-korg