Try OpenEdge Now
skip to main content
Application Developer's Guide
Using Callback Adapter : Developing the Callback Adapter : Developing the Callback Adapter Java class : Implementing adapter methods
 
Implementing adapter methods
An adapter method can be specified, which is invoked by Business Process Server whenever the specific component undergoes a change of state. The current states of the components for which adapter methods can be defined are listed in the following table.
Table 12. Component states
State
Description
OnStart
On start up of the Business Process Server component. For example, when BP Server or BPM Events server is started.
OnShutdown
On stopping of the Business Process Server component. For example, when BP Server or BPM Events server is stopped.
OnSuspend
On suspension of the Business Process Server component. For example, when BP Server or BPM Events server is suspended.
OnResume
On resuming of the Business Process Server component from suspended state. For example, when BP Server or BPM Events server is resumed.
The adapter developer has the option of defining a separate method to be invoked for each of the above mentioned states. Alternatively, the same method can be used to handle all the state changes. Business Process Server passes a parameter at run time to the adapter method that can be used to extract information about the actual change of state and accordingly handle it.