Package org.jbpm.calendar

Examples of org.jbpm.calendar.BusinessCalendar


    createTimer(dueDate);
  }

  public void createTimer(String duration) {
    TimerService timerService = entityContext.getTimerService();
    BusinessCalendar businessCalendar = new BusinessCalendar();
    Date dueDateTime = businessCalendar.add(new Date(), new Duration(duration));
    timerService.createTimer(dueDateTime, null);
  }
View Full Code Here


        {
          dueDate = baseDate;
        }
        else
        {
          BusinessCalendar businessCalendar = new BusinessCalendar();
          dueDate = businessCalendar.add(baseDate, new Duration(durationString));
        }
        taskInstance.setDueDate(dueDate);
      }

      try
View Full Code Here

                            || (signal==TaskNode.SIGNAL_FIRST_WAIT )
                            || (signal==TaskNode.SIGNAL_LAST_WAIT )
                          );
    }
    if (task.getDueDate()!=null) {
      BusinessCalendar businessCalendar = new BusinessCalendar();
      this.dueDate = businessCalendar.add(new Date(), new Duration(task.getDueDate()));
    }
  }
View Full Code Here

                            || (signal==TaskNode.SIGNAL_FIRST_WAIT )
                            || (signal==TaskNode.SIGNAL_LAST_WAIT )
                          );
    }
    if (task.getDueDate()!=null) {
      BusinessCalendar businessCalendar = new BusinessCalendar();
      this.dueDate = businessCalendar.add(new Date(), new Duration(task.getDueDate()));
    }
  }
View Full Code Here

      }
    }
    workItem.setParameter("Description", description);
    initializeVariables(workItem, task, nodeInstance);
    if (task.getDueDate() != null) {
        BusinessCalendar businessCalendar = new BusinessCalendar();
        workItem.setParameter("dueDate",
              businessCalendar.add(new Date(), new Duration(task.getDueDate())));
      }
    if (task.getSwimlane() != null) {
        String swimlaneName = task.getSwimlane().getName();
        SwimlaneContextInstance swimlaneContextInstance = (SwimlaneContextInstance)
            nodeInstance.resolveContextInstance(SwimlaneContext.SWIMLANE_SCOPE, swimlaneName);
View Full Code Here

                            || (signal==TaskNode.SIGNAL_FIRST_WAIT )
                            || (signal==TaskNode.SIGNAL_LAST_WAIT )
                          );
    }
    if (task.getDueDate()!=null) {
      BusinessCalendar businessCalendar = new BusinessCalendar();
      this.dueDate = businessCalendar.add(Clock.getCurrentTime(), new Duration(task.getDueDate()));
    }
  }
View Full Code Here

TOP

Related Classes of org.jbpm.calendar.BusinessCalendar

Copyright © 2018 www.massapicom. 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.