Hi,
I have a Validator component which has a number of different rules all in one group AND'd together, each of which has a custom reject message.
I want every rule to be evaluated and to collect all the reject messages which have been generated before passing it on to another component.
I have turned lazy evaluation off in order for all the rules to be evaluated rather than just stopping after the first one which fails, but I can't seem to find a way to gather all of the reject messages. I want to gather all of them that get generated for 1 input record before passing it to another component. I understand at the moment that a record for each of the failures will get generated, but I don't think I'm able to collect these up somewhere?
Cheers,
Aaron
I have a Validator component which has a number of different rules all in one group AND'd together, each of which has a custom reject message.
I want every rule to be evaluated and to collect all the reject messages which have been generated before passing it on to another component.
I have turned lazy evaluation off in order for all the rules to be evaluated rather than just stopping after the first one which fails, but I can't seem to find a way to gather all of the reject messages. I want to gather all of them that get generated for 1 input record before passing it to another component. I understand at the moment that a record for each of the failures will get generated, but I don't think I'm able to collect these up somewhere?
Cheers,
Aaron
-
Hi aaron_lg
You need just to connect the second output port and set the 'Error output mapping' property of the Validator component. I attached a sample graph, so you can see it on example.
validator_collect_errmsgs.grf
Hope this helps.
Please sign in to leave a comment.
Comments 1