I am very new to webMethods and apologize in advance for what I am sure is a really dumb question… In the code below, what is the source of the strings that IDataUtil.getString is returning?
thanks,
Rick
Logger logger = Logger.getLogger( “fileHandling.copyFile” );
IDataCursor cursor = pipeline.getCursor();
String varName = { “sourceDirectory”, “sourceFileName”, “targetDirectory”, “targetFileName” };
String temp = new String[ 4 ];
for ( int i = 0; i < 4; i++ ) {
temp[ i ] = IDataUtil.getString( cursor, varName[ i ] );
if ( temp[ i ] == null || temp[ i ].trim().length() == 0 ) {
throw new ServiceException( "Input parameter " + varName[ i ] + " is required." );
}
}
String sourceDirectory = temp[ 0 ];
String sourceFileName = temp[ 1 ];
String targetDirectory = temp[ 2 ];
String targetFileName = temp[ 3 ];
#If-it-doesn-t-fit-anywhere-else#webMethods#webMethods-Archive