In most components we can set the value of a field by using context variables. So for example in a DB component we can replace host "myhost" by host context.myHost after having set the myHost environment variable. This works great.
My issue is with the tFileCopy component. There is a series of "check mark" (Boolean" fields in the component UI. One specific one "Remove Source File". This effectively change a copy behavior to a move.
I want to change the value of this "Remove Source File" Boolean check mark but at run time based on my environment variable which tells me I'm in Prod or Dev.
Basically I want something like this
if (context.Environment == "Prod") then set "Remove Source File" to true
So my question is how to I access those Boolean type variables in the UI?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema