Automic Continuous Delivery Automation

 View Only
  • 1.  Pre-Condition task

    Posted Apr 24, 2018 02:37 PM



    I would like to configure a action to run during specific environment.

    For example:

    If i want to copy file related to QA environment and i have another file to copy for PROD environment how can i configure that in the pre-condition step of the action.

    If i;m deploying to QA than my PROD file copy should be skipping and vice-versa.



  • 2.  Re: Pre-Condition task

    Posted May 04, 2018 08:51 AM



    your question is rather unclear, but I try to reformulate:

    You have 2 environments: QA and PROD.

    There is a deployment workflow that should operate on both of these environments.


    When the workflow is executed on the QA environment, file A should be copied.

    When the workflow is executed on the PROD environment, the file B should be copied.


    If this is the case, this should NOT be done using a pre-condition.

    I would set this up as follows:

    In ARA, define a dynamic property on both environment objects in ARA (QA and PROD), say "/source/file_to_copy" and assign a value to them:

    For QA: "/source/file_to_copy" = "file A"

    For PROD: "/source/file_to_copy" = "file B"


    On the component object within ARA, define a dynamic property called "/source/file_to_copy" (type: Expression) and assign the value "{@environment/source/file_to_copy}" to it.


    In the respective component workflow, in the copy file action, go to the promptset and either type in "EXT:/source/file_to_copy" or use the variable picker ($x).