}
Component eitherOriginComponent = getInstanceOriginNode(currentResourceInstance);
-
DataForMergeHolder dataHolder = compInstMergeDataBL
.saveAllDataBeforeDeleting(containerComponent, currentResourceInstance, eitherOriginComponent);
ComponentInstance resResourceInfo = deleteComponentInstance(containerComponent, componentInstanceId,
} else {
Component origComponent = null;
OriginTypeEnum originType = currentResourceInstance.getOriginType();
+ newComponentInstance.setOriginType(originType);
if (originType == OriginTypeEnum.ServiceProxy) {
- newComponentInstance.setOriginType(originType);
Either<Component, StorageOperationStatus> serviceProxyOrigin = toscaOperationFacade
.getLatestByName("serviceProxy");
if (isServiceProxyOrigin(serviceProxyOrigin)) {
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()));