org.kie.api.event.rule.ObjectUpdatedEvent Java Examples

The following examples show how to use org.kie.api.event.rule.ObjectUpdatedEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TrackingRuleRuntimeEventListener.java    From qzr with Apache License 2.0 6 votes vote down vote up
@Override
public void objectUpdated(final ObjectUpdatedEvent event) {
    if ((handleFilter == null  && classFilter == null) 
            || event.getFactHandle() == handleFilter
            || event.getObject().getClass().equals(classFilter)) {
        updates.add(event);
        allEvents.add(event);

        Object fact = event.getObject();
        try {
            factChanges.add(BeanUtils.describe(fact));
        } catch (Exception e) {
            log.error("Unable to get object details for tracking: " + DroolsUtil.objectDetails(fact), e);
        }
        log.trace("Update: " + DroolsUtil.objectDetails(event.getObject()));
    }
}
 
Example #2
Source File: LoggingRuleRuntimeEventListener.java    From qzr with Apache License 2.0 5 votes vote down vote up
@Override
public void objectUpdated(final ObjectUpdatedEvent event) {
    if ((handleFilter == null  && classFilter == null) 
            || event.getFactHandle() == handleFilter
            || event.getObject().getClass().equals(classFilter)) {

        log.trace("Update: " + DroolsUtil.objectDetails(event.getObject()));
    }
}
 
Example #3
Source File: WireListenerTest.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
    updateEvents.add(event);
}
 
Example #4
Source File: WorkingMemoryLogger.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
/**
 * @see org.kie.api.event.rule.RuleRuntimeEventListener
 */
public void objectUpdated(final ObjectUpdatedEvent event) {
    filterLogEvent( new ObjectLogEvent( LogEvent.UPDATED,
                                        ((InternalFactHandle) event.getFactHandle()).getId(),
                                        event.getObject().toString() ) );
}
 
Example #5
Source File: StatelessKieSessionMonitoringImpl.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
@Override
public void objectUpdated(ObjectUpdatedEvent event) { }
 
Example #6
Source File: DefaultRuleRuntimeEventListener.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public void objectUpdated(final ObjectUpdatedEvent event) {
    // intentionally left blank
}
 
Example #7
Source File: DebugRuleRuntimeEventListener.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public void objectUpdated(ObjectUpdatedEvent event) {
    logger.info( event.toString() );
}
 
Example #8
Source File: TestRuleRuntimeEventListener.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public void objectUpdated(final ObjectUpdatedEvent event) {
    this.modified++;
}
 
Example #9
Source File: CepEngineImpl.java    From hawkular-alerts with Apache License 2.0 4 votes vote down vote up
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
    log.debug(event);
}
 
Example #10
Source File: TrackingRuleRuntimeEventListener.java    From qzr with Apache License 2.0 4 votes vote down vote up
public List<ObjectUpdatedEvent> getUpdates() {
    return updates;
}
 
Example #11
Source File: DebugRuleRuntimeEventListener.java    From servicemix with Apache License 2.0 4 votes vote down vote up
/**
 * @see RuleRuntimeEventListener#objectUpdated(org.kie.api.event.rule.ObjectUpdatedEvent)
 */
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
    log.info("objectUpdated {}", event);

}
 
Example #12
Source File: DebugRuleRuntimeEventListener.java    From servicemix with Apache License 2.0 4 votes vote down vote up
/**
 * @see RuleRuntimeEventListener#objectUpdated(org.kie.api.event.rule.ObjectUpdatedEvent)
 */
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
    log.info("objectUpdated {}", event);

}
 
Example #13
Source File: DebugRuleRuntimeEventListener.java    From servicemix with Apache License 2.0 4 votes vote down vote up
/**
 * @see RuleRuntimeEventListener#objectUpdated(org.kie.api.event.rule.ObjectUpdatedEvent)
 */
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
    log.info("objectUpdated {}", event);

}