Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
nivedhitha
Creator III
Creator III

Dynamic schema with some business rules - suggestions please

Hi Everyone,

 

0683p000009M7be.png

 

The above picture shows 4 source - target mappings with similar transformations and similar schema in both source and target tables. I wanna be able to do this using a single job and have an external control table to say which table maps to which target plus any additional column that I may need. So that way, even if a 5th source come in I can add it to the control table and this job could run the new mapping too without any changes in the job. Does anyone have any suggestion on where I should start? I'm so clueless right now.

Labels (2)
5 Replies
fdenis
Master
Master

you are rewriting a rule engine….
you can do it using a conf file who know all types of rules like regexp, list of coice, ….
then apply you rules step by step

you are going to be between ETL and Java code but it's working fine.
nivedhitha
Creator III
Creator III
Author

@fdenis ,

 

Thanks for your reply.

Can you please explain it a bit more detailed? I find it hard to understand what you mean.

 

 

fdenis
Master
Master

began by list type of rule.
then hard code one rule.
add context to your job tu make it full dynamic.
add a new job who read a file (conf file) ant then run previous job with the corresponding parameters.
it's done.
nivedhitha
Creator III
Creator III
Author

Hi @fdenis ,

 

Thanks for that. I have more questions though

1. Where do I define my rules? 

2. what should my config file have?

fdenis
Master
Master

define your rules into config file it may be an xml file like:
<Table name="tableName>
<column columnName="col1" type="matchRegexp" regexp="[0-9]*"\>
<column columnName="col1" type="....

<\Table>