• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java RuleRuntimeEventListener类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:13,代码来源:CompoundRegisterableItemsFactory.java


示例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;
}
 
开发者ID:jboss-integration,项目名称:fuse-bxms-integ,代码行数:11,代码来源:CompoundRegisterableItemsFactory.java


示例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);
}
 
开发者ID:jboss-integration,项目名称:fuse-bxms-integ,代码行数:38,代码来源:CamelEndpointActionInsertTest.java


示例4: getRuleRuntimeEventListeners

import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime) {
    return Collections.emptyList();
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:8,代码来源:NoopExtendedRegisterableItemsFactory.java


示例5: addEventListener

import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
public void addEventListener(RuleRuntimeEventListener listener) {
    kieSession.addEventListener(listener);
}
 
开发者ID:deepu105,项目名称:drools-demo,代码行数:4,代码来源:DefaultKieSessionBean.java


示例6: removeEventListener

import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
public void removeEventListener(RuleRuntimeEventListener listener) {
    kieSession.removeEventListener(listener);
}
 
开发者ID:deepu105,项目名称:drools-demo,代码行数:4,代码来源:DefaultKieSessionBean.java


示例7: getWorkingMemoryEventListeners

import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
public Collection<RuleRuntimeEventListener> getWorkingMemoryEventListeners() {
    return kieSession.getRuleRuntimeEventListeners();
}
 
开发者ID:deepu105,项目名称:drools-demo,代码行数:4,代码来源:DefaultKieSessionBean.java


示例8: getRuleRuntimeEventListeners

import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
@Override
public Collection<RuleRuntimeEventListener> getRuleRuntimeEventListeners() {
	return kieSession.getRuleRuntimeEventListeners();
}
 
开发者ID:deepu105,项目名称:drools-demo,代码行数:5,代码来源:DefaultKieSessionBean.java


示例9: getRuleRuntimeEventListeners

import org.kie.api.event.rule.RuleRuntimeEventListener; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime) {
    return Collections.emptyList();
}
 
开发者ID:jboss-integration,项目名称:fuse-bxms-integ,代码行数:6,代码来源:NoopExtendedRegisterableItemsFactory.java



注:本文中的org.kie.api.event.rule.RuleRuntimeEventListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java NodeListModel类代码示例发布时间:2022-05-22
下一篇:
Java LanguageSet类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap