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

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

Best Java code snippets using org.drools.common.InternalWorkingMemory.getCalendars (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 Trigger createTrigger( Activation item, WorkingMemory wm ) {
  long timestamp = ((InternalWorkingMemory) wm).getTimerService().getCurrentTime();
  String[] calendarNames = item.getRule().getCalendars();
  Calendars calendars = ((InternalWorkingMemory) wm).getCalendars();
  return createTrigger( timestamp, calendarNames, calendars );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public Trigger createTrigger( Activation item, WorkingMemory wm ) {
  long timestamp = ((InternalWorkingMemory) wm).getTimerService().getCurrentTime();
  String[] calendarNames = item.getRule().getCalendars();
  Calendars calendars = ((InternalWorkingMemory) wm).getCalendars();
  return createTrigger( timestamp, calendarNames, calendars );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public Trigger createTrigger( Activation item, WorkingMemory wm ) {
  long timestamp = ((InternalWorkingMemory) wm).getTimerService().getCurrentTime();
  String[] calendarNames = item.getRule().getCalendars();
  Calendars calendars = ((InternalWorkingMemory) wm).getCalendars();
  return createTrigger( timestamp, calendarNames, calendars );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public Trigger createTrigger( Activation item, WorkingMemory wm ) {
  long timestamp;
  if (eventFactHandleDecl != null) {
    LeftTuple leftTuple = item.getTuple();
    EventFactHandle  fh = (EventFactHandle) leftTuple.get(eventFactHandleDecl);
    timestamp = fh.getStartTimestamp();
  } else {
    timestamp = ((InternalWorkingMemory)wm).getTimerService().getCurrentTime();
  }
  String[] calendarNames = item.getRule().getCalendars();
  Calendars calendars = ((InternalWorkingMemory) wm).getCalendars();
  return createTrigger( timestamp, calendarNames, calendars );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public Trigger createTrigger( Activation item, WorkingMemory wm ) {
  long timestamp = ((InternalWorkingMemory) wm).getTimerService().getCurrentTime();
  String[] calendarNames = item.getRule().getCalendars();
  Calendars calendars = ((InternalWorkingMemory) wm).getCalendars();
  
  long timeSinceLastFire = 0;
  ScheduledAgendaItem schItem = ( ScheduledAgendaItem ) item;
  if ( schItem.getJobHandle() != null ) {
    DefaultJobHandle jh = ( DefaultJobHandle) schItem.getJobHandle();
    IntervalTrigger preTrig = ( IntervalTrigger ) jh.getTimerJobInstance().getTrigger();
    if ( preTrig.hasNextFireTime() != null ) {
      timeSinceLastFire = timestamp - preTrig.getLastFireTime().getTime();
    }
  }
  
  long newDelay = (delay  != null ? evalDelay( item, wm ) : 0) - timeSinceLastFire;
  if ( newDelay < 0 ) {
    newDelay = 0;
  }        
  return new IntervalTrigger( timestamp,
                this.startTime,
                this.endTime,
                this.repeatLimit,
                newDelay,
                period != null ? evalPeriod( item, wm ) : 0,
                calendarNames,
                calendars );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

if ( !workingMemory.getCalendars().get( cal ).isTimeIncluded( timestamp ) ) {
  return false;
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

if ( !workingMemory.getCalendars().get( cal ).isTimeIncluded( timestamp ) ) {
  return false;
org.drools.commonInternalWorkingMemorygetCalendars

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