dimanche 7 février 2016

Efficiently Validating all Combinations of finite set of Fields

I have a use case where in i have to initiate workflows based on a combination of set of columns. For example : Passport No, SSN , Date of birth, Nationality, Company Name.

Rules can be defined based on the combination of any of the above fields. If i follow the traditional approach i will have to write a plenty of if statements for each of these combinations which will not be desirable and bug prone. Can someone suggest an efficient way to handle such a problem. I used java as a programming language.

Aucun commentaire:

Enregistrer un commentaire