public class WopiTemplateAdapter extends Object implements org.imixs.workflow.SignalAdapter
The Adapter class can be configured through the model by defining a workflow result tag named 'wopi-template'.
Example:
<wopi-template name="source-path">./my-templates/invoice-template.odt</wopi-template>
<wopi-template name="target-name">invoice-2020.odt</wopi-template>
The template can optionally be loaded from a office textblock attachment.
<wopi-template name="source-path"><textblock>invoice template</textblock></office-template>
In this case the adapter will load the first attachment from the textblock
with the name 'inoice template'.
| Modifier and Type | Field and Description |
|---|---|
static String |
API_ERROR |
static String |
SNAPSHOTID |
| Constructor and Description |
|---|
WopiTemplateAdapter() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.ItemCollection |
execute(org.imixs.workflow.ItemCollection document,
org.imixs.workflow.ItemCollection event)
This method imports a office document template into the current workitem.
|
public static final String API_ERROR
public static String SNAPSHOTID
public org.imixs.workflow.ItemCollection execute(org.imixs.workflow.ItemCollection document,
org.imixs.workflow.ItemCollection event)
throws org.imixs.workflow.exceptions.AdapterException
execute in interface org.imixs.workflow.Adapterorg.imixs.workflow.exceptions.AdapterExceptionCopyright © 2021 Imixs Software Solutions GmbH. All rights reserved.