Validate the data in RPA Desktop Design Studio
Validate your data by using the Validate Data option at a component level in RPA Desktop Design Studio.
始める前に
Configure a component. For more information, see Use a component in RPA Desktop Design Studio.
Role required: none
このタスクについて
手順
- In the RPA Desktop Design Studio, on the Design surface, right-click either the Data In or Data Out port of a component and select Validate Data.
-
In the VALIDATIONS dialog box, from the Validator list, select either of the
following validation types:
Type Description and action NotNullValidation Checks if the given input is null. A custom message can be inputted for validation and error handling.
- Click the plus icon (
) to add a validation.
- In the text box next to [NOT
NULL], enter the custom error message
as shown in the following example.
図 : 1. Text box for entering the error message - Click OK.
ScriptValidation Enables you to choose from a list of programming languages and write a validation script to ensure the data that flows in or out of the Data port is validated against the mentioned conditions. Otherwise, it stops execution and throws an error. - Click the plus icon (
) to add a validation.
- Click the script icon (
) to open the SCRIPT VALIDATION dialog box.
- From the following SCRIPT LANGUAGE list, select your
preferred scripting language to write your custom
validation:
- VB.NET
- C#
- Javascript
- In the Script section, enter the code. For example,
Return Value > 300. - Click OK.
- In the text box next to
[SCRIPT], enter the custom
error message as shown in the following example.
図 : 2. Field for entering the error message - Click OK.
- Click the plus icon (
- オプション:
To delete a validation rule, click the delete icon (
) and in the Confirmation dialog box, click Yes.