本文整理汇总了Java中org.kie.api.event.rule.RuleRuntimeEventListener类的典型用法代码示例。如果您正苦于以下问题:Java RuleRuntimeEventListener类的具体用法?Java RuleRuntimeEventListener怎么用?Java RuleRuntimeEventListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RuleRuntimeEventListener类属于org.kie.api.event.rule包,在下文中一共展示了RuleRuntimeEventListener类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRuleRuntimeEventListeners
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime) {
List<RuleRuntimeEventListener> list = new ArrayList<RuleRuntimeEventListener>();
list.addAll(_rootFactory.getRuleRuntimeEventListeners(runtime));
for (RegisterableItemsFactory f : _factories) {
list.addAll(f.getRuleRuntimeEventListeners(runtime));
}
return list;
}
示例2: getRuleRuntimeEventListeners
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime) {
List<RuleRuntimeEventListener> list = new ArrayList<RuleRuntimeEventListener>();
list.addAll(_rootFactory.getRuleRuntimeEventListeners(runtime));
for (RegisterableItemsFactory f : _factories) {
list.addAll(f.getRuleRuntimeEventListeners(runtime));
}
return list;
}
示例3: configureDroolsContext
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
@Override
protected void configureDroolsContext(Context jndiContext) {
String rule = "";
rule += "package org.kie.pipeline.camel \n";
rule += "import org.apache.camel.Exchange \n";
rule += "import org.apache.camel.Message \n";
rule += "rule rule1 \n";
rule += " when \n";
rule += " $p : Person() \n";
rule += " then \n";
rule += " // no-op \n";
rule += "end\n";
rule += "rule rule2 \n";
rule += " when \n";
rule += " $p : Person() from entry-point ep1 \n";
rule += " then \n";
rule += " // no-op \n";
rule += "end\n";
rule += "rule rule3 \n";
rule += " when \n";
rule += " $m : Message() \n";
rule += " then \n";
rule += " // no-op \n";
rule += "end\n";
rule += "rule rule4 \n";
rule += " when \n";
rule += " $e : Exchange() \n";
rule += " then \n";
rule += " // no-op \n";
rule += "end\n";
ksession = registerKnowledgeRuntime("ksession1", rule);
ael = mock(AgendaEventListener.class);
wmel = mock(RuleRuntimeEventListener.class);
ksession.addEventListener(ael);
ksession.addEventListener(wmel);
}
示例4: getRuleRuntimeEventListeners
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime) {
return Collections.emptyList();
}
示例5: addEventListener
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
public void addEventListener(RuleRuntimeEventListener listener) {
kieSession.addEventListener(listener);
}
示例6: removeEventListener
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
public void removeEventListener(RuleRuntimeEventListener listener) {
kieSession.removeEventListener(listener);
}
示例7: getWorkingMemoryEventListeners
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
public Collection<RuleRuntimeEventListener> getWorkingMemoryEventListeners() {
return kieSession.getRuleRuntimeEventListeners();
}
示例8: getRuleRuntimeEventListeners
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
@Override
public Collection<RuleRuntimeEventListener> getRuleRuntimeEventListeners() {
return kieSession.getRuleRuntimeEventListeners();
}
示例9: getRuleRuntimeEventListeners
import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime) {
return Collections.emptyList();
}