Information Technology Reference
In-Depth Information
figured in the same environment from the specified release ID in the invocation, we will
need no extra configuration to run its code. The
signalEvent
method of the
RuntimeManagerWebServiceImpl
class can be simplified into the following code
snippet:
public void signalEventAll(String releaseId, String
signalRef) {
RuntimeEngine engine = RuntimeManagerRegistry.
getManager(releaseId).getRuntimeEngine(
EmptyContext.get());
if (engine != null) {
engine.getKieSession().signalEvent(signalRef, null);
}
}
As shown in the preceding code snippet, when we have a preexisting runtime manager, we
get a runtime engine from it and fire the
signalEvent
method to its KIE session ob-
ject. These configurations, as we mentioned previously, are automatically added to a WAR
file when compiling the
kie-wb-edition
project.