Hi,
You are calling multiple time "listCallback" function to check duplicate on individual value in collection for "nome", "telefone". "email" and "fax" in function
- fornecedor_existente_nulo_nome
- fornecedor_existente_nulo_telefone
- fornecedor_existente_nulo_email
- fornecedor_existente_nulo_fax.
java script service call are asynchronous,though you have assume a sequential execution on the results you are getting in above functions modifying the single boolean which will be overwrite but by each method success handler function.
Please pass these info in single object to a Composite API i.e. CAPI and please write your business logic to check any duplicate value using freemarker script for individual field, if any filed exist return false or string message like "nome already exist".
Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support