Answers for "Replace attribute values for all attributes" https://knowledge.亚搏在线safe.com/questions/81728/replace-attribute-values-for-all-attributes.html The latest answers for the question "Replace attribute values for all attributes" Answer by takashi https://knowledge.safe.com/answers/81730/view.html

I would firstly use the NullAttributeMapper to replace every missing, empty, or null attribute with 0, then use the ExpressionEvaluator to assign 1 to every non-0 attribute.

Sat, 03 Nov 2018 11:34:42 GMT takashi
Answer by danilo_fme https://knowledge.safe.com/answers/81729/view.html

Hi @venu


I created your case here with only two transformers.

StringReplacer - to find any number more than 0

NullAttributeMapper = to find <missing> values and replace to 0



Results:



Attached the Workspace template - FMWT.


Workspace_Replace_Values.fmwt


Thanks,

Danilo

Sat, 03 Nov 2018 11:27:52 GMT danilo_fme