Exemplo n.º 1
0
 private static void determineAchievoIds() {
   for (DayAtWork day : days) {
     for (WorkActivity activity : day.getActivities()) {
       if (!activity.isBookingRequired()) continue;
       if (activity.getAchievoId() != null) continue;
       String hiszillaId = activity.getHiszillaId();
       if (hiszillaId != null) {
         activity.setAchievoId(determineAchievoIdByHiszillaId(hiszillaId, activity.getText()));
       } else {
         activity.setAchievoId(determineAchievoIdByText(activity.getText()));
       }
     }
   }
 }
Exemplo n.º 2
0
 private static String determineAchievoIdByText(String text) {
   if ("Product Backlog Refinement".equals(text)) return "22804";
   for (DayAtWork day : days) {
     for (WorkActivity activity : day.getActivities()) {
       if (activity.getAchievoId() == null) continue;
       if (Str.isBlank(activity.getText())) continue;
       if (text.equals(activity.getText())) return activity.getAchievoId();
     }
   }
   System.out.println("Achievo-ID fehlt. Text: " + text);
   return null;
 }