Guest User

Untitled

a guest
Apr 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. def getScoringResultActions(context) {
  2. identityValidationService = SpringUtils.getBean("identityValidationService")
  3. boolean realizoValidacion = identityValidationService.checkUserIdentity(context.userData.id) != "not_requested";
  4. def scoringResultActions = []
  5.  
  6. if(realizoValidacion){
  7. log.info("Enviando a ManualReview. El user: " + context.userData.id + "ya tuvo PAUSA_IV")
  8. // Enviamos a revisar
  9. def action = [:]
  10. action.siteId = context.userData.site_id
  11. action.points = 962L
  12. action.outputGroup = "CLASIFICADOS"
  13. action.affectedUsers = [context.userData.id]
  14. scoringResultActions.add(new SendToManualReview(action))
  15. // Fin enviamos a revisar
  16. }else {
  17. if ( context.userData?.site_id in Holders.config.MODERATIONS.clasi_expression.sites_on ){
  18. log.info("Aplicando PAUSA_IV al user: " + context.userData.id)
  19. // Aplicamos PAUSA_IV
  20. def action = [:]
  21. action.verifStatus = "PAUSA_IV"
  22. action.comments = "Pausado automaticamente por scoring CLASSI EXPRESSION"
  23. action.affectedUsers = [context.userData.id]
  24. scoringResultActions.add(new ApplyVerifStatus(action))
  25. }
  26. }
  27. return scoringResultActions
  28. }
Add Comment
Please, Sign In to add comment