Codota Logo
org.drools.common
Code IndexAdd Codota to your IDE (free)

How to use org.drools.common

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void delete(LogicalDependency node,
          BeliefSet beliefSet,
          PropagationContext context) {
  beliefSet.remove( node.getJustifierEntry() );
  
  WorkingMemoryAction action = new LogicalRetractCallback( tms,
                               node,
                               beliefSet,
                               (InternalFactHandle) node.getJustified(),
                               context,
                               node.getJustifier() );
  wm.queueWorkingMemoryAction( action );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

/**
 * This class is not thread safe, changes to the working memory during
 * iteration may give unexpected results
 */
public Iterator iterateFactHandles(org.drools.runtime.ObjectFilter filter) {
  return getObjectStore().iterateFactHandles( filter );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

  public int compare(EqualityKey key1,
            EqualityKey key2) {
    return key1.getFactHandle().getId() - key2.getFactHandle().getId();
  }
}
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 NamedEntryPoint(EntryPoint entryPoint,
            EntryPointNode entryPointNode,
            AbstractWorkingMemory wm,
            ReentrantLock lock) {
  this.entryPoint = entryPoint;
  this.entryPointNode = entryPointNode;
  this.wm = wm;
  this.ruleBase = (InternalRuleBase) this.wm.getRuleBase();
  this.lock = lock;
  this.typeConfReg = new ObjectTypeConfigurationRegistry( this.ruleBase );
  this.handleFactory = this.wm.getFactHandleFactory();
  this.objectStore = new SingleThreadedObjectStore( this.ruleBase.getConfiguration(),
                           this.lock );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void activateRuleFlowGroup(final String name, long processInstanceId, String nodeInstanceId) {
  InternalRuleFlowGroup ruleFlowGroup = (InternalRuleFlowGroup) getRuleFlowGroup( name );
  ruleFlowGroup.addNodeInstance(processInstanceId, nodeInstanceId);
  ruleFlowGroup.setActive( true );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public RuleFlowGroup getRuleFlowGroup(final String name) {
  RuleFlowGroup ruleFlowGroup = this.ruleFlowGroups.get( name );
  if ( ruleFlowGroup == null ) {
    ruleFlowGroup = new RuleFlowGroupImpl( name );
    ((InternalRuleFlowGroup) ruleFlowGroup).setWorkingMemory( (InternalWorkingMemory) getWorkingMemory() );
    this.ruleFlowGroups.put( name,
                 ruleFlowGroup );
  }
  return ruleFlowGroup;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void updateSinkOnAttach( BuildContext context, InternalWorkingMemory workingMemory ) {
  final PropagationContext propagationContext = new PropagationContextImpl(workingMemory.getNextPropagationIdCounter(),
                                       PropagationContext.RULE_ADDITION,
                                       null,
                                       null,
                                       null);
  this.updateSinkOnAttach( context, propagationContext, workingMemory );
  propagationContext.evaluateActionQueue( workingMemory );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

/**
 * This class is not thread safe, changes to the working memory during
 * iteration may give unexpected results
 */
public Iterator iterateObjects() {
  return getObjectStore().iterateObjects();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void removeRuleFlowGroupListener(String ruleFlowGroup,
                    RuleFlowGroupListener listener) {
  InternalRuleFlowGroup rfg = (InternalRuleFlowGroup) this.getRuleFlowGroup( ruleFlowGroup );
  rfg.removeRuleFlowGroupListener( listener );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

  public void execute( final ObjectSinkPropagator sink,
             final InternalWorkingMemory workingMemory ) {
    if ( handle.isEvent() ) {
      (( EventFactHandle ) handle).decPendingActions();
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

/** Side-effects, will add the created key to the handle. */
private EqualityKey createEqualityKey(InternalFactHandle handle) {
 EqualityKey key = new EqualityKey( handle );
 handle.setEqualityKey( key );
 return key;
}

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

/**
 * @see WorkingMemory
 */
public FactHandle getFactHandleByIdentity(final Object object) {
  return getObjectStore().getHandleForObjectIdentity( object );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public Action(InternalFactHandle handle,
       PropagationContext context) {
  super();
  if ( handle.isEvent() ) {
    (( EventFactHandle ) handle).incPendingActions();
  }
  this.handle = handle;
  this.context = context;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void addRuleFlowGroupListener(String ruleFlowGroup,
                   RuleFlowGroupListener listener) {
  InternalRuleFlowGroup rfg = (InternalRuleFlowGroup) this.getRuleFlowGroup( ruleFlowGroup );
  rfg.addRuleFlowGroupListener( listener );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void read(LogicalDependency node,
         BeliefSet beliefSet,
         PropagationContext context,
         ObjectTypeConf typeConf) {
  beliefSet.add( node.getJustifierEntry() );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void deactivateRuleFlowGroup(final String name) {
  ((InternalRuleFlowGroup) getRuleFlowGroup( name )).setActive( false );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

/**
 * This class is not thread safe, changes to the working memory during
 * iteration may give unexpected results
 */
public Iterator iterateFactHandles() {
  return getObjectStore().iterateFactHandles();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

  public int compare(EqualityKey key1,
      EqualityKey key2) {
    return key1.getFactHandle().getId() - key2.getFactHandle().getId();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

/**
 * This class is not thread safe, changes to the working memory during
 * iteration may give unexpected results
 */
public Iterator iterateObjects(org.drools.runtime.ObjectFilter filter) {
  return getObjectStore().iterateObjects( filter );
}
org.drools.common

Most used classes

  • InternalWorkingMemory
  • DefaultFactHandle
    Implementation of FactHandle.
  • InternalRuleBase
  • DroolsObjectOutputStream
  • EventFactHandle
  • ObjectStore,
  • AbstractFactHandleFactory,
  • AbstractRuleBase$TypeDeclarationCandidate,
  • AbstractRuleBase,
  • AbstractWorkingMemory$EntryPointObjects,
  • AbstractWorkingMemory$GlobalsAdapter,
  • AbstractWorkingMemory,
  • ActivationGroupImpl,
  • ActivationGroupNode,
  • ActivationIterator,
  • ActivationNode,
  • ActivationsFilter,
  • ActiveActivationIterator,
  • AgendaFactory
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