Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Your source files can be configured with a Replacement Property, which are then replaced (using Plugin operations) with target deployment environment properties. 
Replacement properties are defined by using following syntax within your artifacts:Various files (source, configuration, test files etc.) can be setup for property replacement. FlexDeploy will perform string replacement with appropriate values based on project and deploy environment properties. You can use propertyReplacementArtifacts operation of File plugin, but in many cases specific plugin operation will automatically perform property replacement. Refer plugin documentation for property replacement support. Replacement properties must be defined using following syntax.

  • ${{PROPERTY_NAME}} for project properties or current instance properties.
  • ${{INSTANCE:PROPERTY_NAME}} for specific instance properties.

Property names can be any property that is defined in this guidecustom or defined by plugins. For example, to replace WebLogic installation folder you can use ${{FDWLS_WEBLOGIC_HOME}} which is defined by FlexDeploy WebLogic plugin. But if you want to replace something like URL to internal service, you can define something like MYCOMPANY_PAYMENT_SERVICE_URL on workflow as defined in Creating a Workflow and use it in your file as ${{MYCOMPANY_PAYMENT_SERVICE_URL}}. Defining custom property is entirely up to your implementation. For example, you can just define some prefix or suffix that changes through environments as a custom property instead of defining entire URL value.

With this one-time setup, the various plugin operations will utilize the properties that are configured within FlexDeploy and allow deployment to any environment without manual changes to the files each time it is built for a different environment.

For example,  
WEBLOGIC_FOLDER==if you file contains string like

http://${{FDWLSFDSOA_WEBLOGICSERVER_HOME}}
In this case, FDWLS_WEBLOGIC_HOME from current instance is used for replacement. 
Or 
WEBLOGIC_FOLDER==HOST}}:${{ADF1:FDWLSFDSOA_WEBLOGICSERVER_HOME}}
In this case, FDWLS_WEBLOGIC_HOME from instance defined with ADF1 code is used for replacement.

Or

This url would look like this before replacement properties are added:

PORT}}/soa-infra/services/default/CalledProcess!1.0/calledprocess_client_ep?WSDL

then during deployment to Development it will be updated as

http://devhost:8001/soa-infra/services/default/CalledProcess!1.0/calledprocess_client_ep?WSDLwould look like this after:

and during deployment to QA it will be updated as

http://

...

qahost:9001/soa-infra/services/default/CalledProcess!1.0/calledprocess_client_ep?WSDL

Above example is based assumption that Development environment values are devhost and 8001 whereas QA environment values are qahost and 9001.