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.
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.
Thanks,
Danilo