App Connect

 View Only
  • 1.  Single shared variable between different flows

    Posted Sat August 03, 2024 03:12 AM

    Hi Team,

    I have a requirement to use a token in two message flows. This token is generated in either flow one or flow two. I tried using shared variables, but they are not working between the two message flows. Can anyone suggest a solution?



    ------------------------------
    Manideep vusakoila
    ------------------------------


  • 2.  RE: Single shared variable between different flows

    Posted Mon August 05, 2024 07:28 AM

    Hi, 

    I had never been trying to do it however you can try using Global Cache to store token that you want to reuse. You can use it regardless of the message flow, application, Integration server, or Integration node.

    Find the IBM documentation in below mentioned link

    https://www.ibm.com/docs/en/app-connect/12.0?topic=caching-data-overview



    ------------------------------
    Nirmalan
    ------------------------------



  • 3.  RE: Single shared variable between different flows

    Posted Mon August 05, 2024 12:23 PM

    Hey manideep,

    I would like to answer in a simple way.

    Let's say you generated token in flow 1 and you want to use the in both flows now so here you use a shared library which is referred to both the flows. That library can have a subflow with a shared variable and you can use a atomic block with a condition. 

    Now i want to understand how you are going to generate the token in either of the flows.
    Is it from a condition that will trigger the flow and atomic block or something else.



    ------------------------------
    Abhishek Sahani
    ------------------------------