Codota Logo
EntryPointDescr.getEntryId
Code IndexAdd Codota to your IDE (free)

How to use
getEntryId
method
in
org.drools.compiler.lang.descr.EntryPointDescr

Best Java code snippets using org.drools.compiler.lang.descr.EntryPointDescr.getEntryId (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.drools/drools-compiler

@Test
public void testEntryPoint2() throws Exception {
  final String text = "rule X when StockTick( symbol==\"ACME\") from entry-point \"StreamA\" then end";
  PackageDescr pkg = (PackageDescr) parse( "compilationUnit",
                         text );
  assertFalse( parser.getErrors().toString(),
         parser.hasErrors() );
  RuleDescr rule = pkg.getRules().get( 0 );
  PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get( 0 );
  assertEquals( 1,
         pattern.getDescrs().size() );
  ExprConstraintDescr fcd = (ExprConstraintDescr) pattern.getDescrs().get( 0 );
  assertEquals( "symbol==\"ACME\"",
         fcd.getExpression() );
  assertNotNull( pattern.getSource() );
  EntryPointDescr entry = (EntryPointDescr) pattern.getSource();
  assertEquals( "StreamA",
         entry.getEntryId() );
}
origin: org.drools/drools-compiler

@Test
public void testEntryPoint() throws Exception {
  final String text = "rule X when StockTick( symbol==\"ACME\") from entry-point StreamA then end";
  PackageDescr pkg = (PackageDescr) parse( "compilationUnit",
                         text );
  assertFalse( parser.getErrors().toString(),
         parser.hasErrors() );
  RuleDescr rule = pkg.getRules().get( 0 );
  PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get( 0 );
  assertEquals( 1,
         pattern.getDescrs().size() );
  ExprConstraintDescr fcd = (ExprConstraintDescr) pattern.getDescrs().get( 0 );
  assertEquals( "symbol==\"ACME\"",
         fcd.getExpression() );
  assertNotNull( pattern.getSource() );
  EntryPointDescr entry = (EntryPointDescr) pattern.getSource();
  assertEquals( "StreamA",
         entry.getEntryId() );
}
origin: org.kie.workbench.services/kie-wb-common-refactoring-backend

protected void visit(final EntryPointDescr descr) {
  addSharedReference(descr.getEntryId(),
            PartType.ENTRY_POINT);
}
org.drools.compiler.lang.descrEntryPointDescrgetEntryId

Popular methods of EntryPointDescr

  • getText

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
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