I am in the process of creating a generic workflow that will be run against multiple environments from the same automic client. The workflow will be called from a separate automic job (wrapper). In the wrapper we will set up various variables that will be passed through the generic workflow e.g. job login names. I have this working fine. This will allow us to have the same generic workflow and all the jobs in the same automic client with different 'wrapper' objects calling it passing in the variables required.
In the generic worklow there are certain jobs that I only want to execute for certain environments e.g. if I pass through a variable called ENVIRONMENT_NAME with the possible combinations ENV1, ENV2, ENV3, ENV4.
How am I best constructing the workflow so that a job would only run if ENVIRONMENT_NAME = 'ENV1'?
Do I just need to add a pre condition excluding the other 3 values?
IF ENVIRONMENT_NAME <> 'ENV2'
IF ENVIRONMENT_NAME <> 'ENV3'
IF ENVIRONMENT_NAME <> 'ENV4'
FINALLY EXECUTE TASK...
Hope this makes sense?