Hi,
I am ETL developer and pretty new to Pentaho with no java background. I am good in basic transformation, however this time got a need to dynamic validations of fields.
Below is my input file format, where each row is having a single customer data. The customer can have more than 1 account with each account having multiple fields across each month (month 1 – 12).Although the number of fields in each acct is fixed,however number of accounts are not fixed.For simplicity I have shown 2 accounts and 2 months per account. Account1 fields are having “01” in it and account2 fields “02”.
I need to do a set of same validations across each account and each month inside same account.
Ex: 1) For i=1 to NUM_ACCT
DATE_OPEN_(i) < DATE_CLOSE_(i)
2)For i=1 to NUM_ACCT and j=1 1o 12
CASH_BALANCE_(i)_mnth(j) + AMOUNT_DUE_(i)_mnth(j) > 999999
Can you suggest ,is there a way by which an array of field names can be formed or any better way to do this ?
I am ETL developer and pretty new to Pentaho with no java background. I am good in basic transformation, however this time got a need to dynamic validations of fields.
Below is my input file format, where each row is having a single customer data. The customer can have more than 1 account with each account having multiple fields across each month (month 1 – 12).Although the number of fields in each acct is fixed,however number of accounts are not fixed.For simplicity I have shown 2 accounts and 2 months per account. Account1 fields are having “01” in it and account2 fields “02”.
I need to do a set of same validations across each account and each month inside same account.
Ex: 1) For i=1 to NUM_ACCT
DATE_OPEN_(i) < DATE_CLOSE_(i)
2)For i=1 to NUM_ACCT and j=1 1o 12
CASH_BALANCE_(i)_mnth(j) + AMOUNT_DUE_(i)_mnth(j) > 999999
Can you suggest ,is there a way by which an array of field names can be formed or any better way to do this ?