Examples of Calendars


Examples of org.kie.api.runtime.Calendars

    }

    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 );
    }
View Full Code Here

Examples of org.kie.api.runtime.Calendars

    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();
View Full Code Here

Examples of org.kie.api.runtime.Calendars

    }

    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 );
    }
View Full Code Here

Examples of org.kie.api.runtime.Calendars


    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 );
    }
View Full Code Here

Examples of org.kie.api.runtime.Calendars


    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 );
    }
View Full Code Here

Examples of org.kie.api.runtime.Calendars

                              LeftTupleSets trgLeftTuples) {
        Timer timer = timerNode.getTimer();
        TimerService timerService = wm.getTimerService();
        long timestamp = timerService.getCurrentTime();
        String[] calendarNames = timerNode.getCalendarNames();
        Calendars calendars = wm.getCalendars();

        for ( LeftTuple leftTuple = srcLeftTuples.getInsertFirst(); leftTuple != null; ) {
            LeftTuple next = leftTuple.getStagedNext();

            scheduleLeftTuple( timerNode, tm, pmem, sink, wm, timer, timerService, timestamp, calendarNames, calendars, leftTuple, trgLeftTuples, null );
View Full Code Here

Examples of org.kie.api.runtime.Calendars

        // Variables may have changed for ExpressionIntervalTimer, so it must be rescheduled
        TimerService timerService = wm.getTimerService();
        long timestamp = timerService.getCurrentTime();
        String[] calendarNames = timerNode.getCalendarNames();
        Calendars calendars = wm.getCalendars();

        for ( LeftTuple leftTuple = srcLeftTuples.getUpdateFirst(); leftTuple != null; ) {
            LeftTuple next = leftTuple.getStagedNext();

            DefaultJobHandle jobHandle = (DefaultJobHandle) leftTuple.getObject();
View Full Code Here

Examples of org.kie.runtime.Calendars

    }

    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 );
    }
View Full Code Here

Examples of org.zkoss.calendar.Calendars

  /** Creates an instance of {@link Event} based on the specified request.
   */
  public static CalendarsEvent getCreateEvent(AuRequest request) {
    final JSONArray data = (JSONArray) request.getData().get("data");
    final Calendars cmp = verifyEvent(request, data, 6);
    TimeZone tz = cmp.getDefaultTimeZone();
    Date eventBegin = Util.fixDSTTime(tz, new Date(getLong(data.get(0))));
    Date eventEnd = Util.fixDSTTime(tz, new Date(getLong(data.get(1))));
   
    return new CalendarsEvent(ON_EVENT_CREATE, cmp, null,
        eventBegin, eventEnd,
View Full Code Here

Examples of org.zkoss.calendar.Calendars

        getInt(data.get(4)),getInt(data.get(5)));
  }
 
  public static CalendarsEvent getEditEvent(AuRequest request) {
    final JSONArray data = (JSONArray) request.getData().get("data");
    final Calendars cmp = verifyEvent(request, data, 5);
   
    CalendarEvent ce = cmp.getCalendarEventById(String.valueOf(data.get(0)));
   
    if (ce == null) return null;
   
    return new CalendarsEvent(ON_EVENT_EDIT, cmp, ce, null, null,
        getInt(data.get(1)), getInt(data.get(2)),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.