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 setSeeburgerVariable(String variableName, String variableValue, Container container) throws StreamTransformationException{ | |
try | |
{ | |
VariableBean be=VariableFactory.getVariableInstance(""); | |
be.setStringVariable(variableName, variableValue); | |
}catch (Exception e){ | |
throw new RuntimeException(e); | |
} | |
return ""; | |
} |
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) |
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 ); |
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 void splitValue(String FieldValue, String SplitterChar, ResultList result, Container container) throws StreamTransformationException{ | |
try{ | |
//Split the string value based on the splitterchar | |
String [ ] strArray = FieldValue.split(SplitterChar); | |
int istrArray = strArray.length; | |
for (int i=0; i < istrArray; i++){ | |
result.addValue(strArray[i]); | |
} | |
}catch(Exception ee){ | |
} |
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 getInstanceUDF(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 ); |
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 setGlobalParameter(String Parameter, String ParameterValue, Container container) throws StreamTransformationException{ | |
try{ | |
GlobalContainer gc = container.getGlobalContainer(); | |
gc.setParameter(Parameter, ParameterValue); | |
}catch(Exception ee){ | |
} | |
return ParameterValue; | |
} |
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; | |
} |
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 boolean setDynamicFileName(String FieldValue, Container container) throws StreamTransformationException{ | |
boolean success = false; | |
try{ | |
//Get the DynamicConfiguration instance | |
DynamicConfiguration config = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); | |
//Define key to write in the Dynamic Configuration | |
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName"); | |
//Write the FileName parameter from the Dynamic Configuration based on the key |
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 getDynamicFileName(Container container) throws StreamTransformationException{ | |
String FileValue = ""; | |
try{ | |
//Get the DynamicConfiguration instance | |
DynamicConfiguration config = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); | |
//Define key to read from the Dynamic Configuration | |
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName"); | |
//Read the FileName parameter from the Dynamic Configuration based on the key |
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 boolean setDynamicConfiguration(String Namespace, String FieldName, String FieldValue, Container container) throws StreamTransformationException{ | |
boolean success = false; | |
try{ | |
//Get the DynamicConfiguration instance | |
DynamicConfiguration config = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); | |
//Define key to write in the Dynamic Configuration | |
DynamicConfigurationKey key1 = DynamicConfigurationKey.create(Namespace, FieldName); | |
//Write the parameter from the Dynamic Configuration based on the key |