-
-
Save viksingh/99677dea4a0b0a93de9f43a002c90b96 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