Create a Data Service Validator Artifact

To create a Data Service Validator Artifact, right click on the CApp project and select Data Service Validator from the menu.





New Server Runtime



There are two ways to create an ESB Custom Mediator Artifact.

  1. From Workspace
  2. From File System
If you select From Workspace option, it will list all the projects that include a validator class which is created by implementing org.wso2.carbon.dataservices.validation.Validator interface, if there is any.



New Server Runtime



If you do not have any projects with Validator class, you can create a new class implementing org.wso2.carbon.dataservices.validation.Validator interface by clicking on New button of the From Workspace option. Give the necessary information and it will create a class, implementing the interface.





New Server Runtime



With the second option, you can point a jar file which contains a data service validator class from the file system.





New Server Runtime



Select the CApp project you want to create Data Service Validator Artifact and and give a name to the Data Service Validator artifact. Then click Finish.





New Server Runtime



Now you will see a new Data Service Validator Artifact has been created under Artifacts folder of the CApp project.





New Server Runtime