Using parameters in a stream
To use parameters in functions, you need to apply the following syntax:
{{param:parameter_name}}In this example, you need to store a database password as a parameter. Define the parameter with the following details:
Name: oracle/db1/security/passkey
Value: SuperSecretPassword123!
Select the Global parameters button on the left panel to open the Global parameters page.
Click on Create parameter to open the Create parameter window. Enter the following details:
Defining the parameterClick Confirm to create the parameter. The new parameter appears in the Global parameters page.
Open your stream and from the functions library on the left, under the Forwarders list, drag and drop the Database forwarder onto the stream editor.
Double-click the function to open its configuration dialog.
Scroll down to the Authentication section and turn off the Secret wallets toggle.
Next, reference the parameter in the Database function. Instead of placing the password as a string, use the reference syntax in the Password field:
{{param:oracle/db1/passkey}}You have succesfully referenced a parameter value into your function. You can reuse the same parameter in other functions that require the same value.
Note!
At stream startup, the system resolves parameter values. Changes to parameter values do not affect a running stream and apply only to the next manual or scheduled start.