public class WopiDocumentConverterAdapter extends Object implements org.imixs.workflow.SignalAdapter
There is no need to implement the libraries in case a Collabora instance is up and running. In this case the rest API endpoint 'lool/convert-to/' provides a convenience function. See details here: https://www.collaboraoffice.com/de/document-conversion/
Documents can be converted into different formats by calling the corresponding endpoint.
The rest service automatically detects the input document format.
The adapter simply posts a given document to the service endpoint. The adapter can be configured by the event workflow result:
<wopi-converter name=
"api-endpoint">https://localhost:9980/lool/convert-to/</wopi-converter>
<wopi-converter name="filename">......</wopi-converter>
<wopi-converter name="convert-to">pdf</wopi-converter>
The Collabora API endpoint must point to a collabora instance. The 'filename' is the file attached to the current workitem. This can also be a regular expression. The option 'convert-to' is optional and default value is 'pdf'
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_ERROR |
static String |
DOCUMENT_ERROR |
| Constructor and Description |
|---|
WopiDocumentConverterAdapter() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.ItemCollection |
execute(org.imixs.workflow.ItemCollection document,
org.imixs.workflow.ItemCollection event)
The execute method expects a 'wop-converter' configuraiton and a
corresponding attachement.
|
public static final String DOCUMENT_ERROR
public static final String CONFIG_ERROR
public org.imixs.workflow.ItemCollection execute(org.imixs.workflow.ItemCollection document,
org.imixs.workflow.ItemCollection event)
throws org.imixs.workflow.exceptions.AdapterException,
org.imixs.workflow.exceptions.PluginException
execute in interface org.imixs.workflow.Adapterorg.imixs.workflow.exceptions.AdapterExceptionorg.imixs.workflow.exceptions.PluginExceptionCopyright © 2021 Imixs Software Solutions GmbH. All rights reserved.