Custom process starters can also be created.
The Java Event Source process starter allows to create a custom process starter based on Java code.
Java Event Source provides the features (such as Sequencing key) of other process starters without the need to write extra code.
Java Event Source provides an abstract class to extend to create a process starter. The abstract class describes the methods that interact with the process engine.
The Java Event Source process starter allows to create a custom process starter based on Java code.
Java Event Source provides the features (such as Sequencing key) of other process starters without the need to write extra code.
Java Event Source provides an abstract class to extend to create a process starter. The abstract class describes the methods that interact with the process engine.
Custom code must provide implementation for the methods,
init(). Called when the process engine starts. Can initialize any resource connections. Specify a Java Global instance on the Advanced tab that initializes resource connections. Java Global instances are loaded and initialized during process engine start up. this.getJavaGlobalInstance() can be executed to obtain the Java Global Instance resource in process starter code.
onStart(). Called by the process engine to activate the process starter. This method must activate any event notifier or resource observer code. The notifier or observer code can then call the onEvent() method to start a process instance.
onStop(). Called by the process engine to deactivate the process starter. This method must deactivate any event notifier or resource observer code.
onShutdown(). Called by the process engine when the engine shuts down. The method should release any resources and resource connections and perform any required clean up operations.
Methods already implemented.
onEvent(Object object). Called when a listener or resource observer catches a new event. Input to this is a Java object containing the event data.
getGlobalInstance(). Returns an object reference to the Java Global resource specified on the Advanced tab of the process starter. Useful when initialization code is placed in a Java Global Resource instead of the init() method.
onError(). Throws the exception specified in the input parameter. Used to propagate an error to the TIBCO ActiveMatrix BusinessWorks process instance when a listener or resource observer fails to generate an event.
init(). Called when the process engine starts. Can initialize any resource connections. Specify a Java Global instance on the Advanced tab that initializes resource connections. Java Global instances are loaded and initialized during process engine start up. this.getJavaGlobalInstance() can be executed to obtain the Java Global Instance resource in process starter code.
onStart(). Called by the process engine to activate the process starter. This method must activate any event notifier or resource observer code. The notifier or observer code can then call the onEvent() method to start a process instance.
onStop(). Called by the process engine to deactivate the process starter. This method must deactivate any event notifier or resource observer code.
onShutdown(). Called by the process engine when the engine shuts down. The method should release any resources and resource connections and perform any required clean up operations.
Methods already implemented.
onEvent(Object object). Called when a listener or resource observer catches a new event. Input to this is a Java object containing the event data.
getGlobalInstance(). Returns an object reference to the Java Global resource specified on the Advanced tab of the process starter. Useful when initialization code is placed in a Java Global Resource instead of the init() method.
onError(). Throws the exception specified in the input parameter. Used to propagate an error to the TIBCO ActiveMatrix BusinessWorks process instance when a listener or resource observer fails to generate an event.