Last active
February 9, 2018 01:10
-
-
Save SriniBlog/b77ab0a7bec57e581833 to your computer and use it in GitHub Desktop.
This UDF can be used to read the Seerburger Variable
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 getSeeburgerVariable(String variableName, Container container) throws StreamTransformationException{ | |
AbstractTrace trace; | |
trace = container.getTrace(); | |
String variableValue = ""; | |
try | |
{ | |
VariableBean be=VariableFactory.getVariableInstance(""); | |
variableValue = be.getStringVariable(variableName); | |
if ( variableValue!= null) | |
{ | |
return variableValue; | |
} | |
else | |
{ | |
trace.addInfo("Value Not Found!!"); | |
throw new RuntimeException("Value Not found for variable"); | |
} | |
}catch (Exception e){ | |
throw new RuntimeException(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment