Request A Demo
Back to All Blog Articles

FlexField support for FlexDeploy deployment requests

FlexDeploy allows configuration of FlexFields for deployment requests. Main features are

  • Each FlexField can be setup as specific data type like Boolean, Integer, Double, Float, Long, String. Request form will display input component accrodingly. You can configure List values to render drop down input component.
  • Value of FlexField on deploy request form can be defaulted using Groovy script code.
  • Supported validations are Required check, Range validation for Number types, Length validation for String data type.
  • Custom validation can be done using Groovy script code.

In this example below, I have configured “Change Number” as String type FlexField  FlexFieldSetup  When you submit deployment request, you will now see Change Number along with other request parameters.

FlexFieldOnDeploymentRequestForm

Let’s assume we have some additional requirements for validation of Change Number FlexField. 1) We want to make sure requester provides Change Number for deployment request to Production environment. 2) Change number must be valid in external change management system.

We will rely on Groovy script code to setup these additional validations. Groovy code can return false to indicate validation failure and setup ValidationMessage in script code for display to user. Required check is easy to do in Groovy script code, but for validating against external change management system, we will write Java code which can either make SOAP / REST call or even run database query. Here is Java API code that i have used for simulation of validation failure.

CustomJavaAPIForValidation

Now let’s prepare Validation Groovy Script to accomplish our requirements.

FlexFieldValidationScriptCode

Let’s try to submit deployment request to Production environment without entering Change Number. As per our Groovy script code, this should cause validation failure.

FlexFieldRequiredValidationFailed

Now try to submit deployment request to Production environment with Change Number that starts with CR. As per Java API and Groovy script code, this should also cause validation failure.

FlexFieldValidationFailed

FlexFields values are also reported on various reports similar to other values associated with deployment workflow executions.

Related Resources

FlexDeploy for Visual Builder SaaS Extension

FlexDeploy streamlines the development lifecycle of Visual Builder SaaS Extensions in Oracle Visual Builder Cloud Service. Key features include native ...

FlexDeploy for Oracle Visual Builder Application

FlexDeploy streamlines the development lifecycle of Oracle Visual Builder applications with its native support, handling both development and production stages. ...

Salesforce CPQ Data Deployment

FlexDeploy offers robust features for migrating complex Salesforce CPQ data and configurations between orgs. It streamlines data deployment for hierarchical ...

Join DevOps leaders across the globe who receive analysis, tips, and trends in their inbox