本文整理汇总了Java中org.kie.api.event.rule.AgendaEventListener类的典型用法代码示例。如果您正苦于以下问题:Java AgendaEventListener类的具体用法?Java AgendaEventListener怎么用?Java AgendaEventListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AgendaEventListener类属于org.kie.api.event.rule包,在下文中一共展示了AgendaEventListener类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getAgendaEventListeners
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public List<AgendaEventListener> getAgendaEventListeners(RuntimeEngine runtime) {
List<AgendaEventListener> list = new ArrayList<AgendaEventListener>();
list.addAll(_rootFactory.getAgendaEventListeners(runtime));
for (RegisterableItemsFactory f : _factories) {
list.addAll(f.getAgendaEventListeners(runtime));
}
return list;
}
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:13,代码来源:CompoundRegisterableItemsFactory.java
示例2: getAgendaEventListeners
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public List<AgendaEventListener> getAgendaEventListeners(RuntimeEngine runtime) {
List<AgendaEventListener> list = new ArrayList<AgendaEventListener>();
list.addAll(_rootFactory.getAgendaEventListeners(runtime));
for (RegisterableItemsFactory f : _factories) {
list.addAll(f.getAgendaEventListeners(runtime));
}
return list;
}
开发者ID:jboss-integration,项目名称:fuse-bxms-integ,代码行数:11,代码来源:CompoundRegisterableItemsFactory.java
示例3: configureDroolsContext
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的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);
}
开发者ID:jboss-integration,项目名称:fuse-bxms-integ,代码行数:38,代码来源:CamelEndpointActionInsertTest.java
示例4: getAgendaEventListeners
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public List<AgendaEventListener> getAgendaEventListeners(RuntimeEngine runtime) {
return Collections.emptyList();
}
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:8,代码来源:NoopExtendedRegisterableItemsFactory.java
示例5: addEventListener
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的package包/类
public void addEventListener(AgendaEventListener listener) {
kieSession.addEventListener(listener);
}
开发者ID:deepu105,项目名称:drools-demo,代码行数:4,代码来源:DefaultKieSessionBean.java
示例6: removeEventListener
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的package包/类
public void removeEventListener(AgendaEventListener listener) {
kieSession.removeEventListener(listener);
}
开发者ID:deepu105,项目名称:drools-demo,代码行数:4,代码来源:DefaultKieSessionBean.java
示例7: getAgendaEventListeners
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的package包/类
public Collection<AgendaEventListener> getAgendaEventListeners() {
return kieSession.getAgendaEventListeners();
}
开发者ID:deepu105,项目名称:drools-demo,代码行数:4,代码来源:DefaultKieSessionBean.java
示例8: getAgendaEventListeners
import org.kie.api.event.rule.AgendaEventListener; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public List<AgendaEventListener> getAgendaEventListeners(RuntimeEngine runtime) {
return Collections.emptyList();
}
开发者ID:jboss-integration,项目名称:fuse-bxms-integ,代码行数:6,代码来源:NoopExtendedRegisterableItemsFactory.java
注:本文中的org.kie.api.event.rule.AgendaEventListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论