Rebecca,
If you working on IS6.x version there is a WmFlatFile package service (pub.flatFile:FormatService).So create a custom validation service using this FormatService as a SpecificationReference in the Input/Output tab.So using this record you have a flexibility to validation according to your requirement and finally specify this custom service in your FlatFileSchema (fixedlength)of the FlatFileStructure/Properties section locate that particular field and there is a formatService tab(browse the custom service here),so when you do convertToValues this validation will takes place.So this acts like a record/Field constraint.
But,If you are not using any flatfile schemas etc…,then create a custom service and do Branch on that particular validation Field and if you want to check for spaces then on the sequence label use the regular expression that will check if there is any spaces in the data (/ +/).
Since you know that this Field is populating with Correct fixed length,then just check the data if it comes with spaces.
Branch (Switch=validationField)
—>Sequence (label = / +/)—This expression will check if any spaces
------>Flow steps (Nofity some error message and validation fail)Exit the flow
—>Sequence (label=$default)
-------->Continue the process
HTH,
RMG.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods