当前位置: 首页>>代码示例>>Java>>正文


Java RuleRuntimeEventListener类代码示例

本文整理汇总了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;未经允许,请勿转载。