@Override public void decode( StepMetaInterface stepMetaInterface, mxCell cell, List<DatabaseMeta> databases, IMetaStore metaStore) throws Exception { CheckSumMeta checkSumMeta = (CheckSumMeta) stepMetaInterface; checkSumMeta.setCheckSumType(Integer.parseInt(cell.getAttribute("checkSumType"))); checkSumMeta.setResultFieldName(cell.getAttribute("resultfieldName")); checkSumMeta.setCompatibilityMode("true".equals(cell.getAttribute("compatibilityMode"))); String fields = cell.getAttribute("fields"); JSONArray jsonArray = JSONArray.fromObject(fields); String[] fieldName = new String[jsonArray.size()]; for (int i = 0; i < jsonArray.size(); i++) { JSONObject jsonObject = jsonArray.getJSONObject(i); fieldName[i] = jsonObject.optString("name"); } checkSumMeta.setFieldName(fieldName); }