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

Forrester Wave ISDP 2023

Flexagon recognized in the Forrester Wave ISDP

Flexagon Recognized in the Forrester Wave: Integrated Software Delivery Platforms, Q2 2023 We are delighted to share that Flexagon has ...

Deploy Einstein GPT Generated Components with FlexDeploy

The TrailblazerDX Main Keynote was a highly anticipated event, and it did not disappoint. The biggest news coming out of ...
Ultimate Guide for DevOps: Oracle EBS cover

Ultimate Guide for DevOps: Oracle EBS

Although Oracle EBS has been around for some time, its popularity as an enterprise resource planning solution remains high. In ...

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