Issue-ID: SDC-3433
Signed-off-by: davsad <david.sadlier@est.tech>
Change-Id: Ic4334965b0652fba4f55d4f5892d006f8ca469f0
}
Component eitherOriginComponent = getInstanceOriginNode(currentResourceInstance);
}
Component eitherOriginComponent = getInstanceOriginNode(currentResourceInstance);
DataForMergeHolder dataHolder = compInstMergeDataBL
.saveAllDataBeforeDeleting(containerComponent, currentResourceInstance, eitherOriginComponent);
ComponentInstance resResourceInfo = deleteComponentInstance(containerComponent, componentInstanceId,
DataForMergeHolder dataHolder = compInstMergeDataBL
.saveAllDataBeforeDeleting(containerComponent, currentResourceInstance, eitherOriginComponent);
ComponentInstance resResourceInfo = deleteComponentInstance(containerComponent, componentInstanceId,
} else {
Component origComponent = null;
OriginTypeEnum originType = currentResourceInstance.getOriginType();
} else {
Component origComponent = null;
OriginTypeEnum originType = currentResourceInstance.getOriginType();
+ newComponentInstance.setOriginType(originType);
if (originType == OriginTypeEnum.ServiceProxy) {
if (originType == OriginTypeEnum.ServiceProxy) {
- newComponentInstance.setOriginType(originType);
Either<Component, StorageOperationStatus> serviceProxyOrigin = toscaOperationFacade
.getLatestByName("serviceProxy");
if (isServiceProxyOrigin(serviceProxyOrigin)) {
Either<Component, StorageOperationStatus> serviceProxyOrigin = toscaOperationFacade
.getLatestByName("serviceProxy");
if (isServiceProxyOrigin(serviceProxyOrigin)) {
componentsUtils.convertFromStorageResponse(fillProxyRes));
}
} else if (originType == OriginTypeEnum.ServiceSubstitution){
componentsUtils.convertFromStorageResponse(fillProxyRes));
}
} else if (originType == OriginTypeEnum.ServiceSubstitution){
- newComponentInstance.setOriginType(originType);
-
final Either<Component, StorageOperationStatus> getServiceResult = toscaOperationFacade.getToscaFullElement(newComponentInstance.getComponentUid());
if (getServiceResult.isRight()) {
throw new ByActionStatusComponentException(componentsUtils.convertFromStorageResponse(getServiceResult.right().value()));
final Either<Component, StorageOperationStatus> getServiceResult = toscaOperationFacade.getToscaFullElement(newComponentInstance.getComponentUid());
if (getServiceResult.isRight()) {
throw new ByActionStatusComponentException(componentsUtils.convertFromStorageResponse(getServiceResult.right().value()));