App Connect

 View Only
  • 1.  Create UDP using server.conf.yaml

    Posted Tue November 30, 2021 09:29 AM
    Hello All,

    How to create UDP variables using integration server.conf.yaml file?

    Ref: User-defined properties  
    IBM documentation says: (You can also define a UDP at the level of the integration server, by updating the server.conf.yaml configuration file.)

    Thanks

    ------------------------------
    Anoop C Pillai
    ------------------------------


  • 2.  RE: Create UDP using server.conf.yaml

    Posted Tue November 30, 2021 10:42 AM

    If you create an independent integration server, in the server.conf.yaml, at the end you should have:

    UserVariables:
      #Thing1: 'value'

    The same applies to node owned servers as well, it just doesn't generate in the sample. The properties you list in there can only be picked up if the flows in the server do not explicitly defined them. Ie they are server wide variables not overrides to existing User Defined Properties.



    ------------------------------
    MATTHEW SEGALL
    ------------------------------



  • 3.  RE: Create UDP using server.conf.yaml

    Posted Tue November 30, 2021 11:32 AM
    Thanks for the comment.

    Can you tell me how I can read the value that defined in the UserVariables:  in esql?  Should I need to write some java code for this?

    ------------------------------
    Anoop C Pillai
    ------------------------------



  • 4.  RE: Create UDP using server.conf.yaml

    IBM Champion
    Posted Thu December 09, 2021 12:24 PM
    You can read the value in a regular way in ESQL, just don't define the UDP in the flow.
    For example, if you define 
    UserVariables:
      UDPTest: 'value for udp test'
    ​

    in your yaml file, then you use in ESQL:

    DECLARE UDPTest EXTERNAL CHARACTER ''; 
    
    ...
       SET x = 'UDP: '||UDPTest;
    ...


    ------------------------------
    Alexey Brook
    ------------------------------