I parsed the flat file and validated against the flatfile shema,
i used convertTo Values service, and got the result too.
My now problem is:
I have 3 records
0 - which appears once
2 - once
0- record contains fields named date,fromsystem
1- record can appear n times
2 - record contains recordcount(no of records in ‘1’)
I have to perform 3 business checks:
–>now i have to branch on date and see to that it is of some pattern(say yyyymmdd), if it is of not that pattern then error message must be sent to calling service
–> i have to branch on fromsystem and check whether it is arriving fron “aaa” system, if not then send an error message
—> i have to count the list of records in ‘1’ and check whether the count is equal to the value in recordcount of ‘2’.
i have the idea, to branch on the result record ‘0’ of ffvalues and to the respective fields on them, but i am not sure in specifying the properties.
how can we find the length (count) of list of records. Is it thru a loop? is there any alternative?
how can we check whether 2 values are equal?
i might have many questions, but please give me a clear solution, as i have unclear ideas and they seem not work properly