public class POIFindReplaceAdapter extends Object implements org.imixs.workflow.SignalAdapter
The adapter can be configured by the event workflow result:
<poi-update name=
"filename">PLA Membership Agreement-<itemvalue>numsequencenumber</itemvalue>.docx</poi-update>
<poi-update name="findreplace">
<find>[company.name]</find>
<replace><itemvalue>company.name</itemvalue></replace>
</poi-update>
<poi-update name="findreplace">
<find>[company.country]</find>
<replace><itemvalue>company.country</itemvalue></replace>
</poi-update>
<poi-update name="findreplace">
<find>[contract.startdate]</find>
<replace><itemvalue format=
"EEE, MMM d, yyyy">contract.start</itemvalue></replace>
</poi-update>
For Excel you can replace cell content:
<poi-update name="findreplace">
<find>F4</find>
<replace><itemvalue>numsequencenumber</itemvalue></replace>
</poi-update>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_ERROR |
static String |
DOCUMENT_ERROR |
| Constructor and Description |
|---|
POIFindReplaceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.ItemCollection |
execute(org.imixs.workflow.ItemCollection document,
org.imixs.workflow.ItemCollection event)
This method computes the findreplace configuration and updates an attachments
form type .docx
|
static org.apache.poi.xssf.usermodel.XSSFCell |
getCellByRef(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
String cellReference)
Returns a Cell by name or an optional absolute cell postion
Examples for refs are 'A1', 'AB3', 'MyCell' where 'MyCell' is a named cell.
|
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.PluginExceptionorg.imixs.workflow.exceptions.AdapterExceptionpublic static org.apache.poi.xssf.usermodel.XSSFCell getCellByRef(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
String cellReference)
Examples for refs are 'A1', 'AB3', 'MyCell' where 'MyCell' is a named cell.
Copyright © 2021 Imixs Software Solutions GmbH. All rights reserved.