Here is an example of an event.xml file. Use it to create a new event.xml file for your custom event handler in the META-INF directory of your jar file.

In this example, the CreateTestCaseWorkflow class will be invoked only on artifact creation and will run after the artifact creation is successfully committed. The EventTestListener will run for every single event and will run synchronously thereby having the opportunity to cancel the event.

<?xml version="1.0"?>
<!DOCTYPE event-handler
	PUBLIC "-//VA Software, Inc.//DTD Data Object 1.1//EN"

    <event api="6.1" mode="asynchronous">

  <event api="6.1" mode="synchronous">