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

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

Best Java code snippets using org.drools.common.InternalWorkingMemory.getEntryPointNode (Showing top 7 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 execute(InternalWorkingMemory workingMemory) {
  workingMemory.getEntryPointNode().modifyQuery( factHandle,
                          context,
                          workingMemory );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void execute(InternalWorkingMemory workingMemory) {
  // we null this as it blocks this query being called, to avoid re-entrant issues. i.e. scheduling an insert and then an update, before the insert is executed
  ((DroolsQuery) this.factHandle.getObject()).setAction( null );
  workingMemory.getEntryPointNode().assertQuery( factHandle,
                          context,
                          workingMemory );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void removeActivation(final AgendaItem activation) {
  if ( declarativeAgenda ) {
    workingMemory.getEntryPointNode().retractActivation( activation.getFactHandle(), activation.getPropagationContext(), workingMemory );
    if ( activation.getActivationGroupNode() != null ) {
      activation.getActivationGroupNode().getActivationGroup().removeActivation( activation );
    }
  }
  if ( activation instanceof ScheduledAgendaItem ) {
    removeScheduleItem( (ScheduledAgendaItem) activation );
  }
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void execute(InternalWorkingMemory workingMemory) {
  InternalFactHandle factHandle = (InternalFactHandle) leftTuple.getObject();
  if ( node.isOpenQuery() ) {
    // iterate to the query terminal node, as the child leftTuples will get picked up there
    workingMemory.getEntryPointNode().retractObject( factHandle,
                             context,
                             workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( workingMemory.getEntryPoint(),
                                                                factHandle.getObject() ),
                             workingMemory );
    //workingMemory.getFactHandleFactory().destroyFactHandle( factHandle );
  } else {
    // get child left tuples, as there is no open query
    if ( leftTuple.getFirstChild() != null ) {
      node.getSinkPropagator().propagateRetractLeftTuple( leftTuple,
                                context,
                                workingMemory );
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public boolean addActivation(final AgendaItem activation) { 
  if ( declarativeAgenda ) {
    if (  activationObjectTypeConf == null ) {
      EntryPoint ep = workingMemory.getEntryPoint();
      activationObjectTypeConf =  ((InternalWorkingMemoryEntryPoint) workingMemory.getWorkingMemoryEntryPoint( ep.getEntryPointId() )).getObjectTypeConfigurationRegistry().getObjectTypeConf( ep,
                                                                                                   activation );
    }
    
    InternalFactHandle factHandle = workingMemory.getFactHandleFactory().newFactHandle( activation, activationObjectTypeConf, workingMemory, workingMemory );
    workingMemory.getEntryPointNode().assertActivation( factHandle, activation.getPropagationContext(), workingMemory );
    activation.setFactHandle( factHandle );
    
    if ( !activation.isCanceled() && ( activation.getBlockers() == null || activation.getBlockers().isEmpty() ) ) {
      // All activations started off staged, they are unstaged if they are blocked or 
      // allowed to move onto the actual agenda for firing.
      getStageActivationsGroup().addActivation( activation );
    }
          return true;
  } else {
    addActivation( activation, true );
    return true;
  }
} 

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void modifyActivation(final AgendaItem activation, boolean previouslyActive) {        
  if ( declarativeAgenda ) {
    InternalFactHandle factHandle = activation.getFactHandle();
    workingMemory.getEntryPointNode().modifyActivation( factHandle, activation.getPropagationContext(), workingMemory );
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

workingMemory.getEntryPointNode().modifyActivation( factHandle, activation.getPropagationContext(), workingMemory );
activation.getPropagationContext().evaluateActionQueue( workingMemory );
org.drools.commonInternalWorkingMemorygetEntryPointNode

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,
  • executeQueuedActions,
  • getCalendars,
  • getEntryPoint,
  • 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