Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ODF Adapter #150

Open
rsoika opened this issue Jan 2, 2024 · 0 comments
Open

Improve ODF Adapter #150

rsoika opened this issue Jan 2, 2024 · 0 comments

Comments

@rsoika
Copy link
Member

rsoika commented Jan 2, 2024

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>
rsoika added a commit that referenced this issue Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant