Codota Logo
PropagationContextFactory.createPropagationContext
Code IndexAdd Codota to your IDE (free)

How to use
createPropagationContext
method
in
org.drools.core.common.PropagationContextFactory

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.drools/drools-core

@Before
public void setUp() {
  this.kBase = (InternalKnowledgeBase) KnowledgeBaseFactory.newKnowledgeBase();
  this.buildContext = new BuildContext( kBase );
  this.buildContext.setRule(new RuleImpl());
  PropagationContextFactory pctxFactory = kBase.getConfiguration().getComponentFactory().getPropagationContextFactory();
  this.context = pctxFactory.createPropagationContext(0, PropagationContext.Type.INSERTION, null, null, null);
  this.workingMemory = new InstrumentedWorkingMemory( 0, this.kBase );
}
origin: org.drools/drools-core

pctxFactory.createPropagationContext(0,
                   PropagationContext.Type.INSERTION,
                   null,
pctxFactory.createPropagationContext(0,
                   PropagationContext.Type.INSERTION,
                   null,
 pctxFactory.createPropagationContext(0,
                   PropagationContext.Type.INSERTION,
                   null,
origin: org.drools/drools-core

pctxFactory.createPropagationContext(0,
                   PropagationContext.Type.INSERTION,
                   null,
pctxFactory.createPropagationContext(0,
                   PropagationContext.Type.INSERTION,
                   null,
origin: org.drools/drools-core

pctxFactory.createPropagationContext(0,
                   PropagationContext.Type.INSERTION,
                   null,
origin: org.drools/drools-core

@Test
public void testIsShadowed() {
  StatefulKnowledgeSessionImpl ksession = (StatefulKnowledgeSessionImpl)kBase.newKieSession();
  // Create a Rete network with ObjectTypeNodes for List, Collection and ArrayList
  final Rete rete = kBase.getRete();
  final ObjectTypeNode objectTypeNode = new ObjectTypeNode(1,
                               this.entryPoint,
                               new ClassObjectType(Cheese.class),
                               buildContext);
  objectTypeNode.attach(buildContext);
  final MockObjectSink sink1 = new MockObjectSink();
  objectTypeNode.addObjectSink(sink1);
  // There are no String ObjectTypeNodes, make sure its not propagated
  final Cheese cheese = new Cheese("brie",
                   15);
  final DefaultFactHandle h1 = new DefaultFactHandle(1,
                            cheese);
  rete.assertObject(h1,
           pctxFactory.createPropagationContext(0,
                              PropagationContext.Type.INSERTION,
                              null,
                              null,
                              null),
           ksession);
  ksession.fireAllRules();
  final Object[] results = (Object[]) sink1.getAsserted().get(0);
}
origin: org.drools/drools-core

                          new ArrayList());
rete.assertObject(h1,
         pctxFactory.createPropagationContext(0,
                            PropagationContext.Type.INSERTION,
                            null,
         pctxFactory.createPropagationContext(0,
                            PropagationContext.Type.INSERTION,
                            null,
origin: org.drools/drools-core

final PropagationContext context = pctxFactory.createPropagationContext(0, PropagationContext.Type.INSERTION, null, null, null);
origin: org.drools/drools-core

final PropagationContext context = pctxFactory.createPropagationContext(0, PropagationContext.Type.INSERTION, null, null, null);
origin: org.drools/drools-compiler

                    pctxFactory.createPropagationContext( 1, PropagationContext.Type.DELETION, null, tuple != null ? (TerminalNode)tuple.getTupleSink() : null, null ),
                    new RuleTerminalNode(0, new CompositeObjectSinkAdapterTest.MockBetaNode(), context.getRule(), subrule, 0, new BuildContext( kBase )), null);
final DefaultKnowledgeHelper kbHelper = new DefaultKnowledgeHelper( ksession );
origin: org.drools/drools-reteoo

public void evaluate(final KnowledgeHelper knowledgeHelper,
           final WorkingMemory workingMemory) {
  /* on first invoke add another one to the agenda */
  if (data.size() < 3) {
    final PropagationContext context2 = pctxFactory.createPropagationContext(0,
                                         0,
                                         rule,
                                         (RuleTerminalNodeLeftTuple) knowledgeHelper.getTuple(),
                                         null);
    final RuleTerminalNodeLeftTuple tuple2 = new RuleTerminalNodeLeftTuple(new DefaultFactHandle(2,
                                                   "cheese"),
                                        node,
                                        true);
    node.assertLeftTuple(tuple2,
               context2,
               (StatefulKnowledgeSessionImpl) workingMemory);
  }
  data.add("tested");
}
origin: org.drools/drools-reteoo

public void evaluate(final KnowledgeHelper knowledgeHelper,
           final WorkingMemory workingMemory) {
  /* on first invoke add another one to the agenda */
  if (data.size() < 5) {
    final PropagationContext context2 = pctxFactory.createPropagationContext(0,
                                         0,
                                         rule,
                                         (RuleTerminalNodeLeftTuple) knowledgeHelper.getTuple(),
                                         null);
    final RuleTerminalNodeLeftTuple tuple2 = new RuleTerminalNodeLeftTuple(new DefaultFactHandle(2,
                                                   "cheese"),
                                        node,
                                        true);
    node.assertLeftTuple(tuple2,
               context2,
               (StatefulKnowledgeSessionImpl) workingMemory);
  }
  data.add("tested");
}
origin: org.drools/drools-core

final PropagationContext context = pctxFactory.createPropagationContext(0, PropagationContext.Type.INSERTION, null, null, null);
origin: org.drools/drools-core

context = pctxFactory.createPropagationContext(0, PropagationContext.Type.INSERTION, null, null, null);
origin: org.drools/drools-core

context = pctxFactory.createPropagationContext(0, PropagationContext.Type.INSERTION, null, null, null);
origin: org.drools/drools-core

context = pctxFactory.createPropagationContext(0, PropagationContext.Type.INSERTION, null, null, null);
origin: org.drools/drools-reteoo

@Before
public void setUp() {
  this.kBase = (InternalKnowledgeBase) KnowledgeBaseFactory.newKnowledgeBase();
  this.buildContext = new BuildContext(kBase,
                     kBase.getReteooBuilder().getIdGenerator());
  PropagationContextFactory pctxFactory = kBase.getConfiguration().getComponentFactory().getPropagationContextFactory();
  this.context = pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, null);
  StatefulKnowledgeSessionImpl ksession = (StatefulKnowledgeSessionImpl)kBase.newStatefulKnowledgeSession();
}
origin: org.drools/drools-reteoo

pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, f0),
this.workingMemory );
  pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, f0),
  this.workingMemory );
origin: org.drools/drools-reteoo

@Test
public void testSlotSpecific() {
  PropagationContext contextPassAll = pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, null, 0, 0, EntryPointId.DEFAULT, allSetButTraitBitMask());
  PropagationContext contextPassNothing = pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, null, 0, 0, EntryPointId.DEFAULT, EmptyBitMask.get());
  PropagationContext contextPass2And3 = pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, null, 0, 0, EntryPointId.DEFAULT, new LongBitMask(6));
origin: org.drools/drools-reteoo

final PropagationContext context = pctxFactory.createPropagationContext(0,
                                    PropagationContext.INSERTION,
                                    null,
origin: org.drools/drools-reteoo

this.context = pctxFactory.createPropagationContext(0, PropagationContext.INSERTION, null, null, null);
this.workingMemory = new StatefulKnowledgeSessionImpl(1L, kBase);
org.drools.core.commonPropagationContextFactorycreatePropagationContext

Popular methods of PropagationContextFactory

    Popular in Java

    • Updating database using SQL prepared statement
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • scheduleAtFixedRate (Timer)
      Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
    • ByteBuffer (java.nio)
      A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
    • Deque (java.util)
      A linear collection that supports element insertion and removal at both ends. The name deque is shor
    • Stack (java.util)
      The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
    • StringTokenizer (java.util)
      The string tokenizer class allows an application to break a string into tokens. The tokenization met
    • Filter (javax.servlet)
      A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
    • Logger (org.slf4j)
      The main user interface to logging. It is expected that logging takes place through concrete impleme
    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