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

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

Best Java code snippets using org.drools.common.InternalWorkingMemory.clearNodeMemory (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

protected void doRemove(final RuleRemovalContext context,
            final ReteooBuilder builder,
            final InternalWorkingMemory[] workingMemories) {
  if ( !this.isInUse() ) {
    for( InternalWorkingMemory workingMemory : workingMemories ) {
      workingMemory.clearNodeMemory( this );
    }
    tupleSource.removeTupleSink( this );
  } else {
    throw new RuntimeException("ConditionalBranchNode cannot be shared");
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

protected void doRemove(final RuleRemovalContext context,
            final ReteooBuilder builder,
            final InternalWorkingMemory[] workingMemories) {
  if ( !this.isInUse() ) {
    for( InternalWorkingMemory workingMemory : workingMemories ) {
      workingMemory.clearNodeMemory( this );
    }
    tupleSource.removeTupleSink( this );
  } else {
    // need to re-wire eval expression to the same one from another rule 
    // that is sharing this node
    Entry<Rule, RuleComponent> next = this.getAssociations().entrySet().iterator().next();
    this.condition = (EvalCondition) next.getValue();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

protected void doRemove(RuleRemovalContext context,
            ReteooBuilder builder,
            InternalWorkingMemory[] workingMemories) {
  if (!isInUse()) {
    for ( InternalWorkingMemory workingMemory : workingMemories ) {
      workingMemory.clearNodeMemory( this );
    }
    tupleSource.removeTupleSink(this);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

protected void doRemove(final RuleRemovalContext context,
            final ReteooBuilder builder,
            final InternalWorkingMemory[] workingMemories) {
  if ( !this.isInUse() && this instanceof NodeMemory ) {
    for( InternalWorkingMemory workingMemory : workingMemories ) {
      workingMemory.clearNodeMemory( (NodeMemory) this );
    }
  }
  if ( !isInUse() && this instanceof ObjectSink ) {
    this.source.removeObjectSink((ObjectSink) this);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

protected void doRemove(final RuleRemovalContext context,
            final ReteooBuilder builder,
            final InternalWorkingMemory[] workingMemories) {
  if ( !this.isInUse() ) {
    for ( InternalWorkingMemory workingMemory : workingMemories ) {
      FromMemory memory = (FromMemory) workingMemory.getNodeMemory( this );
      Iterator it = memory.betaMemory.getLeftTupleMemory().iterator();
      for ( LeftTuple leftTuple = (LeftTuple) it.next(); leftTuple != null; leftTuple = (LeftTuple) it.next() ) {
        unlinkCreatedHandles( workingMemory,
                   memory,
                   leftTuple );
        leftTuple.unlinkFromLeftParent();
        leftTuple.unlinkFromRightParent();
      }
      workingMemory.clearNodeMemory( this );
    }
    tupleSource.removeTupleSink( this );
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

protected void doRemove(final RuleRemovalContext context,
            final ReteooBuilder builder,
            final InternalWorkingMemory[] workingMemories) {
  if ( !this.isInUse() ) {
    for ( InternalWorkingMemory workingMemory : workingMemories ) {
      final RIAMemory memory = (RIAMemory) workingMemory.getNodeMemory( this );
      Iterator it = memory.memory.iterator();
      for ( ObjectEntry entry = (ObjectEntry) it.next(); entry != null; entry = (ObjectEntry) it.next() ) {
        LeftTuple leftTuple = (LeftTuple) entry.getKey();
        leftTuple.unlinkFromLeftParent();
        leftTuple.unlinkFromRightParent();
      }
      workingMemory.clearNodeMemory( this );
    }
  }
  if ( !isInUse() ) {
    tupleSource.removeTupleSink(this);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

  rightTuple = tmp;
workingMemory.clearNodeMemory(this);
org.drools.commonInternalWorkingMemoryclearNodeMemory

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,
  • endOperation,
  • executeQueuedActions,
  • 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