public void getData() { wSourceStep.setText( stepErrorMeta.getSourceStep() != null ? stepErrorMeta.getSourceStep().getName() : "" ); wTargetStep.setText( stepErrorMeta.getTargetStep() != null ? stepErrorMeta.getTargetStep().getName() : "" ); wEnabled.setSelection( stepErrorMeta.isEnabled() ); wNrErrors.setText( Const.NVL( stepErrorMeta.getNrErrorsValuename(), "" ) ); wErrDesc.setText( Const.NVL( stepErrorMeta.getErrorDescriptionsValuename(), "" ) ); wErrFields.setText( Const.NVL( stepErrorMeta.getErrorFieldsValuename(), "" ) ); wErrCodes.setText( Const.NVL( stepErrorMeta.getErrorCodesValuename(), "" ) ); wMaxErrors.setText( stepErrorMeta.getMaxErrors() != null ? stepErrorMeta.getMaxErrors() : "" ); wMaxPct.setText( stepErrorMeta.getMaxPercentErrors() != null ? stepErrorMeta.getMaxPercentErrors() : "" ); wMinPctRows.setText( stepErrorMeta.getMinPercentRows() != null ? stepErrorMeta.getMinPercentRows() : "" ); wSourceStep.setFocus(); }
( !Utils.isEmpty( stepErrorMeta.getMinPercentRows() ) ? Long.valueOf( trans .environmentSubstitute( stepErrorMeta.getMinPercentRows() ) ) : -1L ); } catch ( NumberFormatException nfe ) { log.logError( BaseMessages.getString( PKG, "BaseStep.Log.NumberFormatException", BaseMessages.getString( PKG, "BaseStep.Property.MinRowsForErrorsPercentCalc.Name" ), this.stepname, ( stepErrorMeta .getMinPercentRows() != null ? stepErrorMeta.getMinPercentRows() : "" ) ) ); envSubFailed = true;
public void ok() { getInfo(); originalStepErrorMeta.setTargetStep( stepErrorMeta.getTargetStep() ); originalStepErrorMeta.setEnabled( stepErrorMeta.isEnabled() ); originalStepErrorMeta.setNrErrorsValuename( stepErrorMeta.getNrErrorsValuename() ); originalStepErrorMeta.setErrorDescriptionsValuename( stepErrorMeta.getErrorDescriptionsValuename() ); originalStepErrorMeta.setErrorFieldsValuename( stepErrorMeta.getErrorFieldsValuename() ); originalStepErrorMeta.setErrorCodesValuename( stepErrorMeta.getErrorCodesValuename() ); originalStepErrorMeta.setMaxErrors( stepErrorMeta.getMaxErrors() ); originalStepErrorMeta.setMaxPercentErrors( stepErrorMeta.getMaxPercentErrors() ); originalStepErrorMeta.setMinPercentRows( stepErrorMeta.getMinPercentRows() ); originalStepErrorMeta.setChanged(); ok = true; dispose(); }
public void saveStepErrorMeta( StepErrorMeta meta, ObjectId id_transformation, ObjectId id_step ) throws KettleException { repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_source_step", meta .getSourceStep() != null ? meta.getSourceStep().getName() : "" ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_target_step", meta .getTargetStep() != null ? meta.getTargetStep().getName() : "" ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_is_enabled", meta.isEnabled() ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_nr_valuename", meta .getNrErrorsValuename() ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_descriptions_valuename", meta .getErrorDescriptionsValuename() ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_fields_valuename", meta .getErrorFieldsValuename() ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_codes_valuename", meta .getErrorCodesValuename() ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_max_errors", meta .getMaxErrors() ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_max_pct_errors", meta .getMaxPercentErrors() ); repository.saveStepAttribute( id_transformation, id_step, "step_error_handling_min_pct_rows", meta .getMinPercentRows() ); }
stepNode.setProperty( PROP_STEP_ERROR_HANDLING_MAX_ERRORS, stepErrorMeta.getMaxErrors() ); stepNode.setProperty( PROP_STEP_ERROR_HANDLING_MAX_PCT_ERRORS, stepErrorMeta.getMaxPercentErrors() ); stepNode.setProperty( PROP_STEP_ERROR_HANDLING_MIN_PCT_ROWS, stepErrorMeta.getMinPercentRows() );