use of org.drools.core.event.AbstractEventSupport in project droolsjbpm-integration by kiegroup.
the class SpringKModuleDeploymentService method notifyOnDeploy.
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void notifyOnDeploy(DeploymentUnit unit, DeployedUnit deployedUnit) {
super.notifyOnDeploy(unit, deployedUnit);
InternalRuntimeManager runtimeManager = (InternalRuntimeManager) deployedUnit.getRuntimeManager();
if (runtimeManager instanceof PerCaseRuntimeManager) {
AbstractEventSupport eventSupport = ((PerCaseRuntimeManager) runtimeManager).getCaseEventSupport();
Map<String, CaseEventListener> foundBeans = context.getBeansOfType(CaseEventListener.class);
for (CaseEventListener listener : foundBeans.values()) {
eventSupport.addEventListener(listener);
logger.debug("Registering {} as case event listener on {}", listener, runtimeManager.getIdentifier());
}
}
}
use of org.drools.core.event.AbstractEventSupport in project himss_2021_sepsis_detection by redhat-na-ssa.
the class SpringKModuleDeploymentService method notifyOnDeploy.
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void notifyOnDeploy(DeploymentUnit unit, DeployedUnit deployedUnit) {
super.notifyOnDeploy(unit, deployedUnit);
InternalRuntimeManager runtimeManager = (InternalRuntimeManager) deployedUnit.getRuntimeManager();
if (runtimeManager instanceof PerCaseRuntimeManager) {
AbstractEventSupport eventSupport = ((PerCaseRuntimeManager) runtimeManager).getCaseEventSupport();
Map<String, CaseEventListener> foundBeans = context.getBeansOfType(CaseEventListener.class);
for (CaseEventListener listener : foundBeans.values()) {
eventSupport.addEventListener(listener);
logger.debug("Registering {} as case event listener on {}", listener, runtimeManager.getIdentifier());
}
}
}
Aggregations