11-04-2016 06:43 AM - edited 11-04-2016 06:44 AM
the Radoop Nest Connection Selector is a dropdown list that is not editable.
I would like to insert the connection string through a macro to easily switch between different Clusters for development and deployment.
Is that somehow possible?
11-04-2016 08:26 AM
this is an interesting question.
Although, it is not as convenient as if the connection parameter were editable, but you can achieve your goal by directly setting the parameter value in the XML that describes the process. You can add the XML panel to the Studio interface via View -> Show Panel -> XML. In the process XML, look for the connection parameter of the radoop:radoop_nest operator (see attached screenshot). Replace the value with the macro. During process execution, the connection parameter value will be the one that the macro defines.
Be careful though that clicking on the dropdown arrow of the connection parameter will immediately reset the parameter value, so then you must go back to the XML panel to fix it. Another thing to keep in mind is that metadata validation during process design time already uses the connection (so you can see attributes, etc. on different ports), so if the macro value changes, it may be impossible to figure out that during process design time, so the metadata may come from another cluster. But the process execution should work as expected.