Skip to content

Instantly share code, notes, and snippets.

@SriniBlog
Created December 24, 2015 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SriniBlog/6ef6b2a20e3663e78349 to your computer and use it in GitHub Desktop.
Save SriniBlog/6ef6b2a20e3663e78349 to your computer and use it in GitHub Desktop.
This UDF is used to get the Runtime Parameters from the StreamTransformation Constants
public String getStreamTransformationConstant(Container container) throws StreamTransformationException{
GlobalContainer globalContainer;
MappingTrace trace;
String headerField;
java.util.Map map;
trace = container.getTrace();
globalContainer = container.getGlobalContainer();
map = globalContainer.getTransformationParameters();
headerField = (String) map.get( StreamTransformationConstants.INTERFACE_NAMESPACE );
trace.addInfo("INTERFACE_NAMESPACE:" + headerField);
//Rest of the StreamTransformationConstant
/*
MESSAGE_CLASS
VERSION_MAJOR
VERSION_MINOR
PROCESSING_MODE
MESSAGE_ID
REF_TO_MESSAGE_ID
CONVERSATION_ID
TIME_SENT
INTERFACE
INTERFACE_NAMESPACE
SENDER_PARTY
SENDER_PARTY_AGENCY
SENDER_PARTY_SCHEME
SENDER_SERVICE
RECEIVER_NAME
RECEIVER_NAMESPACE
RECEIVER_PARTY
RECEIVER_PARTY_AGENCY
RECEIVER_PARTY_SCHEME
RECEIVER_SERVICE
RECEIVER_SYSTEM
MAPPING_TRACE
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment