We have defined a default custom sequence for managing different gateways, as described here
We have installed the sequence as explained in the doc Creating Global Conection
The sequence only read 2 variables from environment, and uses to build the endpoint URL. This is the code:
<sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In">
<property name="uri.var.host" expression="get-property('system','host')" />
<property name="uri.var.port" expression="get-property('system','port')" />
</sequence>
This is working fine with Published API, but if we degrade the API to prototype (for using directly without subscription), it doesn't work.
We have tried:
To install it as a Message Mediaton Policy at API level
Setting the parameter in the
/repository/resources/api_templates/prototype_template.xml
In sequence
The error when we test reports empty host name (as it tries to read the variable, and it's empty)
Do you know how to set environment variables in prototyped environment?