How to copy and rename a file to avoid reprocessing in Workflow

Hello,
I am working with PlanetPress Workflow (OL Connect Workflow versão 2023.2.0.6120) and I need some help with a file handling issue.

  • I receive a .png file in the input folder.
  • I want the Workflow to move this file to an output folder.
  • At the same time, I need to keep a copy of the file in the input folder, but with a different name.
  • The idea is to prevent the Workflow from picking up the same file again.
    What would be the best way to implement this in Workflow?
    Any suggestions or best practices would be very helpful.
    Thanks in advance!

You will need to rename your file with something that the Mask field would’n pick-up.

Maybe something like this? Rename your file with their original name but add an underscore at the beginning of the name:

image1.png = _image1.png

Then in the Mask field, use the following regex

^(?!_).*\.png$

Make sure to tick the box Treat as regular expressions