本文整理汇总了Java中org.kie.api.event.rule.BeforeMatchFiredEvent类的典型用法代码示例。如果您正苦于以下问题:Java BeforeMatchFiredEvent类的具体用法?Java BeforeMatchFiredEvent怎么用?Java BeforeMatchFiredEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BeforeMatchFiredEvent类属于org.kie.api.event.rule包,在下文中一共展示了BeforeMatchFiredEvent类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateEventLoggingListener
import org.kie.api.event.rule.BeforeMatchFiredEvent; //导入依赖的package包/类
/**
* Generates a listener for logging match events.
*
* @return The listener for logging match events.
*/
protected DefaultAgendaEventListener generateEventLoggingListener()
{
return( new DefaultAgendaEventListener()
{
@Override
public void beforeMatchFired( final BeforeMatchFiredEvent event )
{
final Rule rule = event.getMatch().getRule();
System.out.println( rule.getName() );
}
} );
}
示例2: beforeMatchFired
import org.kie.api.event.rule.BeforeMatchFiredEvent; //导入依赖的package包/类
@Override
public void beforeMatchFired(BeforeMatchFiredEvent event) {
log.debug(event);
}
示例3: beforeMatchFired
import org.kie.api.event.rule.BeforeMatchFiredEvent; //导入依赖的package包/类
/**
* @see AgendaEventListener#beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent)
*/
@Override
public void beforeMatchFired(BeforeMatchFiredEvent event) {
log.info("{}", event);
}