/** * Defines a list of Return Properties (a.k.a After Properties). * These properties collect different metrics and information during component execution. * Values of these properties are returned after component finished his work. * Runtime Platform may use this method to retrieve a this list and show in UI * Here, it is defined 2 properties: <br> * 1) Error message * 2) Number of records processed * For Error message property no efforts are required from component developer to set its value. * Runtime Platform will set its value by itself in case of Exception in runtime. * As for Number of records property see Reader implementation in runtime part */ @Override public Property<?>[] getReturnProperties() { Property<Long> totalNBLong = PropertyFactory.newProperty(Long.class, RETURN_TOTAL_RECORD_COUNT); Property<?>[] returnProperties = new Property[] {totalNBLong, RETURN_ERROR_MESSAGE_PROP}; setupI18N(returnProperties); return returnProperties; }
@Override public Property[] getReturnProperties() { StringProperty return1 = newProperty("return1"); setupI18N(new Property<?>[] { return1 }); return new Property[] { return1, RETURN_ERROR_MESSAGE_PROP, RETURN_TOTAL_RECORD_COUNT_PROP, RETURN_SUCCESS_RECORD_COUNT_PROP, RETURN_REJECT_RECORD_COUNT_PROP }; }
@Override public void setupProperties() { super.setupProperties(); initLater = newProperty("initLater"); }
@Override public Property[] getReturnProperties() { StringProperty return1 = newProperty("return1"); return1.setI18nMessageFormatter(getI18nMessageFormatter()); return new Property[] { return1, RETURN_ERROR_MESSAGE_PROP, RETURN_TOTAL_RECORD_COUNT_PROP, RETURN_SUCCESS_RECORD_COUNT_PROP, RETURN_REJECT_RECORD_COUNT_PROP }; }