I need to map a groovy code into dataweave. The existing groovy code is similar to the pseudo example as-
if(condition) { payload.each { data -> { f