Class WopiTemplateAdapter

java.lang.Object
org.imixs.workflow.wopi.WopiTemplateAdapter
All Implemented Interfaces:
org.imixs.workflow.Adapter, org.imixs.workflow.SignalAdapter

public class WopiTemplateAdapter extends Object implements org.imixs.workflow.SignalAdapter
This adapter class is used to import a office document template from the local file system. The office document can be edited by the Wopi Adapter technology.

The Adapter class can be configured through the model by defining a workflow result tag named 'wopi-template'.

Example:

 

    <wopi name="./my-templates/invoice-template.odt">
          <target-name>invoice-2020.odt</target-name>
          <auto-open>true</auto-open>
      </wopi>
 
 

The template can optionally be loaded from a office textblock attachment.

 
      <wopi name="<textblock>invoice template</textblock>" >
        .....
      </wopi>
 
 
In this case the adapter will load the first attachment from the textblock with the name 'inoice template'.

Version:
1.0
Author:
Ralph Soika
  • Field Details

  • Constructor Details

    • WopiTemplateAdapter

      public WopiTemplateAdapter()
  • Method Details

    • execute

      public org.imixs.workflow.ItemCollection execute(org.imixs.workflow.ItemCollection document, org.imixs.workflow.ItemCollection event) throws org.imixs.workflow.exceptions.AdapterException
      This method imports a office document template into the current workitem.
      Specified by:
      execute in interface org.imixs.workflow.Adapter
      Throws:
      org.imixs.workflow.exceptions.AdapterException