Last active
February 9, 2018 01:12
-
-
Save SriniBlog/2e58831f265c69b6f460 to your computer and use it in GitHub Desktop.
This method can be used in UDF to read the parameters from GlobalContainer instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String getGlobalParameter(String Parameter, Container container) throws StreamTransformationException{ | |
String ParameterValue = ""; | |
try{ | |
GlobalContainer gc = container.getGlobalContainer(); | |
ParameterValue = (String) gc.getParameter(parameter); | |
}catch(Exception ee){ | |
ParameterValue = ""; | |
} | |
return ParameterValue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment