Hi Asawari,
Let us say that you want to concatenate two strings. You can write a java service as :
// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
String str1 = IDataUtil.getString( pipelineCursor, “str1” );
String str2 = IDataUtil.getString( pipelineCursor, “str2” );
pipelineCursor.destroy();
String strFinal = str1 + str2 ;
// pipeline
IDataCursor pipelineCursor_1 = pipeline.getCursor();
IDataUtil.put( pipelineCursor_1, “strFinal”, strFinal );
pipelineCursor_1.destroy();
or you can write a flow service as :
Using try catch block —
SEQUENCE (exit on Success) MAIN
----SEQUENCE (exit on failure) TRY
--------pub.string:concat
----SEQUENCE (exit on done) CATCH
--------getLastError
Please go through the documentation to know more about the services available.
Regards,
Sandesh
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods