Where did you place this code?
Create a new UDF with the name that you want. lets'say checkcode
and place the code inside that.
if (!(var1.equals("00")))
throw new StreamTransformationException("mapping fail - Expected value is 00");
else
return var1;
![Capture.PNG]()