Closed vferrandiz closed 2 years ago
Hi @vferrandiz ,
We don't use ${TEMPLATED_VAR}
s when writing the Siddhi app in the design view, since ${}
would result in a compilation error. Use a hardcoded value when writing the Siddhi app, and to test that.
For eg:
@App:name("EnvVarTest")
@App:description("Description of the plan")
define stream InputStream(id string, lat string, lng string, elev string, speed string, heading string, roadFriction double);
from InputStream[roadFriction <= 100]
select id, lat, lng, elev, speed, heading, roadFriction
insert into SlipperyRoadStream;
Then when exporting the Siddhi app to Docker, Step 2 of the Export Siddhi Apps for Docker image wizard provides the option to template a variable. There, you can replace 100
with ${SLIPPERY_THRESHOLD}
.
Description:
When we try to use environment variables inside queries, a invalid validation error is apperaing in docker-tooling visual editor.
App is running well but we can't generate the design view due to this validation error.
Error trace:
Affected Siddhi Version:
5.1.2
Steps to reproduce:
Run docker editor 5.1.2.
Create a App that uses a query with ENVIRONMENT variables like:
Related Issues: N/A