public class TikaDocumentService extends Object
The plug-in expects the Environment Parameter 'TIKA_SERVICE_ENDPONT' to get the Rest API end-point.
See also the project: https://github.com/imixs/imixs-docker/tree/master/tika
| Modifier and Type | Field and Description |
|---|---|
static String |
ENV_TIKA_SERVICE_ENDPONT |
static String |
ENV_TIKA_SERVICE_MODE |
static String |
PLUGIN_ERROR |
| Constructor and Description |
|---|
TikaDocumentService() |
| Modifier and Type | Method and Description |
|---|---|
void |
extractText(org.imixs.workflow.ItemCollection workitem)
Extracts the textual information from document attachments.
|
void |
onBeforeProcess(org.imixs.workflow.engine.ProcessingEvent processingEvent)
React on the ProcessingEvent This method sends the document content to the
tika server and updates teh DMS information.
|
String |
put(String uri,
byte[] dataString,
String contentType,
String encoding)
Posts a String data object with a specific Content-Type to a Rest Service URI
Endpoint.
|
public static final String PLUGIN_ERROR
public static final String ENV_TIKA_SERVICE_ENDPONT
public static final String ENV_TIKA_SERVICE_MODE
public void onBeforeProcess(@Observes
org.imixs.workflow.engine.ProcessingEvent processingEvent)
throws org.imixs.workflow.exceptions.PluginException
org.imixs.workflow.exceptions.PluginExceptionpublic void extractText(org.imixs.workflow.ItemCollection workitem)
throws org.imixs.workflow.exceptions.PluginException
The method sends each new document to the tika server and updates the fileData attribute 'content'
workitem - org.imixs.workflow.exceptions.PluginExceptionpublic String put(String uri, byte[] dataString, String contentType, String encoding) throws Exception
uri - - Rest Endpoint RUIdataString - - contentExceptionCopyright © 2016–2019 Imixs Software Solutions GmbH. All rights reserved.