All methods defined to be invoked by Business Process Server should have the following syntax.
Public void MethodName(com.savvion.sbm.util.SBMContext c);
The method needs to have public access, return a void, and accept a single parameter of type com.savvion.sbm.util.SBMContext. This class is available in the Business Process Server ejbserver classpath.
The SBMContext object contains necessary information about the Business Process Server components change of state as well as additional server information about the Business Process Server instance which invoked the adapter. The callback information enables the adapter to make a callback as a Business Process Server client. You can use BP Server API or BPM Events API and have more control over the state change.
Additionally, the following classes must be imported:
In the case of server callbacks, the object passed to the callback method is an instance of the ServerContext class. In the case of process callbacks, the object is an instance of the ProcessContext class.