Job analyzer


Goal:

The goal is to analyze all jobs to check that the development rules are applied.

Solution:

The solution is a talend job that reads the files *.item in the workspace.



Algorithm:

Read a file that contains the path to the workspace.
Read a file that contains the list of *.item files to analyze
For each file
    For each line
        Analyze each line
        Store information
    End For
    Print all errors
End For
Print a global report

File context.txt (example)

WORKDIR=C:/Users/xxxxx/TOS/TOS_DI-20170510_1410-V6.4.0/workspace_sio2_20180209/SIO2/process/Byxxx/

File talendJobs.txt (example)

Chargement\Partenaire\CHARGEMENT_NUM_CCF_0.1.item
Chargement\Partenaire\CHARGEMENT_SFR_CCF_0.1.item
Chargement\Partenaire\CHARGEMENT_SFR_LOCA_0.1.item
...

Result.txt (example)

Alimentation\Client_Final\ALIMENTATION_DEA_COMMANDE_ACCES_0.2.item;Context variable not used;Alimentation_Paquet

Alimentation\Client_Final\ALIMENTATION_DEA_COMMANDE_ACCES_0.2.item;GlobalMap variable not used;CURENT_DATE_FORMAT

Alimentation\Client_Final\ALIMENTATION_DEA_PTO_0.1.item;ERROR_MESSAGE;Component tDie_5 must not use the ERROR_MESSAGE of the component tOracleOutput_1

Alimentation\Client_Final\ALIMENTATION_DEA_PTO_0.1.item;No trigger OnComponentError;tOracleOutputErrorLog_2

Commentaires