I have a problem where I need to have some exception handling for some data that I will put into a excel report. The DataItem "Personal Identity Code" can be invalid; It must always be 11 characters long and its format should be DDMMYYSNNNX, where DD = day, MM = month, YY = year, S = Either ‘A’ or ‘-‘, NNN = number, X = Letter or number Examples: 310199-111K, 011206A2222
I want to somehow check this / validate the format before it will be processed from the queue (so I can throw an Business Exception). Is there some clever way to set this up? I was thinking about maybe a regex in combination with something?
Edit:
This is how my process page look like with the solution: