.format("Successfully pre-registered business object data with the registration server. businessObjectDataId=%s", businessObjectData.getId()));
.format("Successfully pre-registered business object data with the registration server. businessObjectDataId=%s", businessObjectData.getId()));
@Override public void executeImpl(DelegateExecution execution) throws Exception { String contentTypeString = activitiHelper.getRequiredExpressionVariableAsString(contentType, execution, "ContentType").trim(); String requestString = activitiHelper.getRequiredExpressionVariableAsString(businessObjectDataCreateRequest, execution, "BusinessObjectDataCreateRequest").trim(); BusinessObjectDataCreateRequest request = getRequestObject(contentTypeString, requestString, BusinessObjectDataCreateRequest.class); // Register the data. BusinessObjectData businessObjectData = businessObjectDataService.createBusinessObjectData(request); // Trigger notifications. businessObjectDataDaoHelper.triggerNotificationsForCreateBusinessObjectData(businessObjectData); // Set the JSON response as a workflow variable. setJsonResponseAsWorkflowVariable(businessObjectData, execution); setTaskWorkflowVariable(execution, VARIABLE_ID, businessObjectData.getId()); setTaskWorkflowVariable(execution, VARIABLE_VERSION, businessObjectData.getVersion()); setTaskWorkflowVariable(execution, VARIABLE_LATEST_VERSION, businessObjectData.isLatestVersion()); } }
@Override public void executeImpl(DelegateExecution execution) throws Exception { String contentTypeString = activitiHelper.getRequiredExpressionVariableAsString(contentType, execution, "ContentType").trim(); String requestString = activitiHelper.getRequiredExpressionVariableAsString(businessObjectDataCreateRequest, execution, "BusinessObjectDataCreateRequest").trim(); BusinessObjectDataCreateRequest request = getRequestObject(contentTypeString, requestString, BusinessObjectDataCreateRequest.class); // Register the data. BusinessObjectData businessObjectData = businessObjectDataService.createBusinessObjectData(request); // Trigger notifications. businessObjectDataDaoHelper.triggerNotificationsForCreateBusinessObjectData(businessObjectData); // Set the JSON response as a workflow variable. setJsonResponseAsWorkflowVariable(businessObjectData, execution); setTaskWorkflowVariable(execution, VARIABLE_ID, businessObjectData.getId()); setTaskWorkflowVariable(execution, VARIABLE_VERSION, businessObjectData.getVersion()); setTaskWorkflowVariable(execution, VARIABLE_LATEST_VERSION, businessObjectData.isLatestVersion()); } }
businessObjectData.setId(businessObjectData.getId()); businessObjectData.setNamespace(BDEF_NAMESPACE); businessObjectData.setBusinessObjectDefinitionName(BDEF_NAME);
businessObjectData.setId(businessObjectData.getId()); businessObjectData.setNamespace(BDEF_NAMESPACE); businessObjectData.setBusinessObjectDefinitionName(BDEF_NAME);
assertEquals(expectedBusinessObjectDataId, Integer.valueOf(actualBusinessObjectData.getId()));
assertEquals(createdBusinessObjectData.getId(), businessObjectData.getId()); assertTrue(businessObjectData.getBusinessObjectDefinitionName().equals(request.getBusinessObjectDefinitionName())); assertTrue(businessObjectData.getBusinessObjectFormatUsage().equals(request.getBusinessObjectFormatUsage()));
.getTemporarySecurityCredentials(awsHelper.getAwsParamsDto(), String.valueOf(sourceBusinessObjectData.getId()), awsRoleArn, awsRoleDurationSeconds, createUploaderPolicy(s3BucketName, sourceStorageFilePath, awsKmsKeyId));
expectedBusinessObjectData.setId(businessObjectData.getId()); expectedBusinessObjectData.setNamespace(BDEF_NAMESPACE); expectedBusinessObjectData.setBusinessObjectDefinitionName(BDEF_NAME);
.getTemporarySecurityCredentials(awsHelper.getAwsParamsDto(), String.valueOf(sourceBusinessObjectData.getId()), awsRoleArn, awsRoleDurationSeconds, createUploaderPolicy(s3BucketName, sourceStorageFilePath, awsKmsKeyId));
new BusinessObjectData(resultBusinessObjectData.getId(), NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, INITIAL_FORMAT_VERSION, PARTITION_KEY, PARTITION_VALUE, NO_SUBPARTITION_VALUES, INITIAL_DATA_VERSION, LATEST_VERSION_FLAG_SET, BDATA_STATUS, Arrays.asList( new StorageUnit(new Storage(STORAGE_NAME, StoragePlatformEntity.S3,
expectedBusinessObjectData.setId(resultBusinessObjectData.getId()); expectedBusinessObjectData.setNamespace(BDEF_NAMESPACE); expectedBusinessObjectData.setBusinessObjectDefinitionName(BDEF_NAME);
new BusinessObjectData(resultBusinessObjectData.getId(), NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, INITIAL_FORMAT_VERSION, PARTITION_KEY, PARTITION_VALUE, NO_SUBPARTITION_VALUES, INITIAL_DATA_VERSION, LATEST_VERSION_FLAG_SET, BDATA_STATUS, Arrays.asList( new StorageUnit(new Storage(StorageEntity.MANAGED_STORAGE, StoragePlatformEntity.S3, Arrays.asList(
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, true);
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, true);
theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, true);
theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, true);
theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, true);