A Contract is a set of rules that defines how an Actor and Data One interact and how data is processed within Data One.
Different types of Contracts exist in Data One:

  • Input Contracts get files from the Producer’s data store.
  • Mediation Contracts apply specific actions to files before delivering them to the Consumer’s data store.
  • Output Contracts send the files to the Consumer’s data store.
857

To make an example, imagine a flow where files are stored in a specific folder of the ALPHA Actor (the Producer) and must be sent to the ZEPHYR Actor (the Consumer) after being renamed and zipped (the specific actions applied to files). To automate this flow, Data One Contracts can be designed to:

  • Get the files on the remote server of the ALPHA Actor. This is the responsibility of the Input Contract.
  • Rename and zip the files. This is the responsibility of Mediation Contracts.
  • Send the files to the archive folder of the ZEPHYR Actor. This is the responsibility of the Output Contract.