Create your first workflow template

Let's look at how to create a republish workflow that is used to copy files from one directory to another within Data Mover.

Example of how to use this workflow

Overview

Company DELTA transmits daily .csv files containing requests for spare parts to Company SIGMA. Data Mover acts as an intermediary, automating the file exchange to ensure seamless and efficient integration of data. This automation not only saves time but also minimizes the risk of errors, ensuring that the data is accurately and promptly delivered.

Workflow Description

Company DELTA produces .csv files for spare parts requests using a business process management application. At a predetermined time, Data Mover accesses these files from DELTA's local folder. Then, the files are transferred to SIGMA's designated folder, ensuring that the original filenames remain unchanged throughout the process.

To create the workflow template, follow these steps:

  1. Go to Design → Workflows and click the New button.

Workflows can also be imported by clicking the button.

  1. In the New template window:

    1. Assign a Name and enter a Description to the workflow template you are creating, e.g., Republish.

    2. Select the Trigger that will start your workflow template: e.g., new file.

    3. Select the Status of your workflow template:

      1. Ready: The workflow is ready and can be associated with contracts.

      2. In Progress: The workflow is still a draft. It is saved as template but cannot be associated with any contract.

  2. Click the CREATE button and the Workflow Template page will appear.

  1. Select the Republish service task in the Shape Repository either scrolling the list or filtering the service tasks entering a portion of the name in the field with the lens.

  2. Drag the service task from the Shape Repository and drop it on the white dashboard.

  3. To connect 2 service tasks, select the starting service task. Multiple icons will appear around it.

    Select the 2 arrows appearing in the bottom-right corner.

    Drag the mouse cursor towards the service task you want to connect. As soon as you start moving the mouse, the icons around the starting service task will disappear and will be replaced by a no-access sign plus an arrow.

When reaching the service task, the no-access sign will become a check sign. Drop the mouse cursor and the 2 service tasks will be connected by a black arrow.

  1. Select the End event service task on the Shape repository and drop it on the right of the Republish File service task. Then connect them with the arrow.

  2. Click the Republish File service task and go to the More panel to enter the variables specifying where the files will be republished:

    1. Destination (Virtual Path): path where the service task will write the files. E.g., ${destvfs}

    2. Fileset ID (Long): id of the file that triggers the workflow and that will be republished. E.g., ${file.getRegistryId()}

  3. Save clicking the icon on the toolbar.

  4. After you have saved your workflow, go back to the Results section by clicking on the breadcrumbs or the Back button of your browser. Be careful, unsaved progress will be lost if not previously saved.

  5. Your template workflow will be listed in the Results section.

Last updated