BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Update Environment Variables in Bulk

    Posted 16 hours ago

    I have a requirement to update the integration points (with .NET code) which are configured in environment variables (ENVs) in our BAW UAT environment (Process Server). 

    1. One way to update the ENV which I know is to update the environment variables in Process Admin portal by opening each process application and update the ENVs there.
    2. The other way is to update the ENV is to use tw.env.update(envVar, newValue);

    But both above ways are time consuming and manual efforts are required to update the ENV because in my case we have to update almost 400 ENVs inside about 140 process apps on a Process Server.

    My requirement is to update each ENV which ENV name is starting with a String (EformsURL) and replace the subset of the value of the environment variable. The subset of the value which needs to be replaced is "http://ef1vcolvt/EformsIIV/" with "https://eformsClient/eformsSource/"

    ENV Name: EformsURLAccountOpeningSudanInternational

    Existing ENV Value: http://ef1vcolvt/EformsIIV/AccountOpeningSudanInternationalPage?

    New ENV Value: https://eformsClient/eformsSource/AccountOpeningSudanInternationalPage?

    Your input or suggestions would be highly appreciated and will help me to provide the better services to my client.



    ------------------------------
    Muhammad Haris Khan
    ------------------------------


  • 2.  RE: Update Environment Variables in Bulk

    Posted 13 hours ago
    Edited by Martin Medina 13 hours ago
    Hey Muhammad,
    One way you can handle this more efficiently is by using the IBM BAW REST API to update environment variables programmatically...no need to go through each app manually.
     
    POST /ops/std/bpm/containers/{app_acronym}/versions/{snapshot_id}/env_vars
    You can find more details here:



    ------------------------------
    Martin Medina
    Lead Engineer
    Raymond James
    St Petersburg FL
    ------------------------------