diff options
author | Ben David, Elad (eb7504) <eb7504@intl.att.com> | 2020-05-21 13:53:36 +0300 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2020-05-24 07:05:28 +0000 |
commit | 5761563513234617a6cec9e4a25b9dcd8d43ccf5 (patch) | |
tree | 4a615df8a9ccf131446a96e1bc1bf98105524a73 /catalog-be | |
parent | cf34db936b5a65e2f29a234cce201d62fffcaec8 (diff) |
500 error at WFD artifact-deliveries api
Change-Id: I9227387c26b6ee4c68c635b78c4980a9c07b3d35
Issue-ID: SDC-3052
Signed-off-by: Ben David, Elad (eb7504) <eb7504@intl.att.com>
(cherry picked from commit 988c286efe09c01db6f2e41f0ce4b2f49f92d1a6)
Diffstat (limited to 'catalog-be')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java index b6d64d2fc7..280f9991cc 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java @@ -517,24 +517,25 @@ public class InterfaceOperationBusinessLogic extends BaseBusinessLogic { private void addOperationToInterface(InterfaceDefinition interfaceDefinition, Operation interfaceOperation) { interfaceOperation.setUniqueId(UUID.randomUUID().toString()); - interfaceOperation.setImplementation(createArtifactDefinition(UUID.randomUUID().toString())); + interfaceOperation.setImplementation(createArtifactDefinition(UUID.randomUUID().toString(), interfaceOperation.getName())); interfaceDefinition.getOperations() .put(interfaceOperation.getUniqueId(), new OperationDataDefinition(interfaceOperation)); } private void updateOperationOnInterface(InterfaceDefinition interfaceDefinition, Operation interfaceOperation, String artifactUuId) { - interfaceOperation.setImplementation(createArtifactDefinition(artifactUuId)); + interfaceOperation.setImplementation(createArtifactDefinition(artifactUuId, interfaceOperation.getName())); interfaceDefinition.getOperations() .put(interfaceOperation.getUniqueId(), new OperationDataDefinition(interfaceOperation)); } - private ArtifactDefinition createArtifactDefinition(String artifactUuId) { + private ArtifactDefinition createArtifactDefinition(String artifactUuId, String operationName) { ArtifactDefinition artifactDefinition = new ArtifactDefinition(); artifactDefinition.setArtifactUUID(artifactUuId); artifactDefinition.setUniqueId(artifactUuId); artifactDefinition.setArtifactType(ArtifactTypeEnum.WORKFLOW.getType()); artifactDefinition.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT); + artifactDefinition.setArtifactLabel(operationName + ".workflowArtifact"); return artifactDefinition; } |