Running the Schema Discovery Adapter Example

Use the sample content within the $ESP_HOME/adapters/framework/examples/discover directory to run the schema discovery adapter example.

Prerequisites
  1. Stop any other external adapter that is using one of the transporter or formatter modules provided by SAP.
  2. Back up the $ESP_HOME/adapters/framework/config/modulesdefine.xml file.
  3. Copy the file $ESP_HOME/adapters/framework/examples/modulesdefine.xml to the $ESP_HOME/adapters/framework/config directory.
  4. Copy the file $ESP_HOME/adapters/framework/examples/discover/ExampleAdapterForDiscovery.cnxml to the $ESP_HOME/lib/adapters directory.
  5. Edit the set_example_env.bat or set_example_env.sh script and the adapter_config.xml file for each example to specify correct values for the username and password parameters. Note that if you run the project against the node started by the set_example_env.bat or set_example_env.sh script, you can find the username and password in $ESP_HOME%/cluster/examples/csi_local.xml. The default user is sybase and the default password is sybase.
Task
  1. Start ESP Studio.
  2. In the ESP Studio Authoring perspective, drag and drop the Example Adapter for schema discovery onto the canvas.
  3. Edit the adapter's Adapter Directory Path property and point it to the directory where the discover example resides. For example, $ESP_HOME/adapters/framework/examples/discover.
  4. Click the adapter's schema discovery icon and complete the steps in the discovery wizard to add a new element to the project matching the discovered schema.
Next
Restore the $ESP_HOME/adapters/framework/config/modulesdefine.xml file.