businessObjectFormatKey.setBusinessObjectFormatVersion(generateDdlRequest.businessObjectFormatVersion);
businessObjectFormatKey.setBusinessObjectFormatVersion(generateDdlRequest.businessObjectFormatVersion);
businessObjectFormatKey.setBusinessObjectFormatUsage(tuple.get(businessObjectFormatUsageColumn)); businessObjectFormatKey.setBusinessObjectFormatFileType(tuple.get(fileTypeCodeColumn)); businessObjectFormatKey.setBusinessObjectFormatVersion( tuple.get(latestBusinessObjectFormatVersion ? maxBusinessObjectFormatVersionExpression : businessObjectFormatVersionColumn));
businessObjectFormatKey.setBusinessObjectFormatUsage(tuple.get(businessObjectFormatUsageColumn)); businessObjectFormatKey.setBusinessObjectFormatFileType(tuple.get(fileTypeCodeColumn)); businessObjectFormatKey.setBusinessObjectFormatVersion( tuple.get(latestBusinessObjectFormatVersion ? maxBusinessObjectFormatVersionExpression : businessObjectFormatVersionColumn));
/** * Asserts that a format exists and gets the {@link BusinessObjectFormatEntity} from the given request. * * @param request {@link BusinessObjectDataInvalidateUnregisteredRequest} with format information * * @return {@link BusinessObjectFormatEntity} * @throws ObjectNotFoundException when the format does not exist */ private BusinessObjectFormatEntity getBusinessObjectFormatEntity(BusinessObjectDataInvalidateUnregisteredRequest request) { BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(); businessObjectFormatKey.setNamespace(request.getNamespace()); businessObjectFormatKey.setBusinessObjectDefinitionName(request.getBusinessObjectDefinitionName()); businessObjectFormatKey.setBusinessObjectFormatUsage(request.getBusinessObjectFormatUsage()); businessObjectFormatKey.setBusinessObjectFormatFileType(request.getBusinessObjectFormatFileType()); businessObjectFormatKey.setBusinessObjectFormatVersion(request.getBusinessObjectFormatVersion()); return businessObjectFormatDaoHelper.getBusinessObjectFormatEntity(businessObjectFormatKey); }
/** * Asserts that a format exists and gets the {@link BusinessObjectFormatEntity} from the given request. * * @param request {@link BusinessObjectDataInvalidateUnregisteredRequest} with format information * * @return {@link BusinessObjectFormatEntity} * @throws ObjectNotFoundException when the format does not exist */ private BusinessObjectFormatEntity getBusinessObjectFormatEntity(BusinessObjectDataInvalidateUnregisteredRequest request) { BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(); businessObjectFormatKey.setNamespace(request.getNamespace()); businessObjectFormatKey.setBusinessObjectDefinitionName(request.getBusinessObjectDefinitionName()); businessObjectFormatKey.setBusinessObjectFormatUsage(request.getBusinessObjectFormatUsage()); businessObjectFormatKey.setBusinessObjectFormatFileType(request.getBusinessObjectFormatFileType()); businessObjectFormatKey.setBusinessObjectFormatVersion(request.getBusinessObjectFormatVersion()); return businessObjectFormatDaoHelper.getBusinessObjectFormatEntity(businessObjectFormatKey); }
businessObjectFormatKey.setBusinessObjectFormatVersion(null); latestVersionBusinessObjectFormatEntity = businessObjectFormatDao.getBusinessObjectFormatByAltKey(businessObjectFormatKey); businessObjectFormatParent.setBusinessObjectFormatVersion(null); businessObjectFormatParents.add(businessObjectFormatParent); businessObjectFormatChild.setBusinessObjectFormatVersion(null); businessObjectFormatChildren.add(businessObjectFormatChild);
@Override public void executeImpl(DelegateExecution execution) throws Exception { String namespace = activitiHelper.getExpressionVariableAsString(this.namespace, execution); String businessObjectDefinitionName = activitiHelper.getExpressionVariableAsString(this.businessObjectDefinitionName, execution); String businessObjectFormatUsage = activitiHelper.getExpressionVariableAsString(this.businessObjectFormatUsage, execution); String businessObjectFormatFileType = activitiHelper.getExpressionVariableAsString(this.businessObjectFormatFileType, execution); Integer businessObjectFormatVersion = activitiHelper.getExpressionVariableAsInteger(this.businessObjectFormatVersion, execution, "businessObjectFormatVersion", false); BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(); businessObjectFormatKey.setNamespace(namespace); businessObjectFormatKey.setBusinessObjectDefinitionName(businessObjectDefinitionName); businessObjectFormatKey.setBusinessObjectFormatUsage(businessObjectFormatUsage); businessObjectFormatKey.setBusinessObjectFormatFileType(businessObjectFormatFileType); businessObjectFormatKey.setBusinessObjectFormatVersion(businessObjectFormatVersion); BusinessObjectFormat businessObjectFormat = businessObjectFormatService.getBusinessObjectFormat(businessObjectFormatKey); setJsonResponseAsWorkflowVariable(businessObjectFormat, execution); } }
@Override public void executeImpl(DelegateExecution execution) throws Exception { String namespace = activitiHelper.getExpressionVariableAsString(this.namespace, execution); String businessObjectDefinitionName = activitiHelper.getExpressionVariableAsString(this.businessObjectDefinitionName, execution); String businessObjectFormatUsage = activitiHelper.getExpressionVariableAsString(this.businessObjectFormatUsage, execution); String businessObjectFormatFileType = activitiHelper.getExpressionVariableAsString(this.businessObjectFormatFileType, execution); Integer businessObjectFormatVersion = activitiHelper.getExpressionVariableAsInteger(this.businessObjectFormatVersion, execution, "businessObjectFormatVersion", false); BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(); businessObjectFormatKey.setNamespace(namespace); businessObjectFormatKey.setBusinessObjectDefinitionName(businessObjectDefinitionName); businessObjectFormatKey.setBusinessObjectFormatUsage(businessObjectFormatUsage); businessObjectFormatKey.setBusinessObjectFormatFileType(businessObjectFormatFileType); businessObjectFormatKey.setBusinessObjectFormatVersion(businessObjectFormatVersion); BusinessObjectFormat businessObjectFormat = businessObjectFormatService.getBusinessObjectFormat(businessObjectFormatKey); setJsonResponseAsWorkflowVariable(businessObjectFormat, execution); } }
businessObjectFormatKey.setBusinessObjectFormatVersion(null); latestVersionBusinessObjectFormatEntity = businessObjectFormatDao.getBusinessObjectFormatByAltKey(businessObjectFormatKey); businessObjectFormatParent.setBusinessObjectFormatVersion(null); businessObjectFormatParents.add(businessObjectFormatParent); businessObjectFormatChild.setBusinessObjectFormatVersion(null); businessObjectFormatChildren.add(businessObjectFormatChild);
/** * Creates a business object format key from specified business object format entity. * * @param businessObjectFormatEntity the business object format entity * * @return the business object format key */ public BusinessObjectFormatKey getBusinessObjectFormatKey(BusinessObjectFormatEntity businessObjectFormatEntity) { BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(); businessObjectFormatKey.setNamespace(businessObjectFormatEntity.getBusinessObjectDefinition().getNamespace().getCode()); businessObjectFormatKey.setBusinessObjectDefinitionName(businessObjectFormatEntity.getBusinessObjectDefinition().getName()); businessObjectFormatKey.setBusinessObjectFormatUsage(businessObjectFormatEntity.getUsage()); businessObjectFormatKey.setBusinessObjectFormatFileType(businessObjectFormatEntity.getFileType().getCode()); businessObjectFormatKey.setBusinessObjectFormatVersion(businessObjectFormatEntity.getBusinessObjectFormatVersion()); return businessObjectFormatKey; }
/** * Creates a business object format key from specified business object format entity. * * @param businessObjectFormatEntity the business object format entity * * @return the business object format key */ public BusinessObjectFormatKey getBusinessObjectFormatKey(BusinessObjectFormatEntity businessObjectFormatEntity) { BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(); businessObjectFormatKey.setNamespace(businessObjectFormatEntity.getBusinessObjectDefinition().getNamespace().getCode()); businessObjectFormatKey.setBusinessObjectDefinitionName(businessObjectFormatEntity.getBusinessObjectDefinition().getName()); businessObjectFormatKey.setBusinessObjectFormatUsage(businessObjectFormatEntity.getUsage()); businessObjectFormatKey.setBusinessObjectFormatFileType(businessObjectFormatEntity.getFileType().getCode()); businessObjectFormatKey.setBusinessObjectFormatVersion(businessObjectFormatEntity.getBusinessObjectFormatVersion()); return businessObjectFormatKey; }
request.getSourceBusinessObjectFormatKey().setBusinessObjectFormatVersion(null); request.getTargetBusinessObjectFormatKey().setBusinessObjectFormatVersion(null);
sourceBusinessObjectFormatVersion = this.getBusinessObjectFormatVersion(); Integer copyBusinessObjectFormatVersion = ((Integer) strategy.copy(LocatorUtils.property(locator, "businessObjectFormatVersion", sourceBusinessObjectFormatVersion), sourceBusinessObjectFormatVersion, (this.businessObjectFormatVersion!= null))); copy.setBusinessObjectFormatVersion(copyBusinessObjectFormatVersion); } else { if (businessObjectFormatVersionShouldBeCopiedAndSet == Boolean.FALSE) {
sourceBusinessObjectFormatVersion = this.getBusinessObjectFormatVersion(); Integer copyBusinessObjectFormatVersion = ((Integer) strategy.copy(LocatorUtils.property(locator, "businessObjectFormatVersion", sourceBusinessObjectFormatVersion), sourceBusinessObjectFormatVersion, (this.businessObjectFormatVersion!= null))); copy.setBusinessObjectFormatVersion(copyBusinessObjectFormatVersion); } else { if (businessObjectFormatVersionShouldBeCopiedAndSet == Boolean.FALSE) {
sourceBusinessObjectFormatVersion = this.getBusinessObjectFormatVersion(); Integer copyBusinessObjectFormatVersion = ((Integer) strategy.copy(LocatorUtils.property(locator, "businessObjectFormatVersion", sourceBusinessObjectFormatVersion), sourceBusinessObjectFormatVersion, (this.businessObjectFormatVersion!= null))); copy.setBusinessObjectFormatVersion(copyBusinessObjectFormatVersion); } else { if (businessObjectFormatVersionShouldBeCopiedAndSet == Boolean.FALSE) {
request.getSourceBusinessObjectFormatKey().setBusinessObjectFormatVersion(INVALID_FORMAT_VERSION); request.getTargetBusinessObjectFormatKey().setBusinessObjectFormatVersion(INVALID_FORMAT_VERSION);