Create the Mediation contract
In the Mediation Contract, we define if files have to be transformed before being sent to the data consumer. In our scenario, files must be zipped.
The following entities must already exist in Data Mover:
Workflow: for mediation contracts, workflows must be designed manually. See the Workflows section for details.
Actor → VFS and virtual path: the path where files are 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 for the contract you are creating.
Contract Type: in the drop-down list, select Mediation.
Execution Queue: by default a contract is associated with the default queue. Details about queues can be found in the Job Queues section of this documentation.
Once you have filled in all the fields, click on the CONTINUE button.

Define the contract actions
This step defines the trigger that will start the contract and the workflow associated with 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, new files entering a folder must be zipped, so we must select the New file trigger type.
Select the Workflow from the drop-down menu. The workflow must have been already designed in Data Mover. Refer to the Workflows section for details on how to create a workflow to zip files.
Click the SAVE button to be directed to the New Contract page.

Set the contract variables

The Source virtual path field is mandatory. Select the actor, VFS and Virtual Path where files are stored within Data Mover. This path must be the same as the path in the Actor field of the connection contract of the input phase.
Data Mover will take the files entering the source virtual path to encrypt and zip them.
Once 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 output contract, which takes the files stored in Data Mover (configured with the Actor field of the Mediation contract) to send them to the insurance company.
Last updated