Added a method to get pipeline arguments in the script plugins
Isn't an alternative to specify the macro as the value of a runtime argument, and then access that runtime argument's key from the script?
I don't think there is a way to access runtime arguments from the script right now. From the plugin config property description, it says "a context object (which contains CDAP metrics, logger and lookup)".
So, as a workaround, one could write to a KeyValueTable and use that as a lookup in the script?
We can easily add a getArguments() method to the script context, which will allow users to do context.getArguments().get('arg') to get any argument