Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I need help on a solution regarding dynamic context variable when promoting jobs from one environment to another in the cloud (TIC). There is a functionality in TAC but according to Talend Support there is no functionality in TIC currently.
Is there a java code that I could use and plug-in to tjava that would:
Greatly appreciate any help on this.
I haven't tried this, so this is suggestion I *think* might work. Have you every used the implicit context load? If not, check it out here (https://help.talend.com/reader/mhqCkTBnin7IXmJBUJoocQ/0lPtF5eayDI~33QdLfRY~A).
I currently use this in a way that is different from a lot people. The context load parameters (for both pointing to a file or a database) are able to be used to call methods. Those that are expecting a String can actually run a routine which returns a String. As such, you can return a configuration which will dynamically point your job to a file or a database table. You can make use of simple Java to return operating system environment variables to identify which environment you are in, then from that return values that point you to a file with contexts in or a database with contexts in.
As I said, I have not tried this in TIC, but it works in both the open source edition and the enterprise edition. It is actually a pretty powerful way of dealing with contexts.
Give it a try and let me know if it works
I haven't tried this, so this is suggestion I *think* might work. Have you every used the implicit context load? If not, check it out here (https://help.talend.com/reader/mhqCkTBnin7IXmJBUJoocQ/0lPtF5eayDI~33QdLfRY~A).
I currently use this in a way that is different from a lot people. The context load parameters (for both pointing to a file or a database) are able to be used to call methods. Those that are expecting a String can actually run a routine which returns a String. As such, you can return a configuration which will dynamically point your job to a file or a database table. You can make use of simple Java to return operating system environment variables to identify which environment you are in, then from that return values that point you to a file with contexts in or a database with contexts in.
As I said, I have not tried this in TIC, but it works in both the open source edition and the enterprise edition. It is actually a pretty powerful way of dealing with contexts.
Give it a try and let me know if it works
Thank you. I will try it out.
Hi,
Thank you. This has worked for me.
Pleased to hear it. Maybe support need to be told that it works 🙂