Forked from SriniBlog/getStreamTransformationConstant.java
Created
February 9, 2018 01:10
-
-
Save viksingh/7daa77359417752d3d66c9fc783ac9cd to your computer and use it in GitHub Desktop.
This UDF is used to get the Runtime Parameters from the StreamTransformation Constants
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 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