Product/components used and version/fix level:
Java Service in webMethods 10.15
Detailed explanation of the problem:
Hi, I am trying to check datatype of a variable using Java Service. I try to get datatype of a string which in doclist of doc. but I am getting class “com.wm.data.ISMemDataImpl” in output.
my code
public static final void new_javaService(IData pipeline) throws ServiceException {
// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
// doc
IData doc = IDataUtil.getIData( pipelineCursor, "doc" );
if ( doc != null)
{
IDataCursor docCursor = doc.getCursor();
// i.docList
IData[] docList = IDataUtil.getIDataArray( docCursor, "docList" );
if ( docList != null)
{
for ( int i = 0; i < docList.length; i++ )
{
Class<?> name = docList[i].getClass();
IDataUtil.put(pipelineCursor, "name", String.valueOf(name));
}
}
docCursor.destroy();
}
pipelineCursor.destroy();
// pipeline
}
// --- <<IS-BEGIN-SHARED-SOURCE-AREA>> ---
// --- <<IS-END-SHARED-SOURCE-AREA>> ---
I need datatype of “name” in above image. please help! thanks in advance
Error messages / full error message screenshot / log file:
Getting “class com.wm.data.ISMemDataImpl” instead datatype name.
Question related to a free trial, or to a production (customer) instance?
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services