Codota Logo
InternalWorkingMemory.executeQueuedActions
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void fireUntilHalt(final AgendaFilter agendaFilter) {
  unstageActivations();
  this.halt.set( false );
  while ( continueFiring( -1 ) ) {
    boolean fired = fireNextItem( agendaFilter );
    fired = fired || !((AbstractWorkingMemory) this.workingMemory).getActionQueue().isEmpty();
    this.workingMemory.executeQueuedActions();
    if ( !fired ) {
      try {
        synchronized ( this.halt ) {
          if( !this.halt.get() ) this.halt.wait();
        }
      } catch ( InterruptedException e ) {
        this.halt.set( true );
      }
    } else {
      this.workingMemory.executeQueuedActions();
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public int fireAllRules(AgendaFilter agendaFilter,
            int fireLimit) {
  unstageActivations();
  this.halt.set( false );
  int fireCount = 0;
  while ( continueFiring( fireLimit ) && fireNextItem( agendaFilter ) ) {
    fireCount++;
    fireLimit = updateFireLimit( fireLimit );
    this.workingMemory.executeQueuedActions();
  }
  if ( this.focusStack.size() == 1 && getMainAgendaGroup().isEmpty() ) {
    // the root MAIN agenda group is empty, reset active to false, so it can receive more activations.
    getMainAgendaGroup().setActive( false );
  }
  return fireCount;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

                  workingMemory);
  workingMemory.executeQueuedActions();
  context.setActiveWindowTupleList(null);
} finally {
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

workingMemory.executeQueuedActions();
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

this.workingMemory.executeQueuedActions();
this.workingMemory.executeQueuedActions();
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

private static void assertHandleIntoOTN(MarshallerReaderContext context,
                    InternalWorkingMemory wm,
                    InternalFactHandle handle) {
  Object object = handle.getObject();
  InternalWorkingMemoryEntryPoint ep = (InternalWorkingMemoryEntryPoint) handle.getEntryPoint();
  ObjectTypeConf typeConf = ((InternalWorkingMemoryEntryPoint) handle.getEntryPoint()).getObjectTypeConfigurationRegistry().getObjectTypeConf( ep.getEntryPoint(),
                                                                         object );
  PropagationContextImpl propagationContext = new PropagationContextImpl( wm.getNextPropagationIdCounter(),
                                      PropagationContext.ASSERTION,
                                      null,
                                      null,
                                      handle,
                                      ((DefaultAgenda) wm.getAgenda()).getActiveActivations(),
                                      ((DefaultAgenda) wm.getAgenda()).getDormantActivations(),
                                      ep.getEntryPoint(),
                                      context);
  ep.getEntryPointNode().assertObject( handle,
                     propagationContext,
                     typeConf,
                     wm );
  propagationContext.evaluateActionQueue( wm );
  wm.executeQueuedActions();
  propagationContext.cleanReaderContext();
}
org.drools.commonInternalWorkingMemoryexecuteQueuedActions

Popular methods of InternalWorkingMemory

  • addEventListener
  • 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
  • update,
  • activationFired,
  • addLIANodePropagation,
  • clearNodeMemory,
  • endOperation,
  • getCalendars,
  • getEntryPoint,
  • getEntryPointNode,
  • getEntryPoints

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • JFileChooser (javax.swing)
  • JFrame (javax.swing)
  • JPanel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now