Hi the best way of dooing this is to use a tcl function ( or python )
with tcl you can loop over any number off attributes using a list off attribute names and then you can use ths string or regexp commands to validate its type - data, integer, float, boolean etc. - and if it dont match reset it to null, or whatewer you like. all within a few lines off code Peter >From: Hans van der Maarel <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: Re: [fme] Global attribute validation >Date: Mon, 04 Dec 2006 17:30:14 +0100 > >Scott, > > > I'm often repeating many steps over and over again in a workbench file > > and was just wondering if there was a better approach. To keep the > > explanation simple, all I want to do is "scrub" an attribute at a global > > level and validate it's type. For example, is there a way to validate > > all attributes of type DATE (on multiple feature classes) and if found > > invalid, set to NULL (or whatever). I can do this easy enough at the > > feature class level (SDE to SDE), but I want to do it globally. > > > > Programmatically speaking, it would be a very straightforward solution, > > but not sure if I can accomplish this type of structure in Workbench. > > If it is possible, I would love to know how as I could use it in many, > > many more situations. > >It sounds like a Custom Transformer may do the trick. It's basically a >group of transformers with specific settings that act as one (and it >shows up in the Workbench transformers list). Settings of the individual >transformers can be exposed to become settings of the Custom Transformer. > >Hope this helps. >-- >Hans van der Maarel >Red Geographics >www.redgeographics.com / [EMAIL PROTECTED] > _________________________________________________________________ Del dine store filer uden problemer med MSN Messenger: http://messenger.msn.dk For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com. Safe Software has also made slides available that outline enhancements planned for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 of the FME Worldwide Users Conference. To view these slides, visit www.safe.com/2006uc. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/fme/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
