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 Thu June 26, 2025 08:44 AM

    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
    Best Answer

    Posted Thu June 26, 2025 11:45 AM
    Edited by Muhammad Haris Khan 27 days 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
    ------------------------------



  • 3.  RE: Update Environment Variables in Bulk

    Posted 27 days ago

    Hi Martin Medina,

    Thank you for giving very insightful information about /ops APIs. So now I know two set of APIs i.e., /ops and /bpm 

    I am curious, are there any other APIs also available on some other URL which could be useful for some other operations or activities to play with IBM BAW?



    ------------------------------
    Muhammad Haris Khan
    BPM Specialist
    GBM Qatar
    ------------------------------



  • 4.  RE: Update Environment Variables in Bulk

    Posted 13 days ago
    Apologies for the delayed response, just catching up now. Thanks again for your message! As far as I know, the two main Workflow API categories in IBM BAW are /ops and /bpm. Most of what I've worked with seems to fall under those two.
     
    If you (or anyone else in the community) come across anything else, definitely let me know.


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