The SignalService is the entry point for signal processing. It provides operations to
- add API SignalListener
- remove API SignalListener
- throw API Signal
You can get the SignalService from the API ProcessEngine or through the static locator like this
SignalService sigService = SignalService.locateSignalService();
A API Signal is one of the few objects that the API provides directly. You would create a and throw a API Signal like this
Signal signal = new Signal(getID(), SignalType.USER_SIGNAL, "Hello"); sigService.throwSignal(signal);
Comments