congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BatchWindowConfiguration
Code IndexAdd Tabnine to your IDE (free)

How to use
BatchWindowConfiguration
in
org.camunda.bpm.engine.impl.cfg

Best Java code snippets using org.camunda.bpm.engine.impl.cfg.BatchWindowConfiguration (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

private void initHistoryCleanupBatchWindowsMap() {
 if (mondayHistoryCleanupBatchWindowStartTime != null || mondayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.MONDAY, new BatchWindowConfiguration(mondayHistoryCleanupBatchWindowStartTime, mondayHistoryCleanupBatchWindowEndTime));
 }
 if (tuesdayHistoryCleanupBatchWindowStartTime != null || tuesdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.TUESDAY, new BatchWindowConfiguration(tuesdayHistoryCleanupBatchWindowStartTime, tuesdayHistoryCleanupBatchWindowEndTime));
 }
 if (wednesdayHistoryCleanupBatchWindowStartTime != null || wednesdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.WEDNESDAY, new BatchWindowConfiguration(wednesdayHistoryCleanupBatchWindowStartTime, wednesdayHistoryCleanupBatchWindowEndTime));
 }
 if (thursdayHistoryCleanupBatchWindowStartTime != null || thursdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.THURSDAY, new BatchWindowConfiguration(thursdayHistoryCleanupBatchWindowStartTime, thursdayHistoryCleanupBatchWindowEndTime));
 }
 if (fridayHistoryCleanupBatchWindowStartTime != null || fridayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.FRIDAY, new BatchWindowConfiguration(fridayHistoryCleanupBatchWindowStartTime, fridayHistoryCleanupBatchWindowEndTime));
 }
 if (saturdayHistoryCleanupBatchWindowStartTime != null ||saturdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.SATURDAY, new BatchWindowConfiguration(saturdayHistoryCleanupBatchWindowStartTime, saturdayHistoryCleanupBatchWindowEndTime));
 }
 if (sundayHistoryCleanupBatchWindowStartTime != null || sundayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.SUNDAY, new BatchWindowConfiguration(sundayHistoryCleanupBatchWindowStartTime, sundayHistoryCleanupBatchWindowEndTime));
 }
}
origin: camunda/camunda-bpm-platform

public BatchWindowConfiguration(String startTime, String endTime) {
 this.startTime = startTime;
 initStartTimeAsDate();
 if (endTime != null) {
  this.endTime = endTime;
 }
 initEndTimeAsDate();
}
origin: camunda/camunda-bpm-platform

private BatchWindow getBatchWindowForDate(Date date, ProcessEngineConfigurationImpl configuration) {
 //get configuration for given day of week
 BatchWindowConfiguration batchWindowConfiguration = configuration.getHistoryCleanupBatchWindows().get(dayOfWeek(date));
 if (batchWindowConfiguration == null && configuration.getHistoryCleanupBatchWindowStartTime() != null) {
  batchWindowConfiguration = new BatchWindowConfiguration(configuration.getHistoryCleanupBatchWindowStartTime(), configuration.getHistoryCleanupBatchWindowEndTime());
 }
 if (batchWindowConfiguration == null) {
  return null;
 }
 Date startTime = updateTime(date, batchWindowConfiguration.getStartTimeAsDate());
 Date endTime = updateTime(date, batchWindowConfiguration.getEndTimeAsDate());
 if (!endTime.after(startTime)) {
  endTime = addDays(endTime, 1);
 }
 return new BatchWindow(startTime, endTime);
}
origin: camunda/camunda-bpm-platform

public void setStartTime(String startTime) {
 this.startTime = startTime;
 initStartTimeAsDate();
}
origin: camunda/camunda-bpm-platform

public void setEndTime(String endTime) {
 this.endTime = endTime;
 initEndTimeAsDate();
}
origin: camunda/camunda-bpm-platform

private BatchWindow getBatchWindowForDate(Date date, ProcessEngineConfigurationImpl configuration) {
 //get configuration for given day of week
 BatchWindowConfiguration batchWindowConfiguration = configuration.getHistoryCleanupBatchWindows().get(dayOfWeek(date));
 if (batchWindowConfiguration == null && configuration.getHistoryCleanupBatchWindowStartTime() != null) {
  batchWindowConfiguration = new BatchWindowConfiguration(configuration.getHistoryCleanupBatchWindowStartTime(), configuration.getHistoryCleanupBatchWindowEndTime());
 }
 if (batchWindowConfiguration == null) {
  return null;
 }
 Date startTime = updateTime(date, batchWindowConfiguration.getStartTimeAsDate());
 Date endTime = updateTime(date, batchWindowConfiguration.getEndTimeAsDate());
 if (!endTime.after(startTime)) {
  endTime = addDays(endTime, 1);
 }
 return new BatchWindow(startTime, endTime);
}
origin: camunda/camunda-bpm-platform

public void setStartTime(String startTime) {
 this.startTime = startTime;
 initStartTimeAsDate();
}
origin: camunda/camunda-bpm-platform

public void setEndTime(String endTime) {
 this.endTime = endTime;
 initEndTimeAsDate();
}
origin: org.camunda.bpm/camunda-engine

private BatchWindow getBatchWindowForDate(Date date, ProcessEngineConfigurationImpl configuration) {
 //get configuration for given day of week
 BatchWindowConfiguration batchWindowConfiguration = configuration.getHistoryCleanupBatchWindows().get(dayOfWeek(date));
 if (batchWindowConfiguration == null && configuration.getHistoryCleanupBatchWindowStartTime() != null) {
  batchWindowConfiguration = new BatchWindowConfiguration(configuration.getHistoryCleanupBatchWindowStartTime(), configuration.getHistoryCleanupBatchWindowEndTime());
 }
 if (batchWindowConfiguration == null) {
  return null;
 }
 Date startTime = updateTime(date, batchWindowConfiguration.getStartTimeAsDate());
 Date endTime = updateTime(date, batchWindowConfiguration.getEndTimeAsDate());
 if (!endTime.after(startTime)) {
  endTime = addDays(endTime, 1);
 }
 return new BatchWindow(startTime, endTime);
}
origin: camunda/camunda-bpm-platform

private void initHistoryCleanupBatchWindowsMap() {
 if (mondayHistoryCleanupBatchWindowStartTime != null || mondayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.MONDAY, new BatchWindowConfiguration(mondayHistoryCleanupBatchWindowStartTime, mondayHistoryCleanupBatchWindowEndTime));
 }
 if (tuesdayHistoryCleanupBatchWindowStartTime != null || tuesdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.TUESDAY, new BatchWindowConfiguration(tuesdayHistoryCleanupBatchWindowStartTime, tuesdayHistoryCleanupBatchWindowEndTime));
 }
 if (wednesdayHistoryCleanupBatchWindowStartTime != null || wednesdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.WEDNESDAY, new BatchWindowConfiguration(wednesdayHistoryCleanupBatchWindowStartTime, wednesdayHistoryCleanupBatchWindowEndTime));
 }
 if (thursdayHistoryCleanupBatchWindowStartTime != null || thursdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.THURSDAY, new BatchWindowConfiguration(thursdayHistoryCleanupBatchWindowStartTime, thursdayHistoryCleanupBatchWindowEndTime));
 }
 if (fridayHistoryCleanupBatchWindowStartTime != null || fridayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.FRIDAY, new BatchWindowConfiguration(fridayHistoryCleanupBatchWindowStartTime, fridayHistoryCleanupBatchWindowEndTime));
 }
 if (saturdayHistoryCleanupBatchWindowStartTime != null ||saturdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.SATURDAY, new BatchWindowConfiguration(saturdayHistoryCleanupBatchWindowStartTime, saturdayHistoryCleanupBatchWindowEndTime));
 }
 if (sundayHistoryCleanupBatchWindowStartTime != null || sundayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.SUNDAY, new BatchWindowConfiguration(sundayHistoryCleanupBatchWindowStartTime, sundayHistoryCleanupBatchWindowEndTime));
 }
}
origin: camunda/camunda-bpm-platform

public BatchWindowConfiguration(String startTime, String endTime) {
 this.startTime = startTime;
 initStartTimeAsDate();
 if (endTime != null) {
  this.endTime = endTime;
 }
 initEndTimeAsDate();
}
origin: org.camunda.bpm/camunda-engine

public void setStartTime(String startTime) {
 this.startTime = startTime;
 initStartTimeAsDate();
}
origin: org.camunda.bpm/camunda-engine

public void setEndTime(String endTime) {
 this.endTime = endTime;
 initEndTimeAsDate();
}
origin: camunda/camunda-bpm-platform

@Test
public void testConfigurationFailureWrongDayOfTheWeekStartTime() throws ParseException {
 thrown.expect(ProcessEngineException.class);
 thrown.expectMessage("startTime");
 processEngineConfiguration.getHistoryCleanupBatchWindows().put(Calendar.MONDAY, new BatchWindowConfiguration("23", "01:00"));
}
origin: org.camunda.bpm/camunda-engine

public BatchWindowConfiguration(String startTime, String endTime) {
 this.startTime = startTime;
 initStartTimeAsDate();
 if (endTime != null) {
  this.endTime = endTime;
 }
 initEndTimeAsDate();
}
origin: camunda/camunda-bpm-platform

@Test
public void testConfigurationFailureWrongDayOfTheWeekEndTime() throws ParseException {
 thrown.expect(ProcessEngineException.class);
 thrown.expectMessage("endTime");
 processEngineConfiguration.getHistoryCleanupBatchWindows().put(Calendar.MONDAY, new BatchWindowConfiguration("23:00", "01"));
}
origin: camunda/camunda-bpm-platform

configuration.getHistoryCleanupBatchWindows().put(Calendar.MONDAY, new BatchWindowConfiguration("18:00", "20:00"));
configuration.setJdbcUrl("jdbc:h2:mem:camunda" + getClass().getSimpleName() + "testBatchWindowOneDayOfWeek");
origin: camunda/camunda-bpm-platform

configuration.getHistoryCleanupBatchWindows().put(Calendar.MONDAY, new BatchWindowConfiguration("06:00", "06:00"));
configuration.setJdbcUrl("jdbc:h2:mem:camunda" + getClass().getSimpleName() + "testBatchWindow24Hours");
origin: org.camunda.bpm/camunda-engine

private void initHistoryCleanupBatchWindowsMap() {
 if (mondayHistoryCleanupBatchWindowStartTime != null || mondayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.MONDAY, new BatchWindowConfiguration(mondayHistoryCleanupBatchWindowStartTime, mondayHistoryCleanupBatchWindowEndTime));
 }
 if (tuesdayHistoryCleanupBatchWindowStartTime != null || tuesdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.TUESDAY, new BatchWindowConfiguration(tuesdayHistoryCleanupBatchWindowStartTime, tuesdayHistoryCleanupBatchWindowEndTime));
 }
 if (wednesdayHistoryCleanupBatchWindowStartTime != null || wednesdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.WEDNESDAY, new BatchWindowConfiguration(wednesdayHistoryCleanupBatchWindowStartTime, wednesdayHistoryCleanupBatchWindowEndTime));
 }
 if (thursdayHistoryCleanupBatchWindowStartTime != null || thursdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.THURSDAY, new BatchWindowConfiguration(thursdayHistoryCleanupBatchWindowStartTime, thursdayHistoryCleanupBatchWindowEndTime));
 }
 if (fridayHistoryCleanupBatchWindowStartTime != null || fridayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.FRIDAY, new BatchWindowConfiguration(fridayHistoryCleanupBatchWindowStartTime, fridayHistoryCleanupBatchWindowEndTime));
 }
 if (saturdayHistoryCleanupBatchWindowStartTime != null ||saturdayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.SATURDAY, new BatchWindowConfiguration(saturdayHistoryCleanupBatchWindowStartTime, saturdayHistoryCleanupBatchWindowEndTime));
 }
 if (sundayHistoryCleanupBatchWindowStartTime != null || sundayHistoryCleanupBatchWindowEndTime != null) {
  historyCleanupBatchWindows.put(Calendar.SUNDAY, new BatchWindowConfiguration(sundayHistoryCleanupBatchWindowStartTime, sundayHistoryCleanupBatchWindowEndTime));
 }
}
origin: org.camunda.bpm/camunda-engine

@Test
public void testConfigurationFailureWrongDayOfTheWeekStartTime() throws ParseException {
 thrown.expect(ProcessEngineException.class);
 thrown.expectMessage("startTime");
 processEngineConfiguration.getHistoryCleanupBatchWindows().put(Calendar.MONDAY, new BatchWindowConfiguration("23", "01:00"));
}
org.camunda.bpm.engine.impl.cfgBatchWindowConfiguration

Most used methods

  • <init>
  • getEndTimeAsDate
  • getStartTimeAsDate
  • initEndTimeAsDate
  • initStartTimeAsDate

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JCheckBox (javax.swing)
  • JOptionPane (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now