Input & Validation
The Input and Validation page explains how to initiate the process of feeding data into the Scorport Strategy by adding an input file. This process involves uploading or directly entering structured data into the system, which validates and converts it for use in decision-making workflows.
Adding Input File
-
Initiating Input:
- Start by clicking on the Input Element in the Strategy Designer.
- You will see the option to either:
- Copy and Paste the input data directly into the provided field.
- Upload a File containing the input data.
-
Supported Input Formats:
- The main supported input format is JSON.
- The system also accepts XML, which is automatically converted into JSON for use in business processes.
-
Example Input Format:
- JSON:
- XML:
Validation Process
-
Automatic Validation:
- Once the input file is added, the system validates its structure to ensure it is a valid JSON format.
- If the format is valid:
- The input is converted into objects and displayed in the right-hand section of the interface.
- If the format is invalid:
- The system will flag the errors and indicate that the data format must be corrected before proceeding.
-
System Behavior:
- The system uses JavaScript to automatically detect the types of each element based on the sample data provided in the input.
- For example:
- Key:
age→ Type:Number→ Value:35. - Key:
employment_status→ Type:String→ Value:full_time.
- Key:
-
Validation Success:
- Once the input data is validated, the system recognizes it as the Potential Engine Input.
- This marks the start of the business process, and the validated data is ready for use in calculations, decisions, and outputs.
Input Requirements
-
File Size:
- The input file size must not exceed 5GB.
-
Data Format:
- The input file must be in JSON or XML format.
- If in XML, it will be converted to JSON.
-
Sample Data:
- Each element in the input must include sample data to define its key, value, and type.
- Example:
- Key:
age - Value:
35
- Key:
- This allows the system to infer the structure and data type automatically.
Example Workflow
-
Upload Input:
- Upload a JSON or XML file containing customer data.
- Example:
-
Validation:
- The system validates the structure and displays it as objects.
- Example of Object Display:
-
Error Handling:
- If the input contains errors (e.g., invalid JSON), the system flags the issue:
- Example: "Error: Missing comma at line 3."
- Correct the errors and re-upload the file.
- If the input contains errors (e.g., invalid JSON), the system flags the issue:
-
Data Availability:
- Once validated, the input data is available for use in calculations, conditions, and other strategy elements.
Benefits of Input and Validation
- Flexibility:
- Supports both JSON and XML formats for data input.
- Error Detection:
- Automatically identifies and flags formatting errors for quick correction.
- Data Readiness:
- Converts input into usable objects for seamless integration into workflows.
- Efficiency:
- Handles large datasets up to 5GB, enabling scalability for complex strategies.
The Input and Validation process ensures that data is correctly formatted, validated, and ready for use in Scorport's decision-making workflows.
