Skip to content

Improve ODF Adapter #150

@rsoika

Description

@rsoika

currently the org.imixs.workflow.odf.ODFDOMFindReplaceAdapter only supports a single file operation configured in a event in the following way:

<odf-update name="filename">....</odf-update>
<odf-update name="findreplace">
       <find>\[contract\.start\]</find>
       <replace><itemvalue format="dd.MM.yyyy">contract.start</itemvalue></replace>
</odf-update>
<odf-update name="findreplace">
       <find>\[sequencenumber\]</find>
       <replace><itemvalue>sequencenumber</itemvalue></replace>
</odf-update>
....

So only one file can be processed. We should change the config format similar to the SplitAndJoin Plugin or the new WOPI Adapter to support multiple file operations like this:

<odf-update>
  <filename>file1.odf</filename>
  <replace>
      <key>\[contract\.start\]</key>
      <value><itemvalue format="dd.MM.yyyy">contract.start</itemvalue></value>
  </replace>
</odf-update>
<odf-update>
  <filename>file2.odf</filename>
  <replace>
      <key>\[contract\.start\]</key>
      <value><itemvalue format="dd.MM.yyyy">contract.start</itemvalue></value>
  </replace>
  <replace>
      <key>\[contract\.end\]</key>
      <value><itemvalue format="dd.MM.yyyy">contract.start</itemvalue></value>
  </replace>
</odf-update>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions