public Object executeTask(Object object) throws Exception {
    Map incomingRequest = (Map) object;
    Object result = null;

    try {
      SendQueue sendQueue = (SendQueue) incomingRequest.get("sendQueue");
      if (sendQueue == null) {
        sendQueue = new SendQueue();
      }

      if (incomingRequest.containsKey("SendQueue_queueid")) {
        String queueidString = (String) incomingRequest.get("SendQueue_queueid");
        if (Utility.isEmpty(queueidString)) {
          queueidString = "0";
        }
        BigDecimal queueid = new BigDecimal(queueidString);
        sendQueue.setQueueid(queueid);
      }
      if (incomingRequest.containsKey("SendQueue_doctype")) {
        String doctype = (String) incomingRequest.get("SendQueue_doctype");
        sendQueue.setDoctype(doctype);
      }
      if (incomingRequest.containsKey("SendQueue_docic")) {
        String docicString = (String) incomingRequest.get("SendQueue_docic");
        if (Utility.isEmpty(docicString)) {
          docicString = "0";
        }
        BigDecimal docic = new BigDecimal(docicString);
        sendQueue.setDocic(docic);
      }
      if (incomingRequest.containsKey("SendQueue_subject")) {
        String subject = (String) incomingRequest.get("SendQueue_subject");
        sendQueue.setSubject(subject);
      }
      if (incomingRequest.containsKey("SendQueue_messagetext")) {
        String messagetext = (String) incomingRequest.get("SendQueue_messagetext");
        sendQueue.setMessage(messagetext);
      }
      if (incomingRequest.containsKey("SendQueue_messagetext2")) {
        String messagetext2 = (String) incomingRequest.get("SendQueue_messagetext2");
        sendQueue.setMessagetext2(messagetext2);
      }
      if (incomingRequest.containsKey("SendQueue_owner")) {
        String owner = (String) incomingRequest.get("SendQueue_owner");
        sendQueue.setOwner(owner);
      }
      if (incomingRequest.containsKey("SendQueue_sendfromtype")) {
        String sendfromtype = (String) incomingRequest.get("SendQueue_sendfromtype");
        sendQueue.setSendfromtype(sendfromtype);
      }
      if (incomingRequest.containsKey("SendQueue_sendfrom")) {
        String sendfrom = (String) incomingRequest.get("SendQueue_sendfrom");
        sendQueue.setSendfrom(sendfrom);
      }
      if (incomingRequest.containsKey("SendQueue_sendtotype")) {
        String sendtotype = (String) incomingRequest.get("SendQueue_sendtotype");
        sendQueue.setSendtotype(sendtotype);
      }
      if (incomingRequest.containsKey("SendQueue_sendto")) {
        String sendto = (String) incomingRequest.get("SendQueue_sendto");
        sendQueue.setSendto(sendto);
      }
      if (incomingRequest.containsKey("SendQueue_status")) {
        String status = (String) incomingRequest.get("SendQueue_status");
        sendQueue.setStatus(status);
      }
      if (incomingRequest.containsKey("SendQueue_dateadded")) {
        String dateadded = (String) incomingRequest.get("SendQueue_dateadded");
        sendQueue.setDateadded(dateadded);
      }
      if (incomingRequest.containsKey("SendQueue_timeadded")) {
        String timeadded = (String) incomingRequest.get("SendQueue_timeadded");
        sendQueue.setTimeadded(timeadded);
      }
      if (incomingRequest.containsKey("SendQueue_action")) {
        String action = (String) incomingRequest.get("SendQueue_action");
        sendQueue.setAction(action);
      }
      if (incomingRequest.containsKey("SendQueue_datesent")) {
        String datesent = (String) incomingRequest.get("SendQueue_datesent");
        sendQueue.setDatesent(datesent);
      }
      if (incomingRequest.containsKey("SendQueue_timesent")) {
        String timesent = (String) incomingRequest.get("SendQueue_timesent");
        sendQueue.setTimesent(timesent);
      }
      if (incomingRequest.containsKey("SendQueue_attachment")) {
        String attachment = (String) incomingRequest.get("SendQueue_attachment");
        sendQueue.setAttachment(attachment);
      }
      if (incomingRequest.containsKey("SendQueue_vendorId")) {
        String vendorId = (String) incomingRequest.get("SendQueue_vendorId");
        sendQueue.setVendorId(vendorId);
      }
      if (incomingRequest.containsKey("SendQueue_attempts")) {
        String attempts = (String) incomingRequest.get("SendQueue_attempts");
        if (Utility.isEmpty(attempts)) {
          attempts = "0";
        }
        sendQueue.setAttempts(new BigDecimal(attempts));
      }
      if (incomingRequest.containsKey("SendQueue_errorText")) {
        String errorText = (String) incomingRequest.get("SendQueue_errorText");
        sendQueue.setErrorText(errorText);
      }
      if (incomingRequest.containsKey("SendQueue_args")) {
        String args = (String) incomingRequest.get("SendQueue_args");
        sendQueue.setArgs(args);
      }

      result = sendQueue;
      this.status = Status.SUCCEEDED;
    } catch (Exception e) {
      this.status = Status.FAILED;

      e.printStackTrace();
      throw e;
    }
    return result;
  }
  public Object executeTask(Object object) throws Exception {
    Map incomingRequest = (Map) object;
    Object result = null;

    try {
      InvStage invStage = (InvStage) incomingRequest.get("invStage");
      if (invStage == null) {
        invStage = new InvStage();
      }

      if (incomingRequest.containsKey("InvStage_stageId")) {
        String stageId = (String) incomingRequest.get("InvStage_stageId");
        invStage.setStageId(stageId);
      }
      if (incomingRequest.containsKey("InvStage_description")) {
        String description = (String) incomingRequest.get("InvStage_description");
        invStage.setDescription(description);
      }
      if (incomingRequest.containsKey("InvStage_respons")) {
        String respons = (String) incomingRequest.get("InvStage_respons");
        invStage.setRespons(respons);
      }
      if (incomingRequest.containsKey("InvStage_notes")) {
        String notes = (String) incomingRequest.get("InvStage_notes");
        invStage.setNotes(notes);
      }
      if (incomingRequest.containsKey("InvStage_workCenterId")) {
        String workCenterId = (String) incomingRequest.get("InvStage_workCenterId");
        invStage.setWorkCenterId(workCenterId);
      }
      if (incomingRequest.containsKey("InvStage_utilization")) {
        String utilizationString = (String) incomingRequest.get("InvStage_utilization");
        if (Utility.isEmpty(utilizationString)) {
          utilizationString = "0";
        }
        BigDecimal utilization = new BigDecimal(utilizationString);
        invStage.setUtilization(utilization);
      }
      if (incomingRequest.containsKey("InvStage_qtyDays")) {
        String qtyDaysString = (String) incomingRequest.get("InvStage_qtyDays");
        if (Utility.isEmpty(qtyDaysString)) {
          qtyDaysString = "0";
        }
        BigDecimal qtyDays = new BigDecimal(qtyDaysString);
        invStage.setQtyDays(qtyDays);
      }
      if (incomingRequest.containsKey("InvStage_setupHours")) {
        String setupHoursString = (String) incomingRequest.get("InvStage_setupHours");
        if (Utility.isEmpty(setupHoursString)) {
          setupHoursString = "0";
        }
        BigDecimal setupHours = new BigDecimal(setupHoursString);
        invStage.setSetupHours(setupHours);
      }
      if (incomingRequest.containsKey("InvStage_partsHour")) {
        String partsHourString = (String) incomingRequest.get("InvStage_partsHour");
        if (Utility.isEmpty(partsHourString)) {
          partsHourString = "0";
        }
        BigDecimal partsHour = new BigDecimal(partsHourString);
        invStage.setPartsHour(partsHour);
      }
      if (incomingRequest.containsKey("InvStage_timePart")) {
        String timePartString = (String) incomingRequest.get("InvStage_timePart");
        if (Utility.isEmpty(timePartString)) {
          timePartString = "0";
        }
        BigDecimal timePart = new BigDecimal(timePartString);
        invStage.setTimePart(timePart);
      }
      if (incomingRequest.containsKey("InvStage_vendorName")) {
        String vendorName = (String) incomingRequest.get("InvStage_vendorName");
        invStage.setVendorName(vendorName);
      }
      if (incomingRequest.containsKey("InvStage_leadTime")) {
        String leadTimeString = (String) incomingRequest.get("InvStage_leadTime");
        if (Utility.isEmpty(leadTimeString)) {
          leadTimeString = "0";
        }
        BigDecimal leadTime = new BigDecimal(leadTimeString);
        invStage.setLeadTime(leadTime);
      }
      if (incomingRequest.containsKey("InvStage_outside")) {
        String outside = (String) incomingRequest.get("InvStage_outside");
        invStage.setOutside(outside);
      }
      if (incomingRequest.containsKey("InvStage_descriptor")) {
        String descriptor = (String) incomingRequest.get("InvStage_descriptor");
        invStage.setDescriptor(descriptor);
      }
      if (incomingRequest.containsKey("InvStage_machineId")) {
        String machineId = (String) incomingRequest.get("InvStage_machineId");
        invStage.setMachineId(machineId);
      }
      if (incomingRequest.containsKey("InvStage_backflush")) {
        String backflush = (String) incomingRequest.get("InvStage_backflush");
        invStage.setBackflush(backflush);
      }

      if (incomingRequest.containsKey("InvStage_persons")) {
        String personsString = (String) incomingRequest.get("InvStage_persons");
        if (Utility.isEmpty(personsString)) {
          personsString = "0";
        }
        BigDecimal persons = new BigDecimal(personsString);
        invStage.setPersons(persons);
      }
      if (incomingRequest.containsKey("InvStage_ccost")) {
        String ccostString = (String) incomingRequest.get("InvStage_ccost");
        if (Utility.isEmpty(ccostString)) {
          ccostString = "0";
        }
        BigDecimal ccost = new BigDecimal(ccostString);
        invStage.setCcost(ccost);
      }
      if (incomingRequest.containsKey("InvStage_unitOfMeasure")) {
        String unitOfMeasure = (String) incomingRequest.get("InvStage_unitOfMeasure");
        invStage.setUnitOfMeasure(unitOfMeasure);
      }

      if (incomingRequest.containsKey("InvStage_dateEntered")) {
        String dateEnteredString = (String) incomingRequest.get("InvStage_dateEntered");
        Date dateEntered = Dates.getDate(dateEnteredString);
        invStage.setDateEntered(dateEntered);
      }
      if (incomingRequest.containsKey("InvStage_dateExpires")) {
        String dateExpiresString = (String) incomingRequest.get("InvStage_dateExpires");
        Date dateExpires = Dates.getDate(dateExpiresString);
        invStage.setDateExpires(dateExpires);
      }
      if (incomingRequest.containsKey("InvStage_owner")) {
        String owner = (String) incomingRequest.get("InvStage_owner");
        invStage.setOwner(owner);
      }
      if (incomingRequest.containsKey("InvStage_status")) {
        String status = (String) incomingRequest.get("InvStage_status");
        invStage.setStatus(status);
      }

      result = invStage;
      this.status = Status.SUCCEEDED;
    } catch (Exception e) {
      this.status = Status.FAILED;
      throw e;
    }
    return result;
  }
  public Object executeTask(Object object) throws Exception {
    Map incomingRequest = (Map) object;
    Object result = null;

    try {
      BomMethod bomMethod = (BomMethod) incomingRequest.get("bomMethod");
      if (bomMethod == null) {
        bomMethod = new BomMethod();
      }

      if (incomingRequest.containsKey("BomMethod_icMethod")) {
        String icMethodString = (String) incomingRequest.get("BomMethod_icMethod");
        if (Utility.isEmpty(icMethodString)) {
          icMethodString = "0";
        }
        BigDecimal icMethod = new BigDecimal(icMethodString);
        bomMethod.setIcMethod(icMethod);
      }
      if (incomingRequest.containsKey("BomMethod_parentItem")) {
        String parentItem = (String) incomingRequest.get("BomMethod_parentItem");
        bomMethod.setParentItem(parentItem);
      }
      if (incomingRequest.containsKey("BomMethod_componentItem")) {
        String componentItem = (String) incomingRequest.get("BomMethod_componentItem");
        bomMethod.setComponentItem(componentItem);
      }
      if (incomingRequest.containsKey("BomMethod_methodId")) {
        String methodId = (String) incomingRequest.get("BomMethod_methodId");
        bomMethod.setMethodId(methodId);
      }
      if (incomingRequest.containsKey("BomMethod_batchSize")) {
        String batchSizeString = (String) incomingRequest.get("BomMethod_batchSize");
        if (Utility.isEmpty(batchSizeString)) {
          batchSizeString = "0";
        }
        BigDecimal batchSize = new BigDecimal(batchSizeString);
        bomMethod.setBatchSize(batchSize);
      }
      if (incomingRequest.containsKey("BomMethod_unitOfMeasure")) {
        String unitOfMeasure = (String) incomingRequest.get("BomMethod_unitOfMeasure");
        bomMethod.setUnitOfMeasure(unitOfMeasure);
      }
      if (incomingRequest.containsKey("BomMethod_description")) {
        String description = (String) incomingRequest.get("BomMethod_description");
        bomMethod.setDescription(description);
      }
      if (incomingRequest.containsKey("BomMethod_notes")) {
        String notes = (String) incomingRequest.get("BomMethod_notes");
        bomMethod.setNotes(notes);
      }
      if (incomingRequest.containsKey("BomMethod_dateEntered")) {
        String dateEnteredString = (String) incomingRequest.get("BomMethod_dateEntered");
        Date dateEntered = Dates.getDate(dateEnteredString);
        bomMethod.setDateEntered(dateEntered);
      }
      if (incomingRequest.containsKey("BomMethod_owner")) {
        String owner = (String) incomingRequest.get("BomMethod_owner");
        bomMethod.setOwner(owner);
      }

      result = bomMethod;
      this.status = Status.SUCCEEDED;
    } catch (Exception e) {
      this.status = Status.FAILED;
      throw e;
    }
    return result;
  }