Create the Input contract

The Input Contract defines how Data Mover connects with the actor to retrieve the files.

The following entities must already exist in Data Mover:

  • Actor: the data producer where Data Mover collects the files. See the Create your first actor page for.

  • Actor Client connection: the connection that Data Mover uses to access the folder of the data producer with the files. See the Client Connections page for details.

  • ActorVFS and virtual path: the path where files will be stored in Data Mover.

Define the contract info

Go to Design Contracts and click the New button to open the New Contract window.

Complete the fields in the INFO section as follows:

  • Name: assign an identification name to the contract. It is suggested to assign a name that can be easily identified at any time.

  • Description: Enter a description of the contract you are creating.

  • Contract Type: In the drop-down list, select Input.

  • Execution Queue: By default, a contract is associated with a default queue. Details about queues can be found in the Job Queues section of this documentation.

After you have filled in all the fields, click the CONTINUE button.

Associate the contract with the actor

This step defines the actor that Data Mover needs to access to collect the files. It is the branch where files must be collected and it must already exist.

Click the CONTINUE button.

Define the contract actions

Define the trigger that will fire the contract and the workflow, i.e., the sequence of tasks that will be executed in the contract.

Enter the Action name. If you are satisfied with the system-generated name, you can leave it as it is. If you are not, enter a different name.

Select the Trigger that will start the contract. In our scenario, Data Mover must connect every hour to the branch repository, so we must select the Time trigger type. See Time Trigger.

Select the Workflow from the drop-down menu. For our scenario, we need the system_time_remoteLs-loop-pull workflow, which checks a remote directory and collects the new files found in that directory. For more information about workflows, refer to the Workflows section.

Click on the SAVE button to be directed to the New Contract page.

Set the contract variables

Contract variables are configured in the Actions section of the New Contract page.

Fill in these mandatory fields:

  • Cron expression: use the Generate button to get help. Click Hours Every HourConfirm.

  • Cluster: select the cluster where the operation will be executed.

  • Select remote server: select the client connection - which must be already configured - that will be used to access the server of the data producer.

  • spLs_remotePath: enter the remote path where Data Mover will take the files. I.e., the path of the branch server.

  • Actor: select the actor, VFS and Virtual Path where files must be stored within Data Mover. This path must already exist.

Once mandatory variables are set, the icon will appear next to the Action Name, and the Status of the Contract will change to READY.

Let's now define the mediation contract, which takes the files stored in Data Mover (configured with the Actor field of the Input contract) to zip them.

Last updated