====== Running the XESame examples ====== This page will describe how to run the examples for XESame (from {{:xesame:xesame_examples.zip|}}, 400 KB). {{page>xesame:menu&noeditbtn}} The XESame zip file contains an ''examples'' sub-folder. This folder contains several simple examples on which XESame can be applied. Each example contains 3 sub-folders: - **data** The data used to extract an event log from; - **eventlogs** The resulting event logs extracted from the data as an example of the possible result; - **mappings** Mappings defined using XESame that convert the data to an event log. In order to run the examples perform the following steps: - Start XESame; - Load (one of) the mapping(s) from the ''mapping'' subfolder; - Go to the //Connection Settings//-tab and remember the URL to the database after the //jdbc:odbc:// part; - Open the ODBC connection manager by following these steps: * If you're on 32-bit Windows follow these steps: - Click **Start**, point to **Settings**, and then click **Control Panel**. - On computers running Microsoft Windows 2000 or later, double-click **Administrative Tools**, and then double-click **Data Sources (ODBC)**. The ODBC Data Source Administrator dialog box appears. On computers running previous versions of Microsoft Windows, double-click **32-bit ODBC** or **ODBC** * If you're on 64-bit Windows follow these steps: - Start Odbcad32.exe in the %systemdrive%\Windows\SysWoW64 folder; * When you don't know if you're using 32 or 64 bit Windows, assume you're using the 32-bit version. - Set up a new connection to the data directory of the current example using an .csv ODBC driver by following these steps: * Click **add**; * Choose //Microsoft Access Text Driver (*.txt, *.csv)// or //Microsoft Text Driver (*.txt, *.csv)// and click **finish**; * Fill in the URL part you just remembered in the **Data Source Name** field, fill in the **description** field to your liking; * Uncheck the **Use Current Directory**-checkbox, press the **Select Directory**-button and locate the //data// subdirectory of your example * Press the **OK**-button. - Now go back to XESame and press the **Test Connection**-button: * If you get an error, please verify that //jdbc:odbc:__NAME__// matches the __NAME__ specified in the **Data Source Name** field (excluding the jdbc:odbc: part!) - You might want to examine the mapping definition in XESame by browsing the elements in the tree on the top left and the tabs on the top right of the application; - If you want to execute the mapping go to the **Conversion Execution** tab, you might want to change the event log file location by pressing the button. You can now press the **Execute Conversion** button. When the **Console** tab appears without errors, locate your event log and open it with ProM or an text editor.