Set resource data value when fetch from database 35/93135/4
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Thu, 8 Aug 2019 22:20:13 +0000 (18:20 -0400)
committerDan Timoney <dtimoney@att.com>
Fri, 9 Aug 2019 19:49:22 +0000 (19:49 +0000)
commit56f989b82d6065a8aad01b28469aed16f7663e5c
treef989cf40df96c9f05b28a85d01c954659a8f32a3
parent884c6b10720dbfc08a442f0693a994f9abd1bd57
Set resource data value when fetch from database

When doing resource resolution, if the same resolution-key,
or the same resource-id/resource-type combo, is used, then the
process will only try to resolve the resources set with a "failure"
status from the RESOURCE_RESOLUTION db table.
In the case the resource has previsously successfully been resolved,
then we need to set its value in the resource assignemnt resolution
store so it can be used later in the processing, for instance if another
resource depends on it.

Change-Id: Ifa3957fe3d2365e1f4347aa61ed963124f8a69f7
Issue-ID: CCSDK-1606
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceResolutionService.kt