use of org.drools.core.runtime.ChainableRunner in project jbpm by kiegroup.
the class HumanTaskConfigurator method addDefaultInterceptor.
@SuppressWarnings("unchecked")
protected void addDefaultInterceptor() {
// add default interceptor if present
try {
Class<ChainableRunner> defaultInterceptorClass = (Class<ChainableRunner>) Class.forName(DEFAULT_INTERCEPTOR);
Constructor<ChainableRunner> constructor = defaultInterceptorClass.getConstructor(new Class[] { Environment.class });
ChainableRunner defaultInterceptor = constructor.newInstance(this.environment);
interceptor(5, defaultInterceptor);
} catch (Exception e) {
logger.warn("No default interceptor found of type {} might be mssing jbpm-human-task-jpa module on classpath (error {}", DEFAULT_INTERCEPTOR, e.getMessage(), e);
}
}
use of org.drools.core.runtime.ChainableRunner in project jbpm by kiegroup.
the class HumanTaskConfigurator method addErrorHandlingInterceptor.
@SuppressWarnings("unchecked")
protected void addErrorHandlingInterceptor() {
// add error handling interceptor if present
try {
Class<ChainableRunner> defaultInterceptorClass = (Class<ChainableRunner>) Class.forName(ERROR_HANDLING_INTERCEPTOR);
Constructor<ChainableRunner> constructor = defaultInterceptorClass.getConstructor(new Class[] { Environment.class });
ChainableRunner defaultInterceptor = constructor.newInstance(this.environment);
interceptor(8, defaultInterceptor);
} catch (Exception e) {
logger.debug("No error handling interceptor found of type {} might be missing jbpm-runtime-manager module on classpath (error {}", ERROR_HANDLING_INTERCEPTOR, e.getMessage(), e);
}
}
Aggregations