code: void updateTaskStatus(Tenant tenant, TaskRecord taskRecord, boolean bDeleteClaimRecord) {
          String taskID = taskRecord.getTaskID();
          DBTransaction dbTran = DBService.instance(tenant).startTransaction();
          Map<String, String> propMap = taskRecord.getProperties();
          for (String name : propMap.keySet()) {
              String value = propMap.get(name);
              if (Utils.isEmpty(value)) {
                  dbTran.deleteColumn(TaskManagerService.TASKS_STORE_NAME, taskID, name);
              } else {
                  dbTran.addColumn(TaskManagerService.TASKS_STORE_NAME, taskID, name, value);
              }
          }
          if (bDeleteClaimRecord) {
              dbTran.deleteRow(TaskManagerService.TASKS_STORE_NAME, "_claim/" + taskID);
          }
          DBService.instance(tenant).commit(dbTran);
      }
docs: Add or update a task status record and optionally delete the task's claim record at
  the same time.
  
  @param tenant                {@link Tenant} that owns the task's application.
  @param taskRecord            {@link TaskRecord} containing task properties to be
  written to the database. A null/empty property value
  causes the corresponding column to be deleted.
  @param bDeleteClaimRecord    True to delete the task's claim record in the same
  transaction.