accessing Document object in Java Snippet

Hi there,

I am taking few paragraphs of text as String and then converting into Document object for tagging purpose. After the tagging operations, I need to process this document using my custom Java code, however, the the Java Snippet shows it as a "String" object.

Is there a way to acess the tagged document through Document interface in Java Snippet?

Cheers,

Sajid

1 Like

Hi Sajid,

unfortunately a Document can only be accessed as string in the JavaSnippet node. To access the cell values as Documents you would need to implement your custom KNIME node in Java. If you know how to code Java this is not really complicated to do. You would then have full access and control of the Document values.

Cheers, Kilian