Fred,
I wouldn’t say that I am right as usual. I’ve been known to be wrong on rare occasion. There are several ways that I have seen to access the pipeline and they all seem to work. The reason I decided to post is that I remember the first time I tried to write my first java service. It was hard and I had no clue. So I try to help.
Here’s the many ways to do this:
Assume input is “filename”
#1-----
IDataCursor pipelineCursor = pipeline.getCursor();
String filename = IDataUtil.getString( pipelineCursor, “filename” );
pipelineCursor.destroy();
#2----- (we used this to close an open file handle)
IDataHashCursor.pipelineCursor = pipeline.getHashCursor();
pipeline.Cursor.first( “filename” );
BufferedReader in = (BufferedReader) pipeline.getValue();
— do some code -----
pipelineCursor.destoy();
#3-----
IdataHashCursor pipelineCursor = pipeline getHashCursor();
pipelineCursor.first( “filename” );
String filename = (String) pipelineCursor.getValue();
pipelineCursor.destroy();
#4----
IDataCursor pipelineCursor = pipeline.getCursor();
String rawFileName = IDataUtil.getString( pipelineCursor, “rawFileName” );
String FILE_TYPE = IDataUtil.getString( pipelineCursor, “FILE_TYPE” );
String WM_BASE = IDataUtil.getString( pipelineCursor, “WM_BASE” );
String SERVER_ROOT = IDataUtil.getString( pipelineCursor, “SERVER_ROOT” );
pipelineCursor.destroy();
All work but use something a little different.
Ray
#webMethods#webMethods-General#Integration-Server-and-ESB