final decision workflow logic