Search in sources :

Example 1 with BusinessObjectDataDdlOutputFormatEnum

use of org.finra.herd.model.api.xml.BusinessObjectDataDdlOutputFormatEnum in project herd by FINRAOS.

the class GenerateBusinessObjectFormatDdl method executeImpl.

@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);
    String outputFormat = activitiHelper.getRequiredExpressionVariableAsString(this.outputFormat, execution, "outputFormat");
    BusinessObjectDataDdlOutputFormatEnum outputFormatEnum = BusinessObjectDataDdlOutputFormatEnum.fromValue(outputFormat);
    String tableName = activitiHelper.getExpressionVariableAsString(this.tableName, execution);
    String customDdlName = activitiHelper.getExpressionVariableAsString(this.customDdlName, execution);
    Boolean includeDropTableStatement = activitiHelper.getExpressionVariableAsBoolean(this.includeDropTableStatement, execution, "includeDropTableStatement", false, false);
    Boolean includeIfNotExistsOption = activitiHelper.getExpressionVariableAsBoolean(this.includeIfNotExistsOption, execution, "includeIfNotExistsOption", false, false);
    Boolean replaceColumns = activitiHelper.getExpressionVariableAsBoolean(this.replaceColumns, execution, "replaceColumns", false, false);
    BusinessObjectFormatDdlRequest businessObjectFormatDdlRequest = new BusinessObjectFormatDdlRequest();
    businessObjectFormatDdlRequest.setNamespace(namespace);
    businessObjectFormatDdlRequest.setBusinessObjectDefinitionName(businessObjectDefinitionName);
    businessObjectFormatDdlRequest.setBusinessObjectFormatUsage(businessObjectFormatUsage);
    businessObjectFormatDdlRequest.setBusinessObjectFormatFileType(businessObjectFormatFileType);
    businessObjectFormatDdlRequest.setBusinessObjectFormatVersion(businessObjectFormatVersion);
    businessObjectFormatDdlRequest.setOutputFormat(outputFormatEnum);
    businessObjectFormatDdlRequest.setTableName(tableName);
    businessObjectFormatDdlRequest.setCustomDdlName(customDdlName);
    businessObjectFormatDdlRequest.setIncludeDropTableStatement(includeDropTableStatement);
    businessObjectFormatDdlRequest.setIncludeIfNotExistsOption(includeIfNotExistsOption);
    businessObjectFormatDdlRequest.setReplaceColumns(replaceColumns);
    BusinessObjectFormatDdl businessObjectFormatDdl = businessObjectFormatService.generateBusinessObjectFormatDdl(businessObjectFormatDdlRequest);
    setTaskWorkflowVariable(execution, VARIABLE_DDL, businessObjectFormatDdl.getDdl());
}
Also used : BusinessObjectFormatDdl(org.finra.herd.model.api.xml.BusinessObjectFormatDdl) BusinessObjectDataDdlOutputFormatEnum(org.finra.herd.model.api.xml.BusinessObjectDataDdlOutputFormatEnum) BusinessObjectFormatDdlRequest(org.finra.herd.model.api.xml.BusinessObjectFormatDdlRequest)

Aggregations

BusinessObjectDataDdlOutputFormatEnum (org.finra.herd.model.api.xml.BusinessObjectDataDdlOutputFormatEnum)1 BusinessObjectFormatDdl (org.finra.herd.model.api.xml.BusinessObjectFormatDdl)1 BusinessObjectFormatDdlRequest (org.finra.herd.model.api.xml.BusinessObjectFormatDdlRequest)1