Use the sample content within the
$ESP_HOME/adapters/framework/examples/discover directory to run the
schema discovery adapter example.
Prerequisites
- Stop any other external adapter that is using one of the
transporter or formatter modules provided by
SAP.
- Back up the
$ESP_HOME/adapters/framework/config/modulesdefine.xml
file.
- Copy the file
$ESP_HOME/adapters/framework/examples/modulesdefine.xml
to the $ESP_HOME/adapters/framework/config directory.
- Copy the file
$ESP_HOME/adapters/framework/examples/discover/ExampleAdapterForDiscovery.cnxml
to the $ESP_HOME/lib/adapters directory.
- 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- Start ESP Studio.
- In the ESP Studio Authoring perspective, drag and
drop the Example Adapter for schema discovery onto the
canvas.
- 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.
- 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.