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
------------------------------
Original Message:
Sent: Tue November 30, 2021 11:32 AM
From: Anoop C Pillai
Subject: Create UDP using server.conf.yaml
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
Original Message:
Sent: Tue November 30, 2021 10:42 AM
From: MATTHEW SEGALL
Subject: Create UDP using server.conf.yaml
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
Original Message:
Sent: Tue November 30, 2021 09:28 AM
From: Anoop C Pillai
Subject: Create UDP using server.conf.yaml
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
------------------------------