Skip to content

Move

Introduction

The move task facilitates the relocation of data from one destination to another. It enables the seamless transfer of information, files, or any other relevant data from a source location to a target location.

By executing the move task, the data is effectively transferred and removed from its original location, ensuring that it is now available at the designated destination. This task is commonly used to organize data, consolidate information, or perform any necessary data migrations within a process or system.

Configuration

  • Name - The display name of the task.
  • Connector - Previosly configured remote agent connector.
  • Move from - Directory from where the moving will be performed.
  • File name/pattern - Pattern to move the files by.
  • Recursive - Move the data recursively.
  • Keep path - Keeps the copied file's directory structure.
  • Only first match - Moves only the first matched file.
  • Overwrite if exists - Files with the same name will be replaced.
  • Delete folder - Deletes the folder after the files have been moved.
  • Move to - Destination where the file will be moved to.
  • Log on complete - Prints the response in the business log.
  • Response - Contains a message about the move task result.

For example, if a process variable res is used to catch the result from the move task, we will access the property message by using the following:

res.message

Example

Let's assume that we have a following structure:

├── rootcopy
├── rootdir
       ├── hello.txt
       ├── sub1
             ├── hello123.txt
             └── hello456.xtx
       └── sub2
             └── sub3
                   └── hello789.txt
If we want to move the contet of the rootdir to the rootcopy, we should configure our Move task so that we set the following field values like this:

  • From - rootdir
  • To - rootcopy
  • Recursive - True
  • Pattern - In this case, the pattern has no effect
  • KeepPath - True
  • OnlyFirstMatch - False

rootdir will be moved recursively including the starting directory to the rootcopy. As a result you will end up with the following directory structure:

├── rootcopy
       └── rootdir
              ├── hello.txt
              ├── sub1
                    ├── hello123.txt
                    └── hello456.xtx
              └── sub2
                    └── sub3
                          └── hello789.txt