Detailed Description of Generate Fake RC

This step generates a birth number for a given birth date and gender (the properties birthDate and gender). The same functionality is provided by a more universal step RC Validator. The second example (see below) demonstrates the configuration of the step RC Validator to generate fake birth numbers. The step RC Validator uses a unified set of flags for steps working with birth numbers. These flags differ from the flags used in the step Generate Fake RC in the following way:


Top of page

Example: Example
<step id='alg' className='cz.adastra.cif.tasks.clean.GenerateFakeRCAlgorithm'>
        <properties>
                <birthDate>birth_date</birthDate>
                <gender>gender</gender>
                <rcOut>bn</rcOut>
                <birthNumberSince>1900-01-01</birthNumberSince>
                <suffix>1111</suffix>
                <maleDefinition>man</maleDefinition>
                <femaleDefinition>woman</femaleDefinition>
                <scorer explanationColumn='explanation'>
                        <scoringEntries>
                                <scoringEntry key='RC_DATE_MISSING' score='100' explain='true' />
                                <scoringEntry key='RC_GENDER_MISSING' score='100' explain='true' />
                                <scoringEntry key='RC_GENERATED' score='100' explain='true' />
                                <scoringEntry key='RC_NOT_GENERATED' score='500' explain='true' />
                        </scoringEntries>
                </scorer>
        </properties>
</step>
<!-- Example how to configure the RC Validator step as replacement for this deprecated step: -->
<step id='alg_in' className='cz.adastra.cif.tasks.io.text.read.TextFileReader'>
        <properties>
                <fileName>c:\tempdata\configs\processrc\in_testfake.csv</fileName>
                <encoding>windows-1250</encoding>
                <columns>
                        <column name="birth_date" type="day" >
                                <dataFormatParameters dayFormat="yy-MM-dd"/>
                        </column>
                        <column name="gender" type="string"/>
                </columns>
                <shadowColumns>
                        <column name="expl" type="string" />
                        <column name="in_bn" type="string" />
                        <clean_bn name="bn" type="string"/>
                </shadowColumns>
        </properties>
</step>
<connection className='cz.adastra.cif.model.elements.connections.StandardFlowConnection'>
        <source step='alg_in' endpoint='out'/>
        <target step='alg' endpoint='in'/>
</connection>
<step id='alg' className='cz.adastra.cif.tasks.clean.RCValidatorAlgorithm'>
        <properties>
                <rc>in_bn</rc>
                <rcOut>bn</rcOut>
                <birthDate>birth_date</birthDate>
                <gender>gender</gender>
                <birthNumberSince>1900-01-01</birthNumberSince>
                <maleDefinition>muz</maleDefinition>
                <femaleDefinition>zena</femaleDefinition>
                <suffix>1234</suffix>
                <scorer explanationColumn='expl'>
                        <scoringEntries>
                                <scoringEntry key="RC_MISSING" score="1000" explain="true" />
                                <scoringEntry key="RC_INVALID" score="1000" explain="true" />
                                <scoringEntry key="RC_DATE_INVALID" score="1000" explain="true" />
                                <scoringEntry key="RC_DATE_ARTIF" score="1000" explain="true" />
                                <scoringEntry key="RC_DATE_MISMATCH" score="1000" explain="true" />
                                <scoringEntry key="RC_TRLR_FIXED" score="1000" explain="true" />
                                <scoringEntry key="RC_TRLR_MISSING" score="1000" explain="true" />
                                <scoringEntry key="RC_TRLR_ARTIF" score="1000" explain="true" />
                                <scoringEntry key="RC_9DIGITS" score="1000" explain="true" />
                                <scoringEntry key="RC_GNDR_MISMATCH" score="1000" explain="true" />
                                <scoringEntry key="RC_GNDR_FROM_HINT" score="1000" explain="true" />
                                <scoringEntry key="RC_GNDR_HINT_MISSING" score="1000" explain="true" />
                                <scoringEntry key="RC_GNDR_HINT_INVALID" score="1000" explain="true" />
                                <scoringEntry key="RC_DATE_HINT_MISSING" score="1000" explain="true" />
                                <scoringEntry key="RC_GENERATED" score="1000" explain="true" />
                                <scoringEntry key="RC_NOT_GENERATED" score="1000" explain="true" />
                                <scoringEntry key="RC_DATE_BEFORE_BN_SINCE" score="1000" explain="true" />
                        </scoringEntries>
                </scorer>
        </properties>
</step>

iWay Software