congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
InternalWorkingMemory.addEventListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addEventListener
method
in
org.drools.common.InternalWorkingMemory

Best Java code snippets using org.drools.common.InternalWorkingMemory.addEventListener (Showing top 3 results out of 315)

origin: org.drools/droolsjbpm-ide-common

private void resetEventListener() {
  if ( eventListener != null ) {
    this.workingMemory.removeEventListener( eventListener ); //remove the old
  }
  eventListener = new TestingEventListener();
  this.workingMemory.addEventListener( eventListener );
  this.ruleFiredVerifier.setFireCounter( eventListener.getFiringCounts() );
}
origin: org.chtijbug.drools/droolsjbpm-ide-common

private void resetEventListener() {
  if ( eventListener != null ) {
    this.workingMemory.removeEventListener( eventListener ); //remove the old
  }
  eventListener = new TestingEventListener();
  this.workingMemory.addEventListener( eventListener );
  this.ruleFiredVerifier.setFireCounter( eventListener.getFiringCounts() );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public KnowledgeSessionMonitoring(InternalWorkingMemory ksession) {
  this.ksession = ksession;
  this.kbase = (InternalRuleBase) ksession.getRuleBase();
  this.name = DroolsManagementAgent.createObjectName(KSESSION_PREFIX + ":type="+kbase.getId()+",group=Sessions,sessionId=Session-"+ksession.getId());
  this.agendaStats = new AgendaStats();
  this.processStats = new ProcessStats();
  this.ksession.addEventListener( agendaStats );
  if (ksession.getProcessRuntime() != null) {
    this.ksession.getProcessRuntime().addEventListener( processStats );
  }
}

org.drools.commonInternalWorkingMemoryaddEventListener

Popular methods of InternalWorkingMemory

  • fireAllRules
  • getAgenda
  • getSessionClock
  • insert
  • removeEventListener
  • retract
  • getObjectStore
  • iterateObjects
  • setGlobal
  • update
  • activationFired
    This method is called by the agenda right after an activation was fired to allow the working memory
  • addLIANodePropagation
  • activationFired,
  • addLIANodePropagation,
  • clearNodeMemory,
  • endOperation,
  • executeQueuedActions,
  • getCalendars,
  • getEntryPoint,
  • getEntryPointNode,
  • getEntryPoints

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now