Regex ValidatorThis activity allows you to validate the data that forms the input parameter in a process. It validates the required format of the data and helps in minimizing the errors, if any, during execution of the process. The value stored corresponding to each variable is validated based on the type of regex validator configured. If the validation fails, configure the process to take the necessary actions. By default, the Regex Validator activity supports e-mail and phone number (mobile numbers of India) validation. You can add more validations as per your business need by editing the RegexValidator.xml file. Follow the below steps to configure the validations other than default validations:
To configure a regex validation: 1. In the, client-tools > Automation Studio > ProtonFiles folder, locate RegexValidator.xml file. 2. Open RegexValidaotr.xml file and update the details regarding the regex to set new validations.
3. Save the .xml file. The new regex validation is configured. Using Regex Validator Activity1. In the Canvas Tools pane, click Process Components to expand the tool and view the associated activities. 2. Drag the Regex Validator activity and drop inside the Application activity.
3. Click
the
4. Click Add to map the parameter with the required regex validator type. 5. In the Arguments/Variables drop down list, select the parameter. You must define the parameter in the Parameter bar use this option. 6. From the Validator Type drop down list, select the validation you want to configure against the selected parameter. By default, EmailID and PhoneNumber is available. 7. Click CONFIRM. 8. You can click DELETE if you want to delete the mapping. 9. In the Output Mapping list, select a parameter to store the status of the Regex Validator activity operation. to use this option, a parameter of type Boolean must be pre-defined in the Parameter bar. The Regex Validator activity is created to perform the validation.
Regex Validator PropertiesThe properties of a Regex Validator activity are listed in the following table and can be edited in the Properties grid on the right panel.
|
On This Page Hide
Related Topics |