Data Contract
A datatable serves as a framework capable of containing multiple versions of data. It acts as a structural foundation, storing essential information such as column names, data types, and indicators for whether data can be left empty (nullable). Additionally, it facilitates collaboration among teams by enabling data sharing while maintaining control over modifications to the data.
Add Data Contract
Adding a data contract can be accomplished through different methods:
Through the 'Source' Option:
When accessing the 'Source' section, users will find a button labeled 'New Data contract.' Upon clicking this button, a screen prompts users to input various details:
1. Data Contract Details:
Users are required to input the 'Data Contract' name. They must also select the 'DataTable Type' from a dropdown menu, offering options such as 'source' and 'allocation rule.'
2. Sample Type Selection:
After selecting the 'DataTable Type,' users are prompted to choose the 'Sample Type.'
If 'file' is selected, users are presented with the option to upload a sample file using the 'Upload Sample' button.
If 'Database' is chosen, additional fields appear for connection details:
Select Server Connection
Select Database Name
Select Schema
Select Table
3. Submission and Data Group Creation:
Once all details are entered, users can hit the 'Submit' button. This action results in the creation of a new data group.
4. Connection Limitation:
Users can only utilize existing connections created within the system. These connections must be previously established through the Source > Connection section.
5. Reset Option: Additionally, users have the option to reset all entered details using the 'Reset' option. This allows users to start afresh if needed.
Via the 'Process Builder' Option:
Access the 'Process Builder' and select the 'Create New Process' button. This action will direct you to a process building screen.
Within this screen, there are two approaches to create a data group:
Method 1:
Drag the 'Source' from the left Inputs section onto the working area.
Below the working area, various details will be displayed, including 'Config', 'Data', 'Preview', 'Out Schema', and 'Comments'.
Under the 'Config' section, find the 'Source type' field with a dropdown menu offering options such as 'Source' and 'New Source'.
Choose 'New Source' from the dropdown menu, then proceed to create a new data group by providing a name. Next, create a new data contract by naming it, followed by clicking on 'Upload File' to upload your file. Finally, click 'Submit' to complete the process.
Upon selecting 'Source' from the dropdown menu, users are presented with options for 'Data Group' and 'Data Store Type'. By choosing the required options from the dropdown, users can create a new data contract.
Method 2:
Another method of creating a data contract is through drag and drop functionality. Users can drag the required file onto the process building working area. This action opens a new window titled 'Node Details for [File Name].'
In this window, users have the opportunity to input a name for a new data contract in the 'Data Contract Name' field.
Method 3:
After initiating a process, clicking on the run button generates a run for that process. During this run, users are prompted to input details such as the 'Run Name' and 'Destination 1 Output Data Contract,' indicating where the data should be stored. At this stage, users also have the option to create a new data contract.