Java Event Source

Process Starter

The Java Event Source allows you to create a custom process starter written in Java. For example, you may want to start a ActiveMatrix BusinessWorks process when an application inserts a row into a database table. Your custom process starter would observe the database for insert events, then call the onEvent() method with the desired data as input when an insert occurs. The Java Event Source process starter creates a process when the onEvent() method is invoked and the object passed to the method is passed to the process definition.

This process starter uses an abstract class to define the interface. You can either write and compile your custom Java code in your own code editor and upload the class to ActiveMatrix BusinessWorks, or you can use the Code tab to add your implementation code to the appropriate methods. For more information about the methods required by this class, see JavaProcessStarter Abstract Class.

Tip: If you want to use the Edit Class button on the Code tab, select Edit>Preferences>Other to specify the Java editor you want to use to edit source code. If you do not specify an editor, a simple popup editing window is provided.