Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getScoringResultActions(context) {
- identityValidationService = SpringUtils.getBean("identityValidationService")
- boolean realizoValidacion = identityValidationService.checkUserIdentity(context.userData.id) != "not_requested";
- def scoringResultActions = []
- if(realizoValidacion){
- log.info("Enviando a ManualReview. El user: " + context.userData.id + "ya tuvo PAUSA_IV")
- // Enviamos a revisar
- def action = [:]
- action.siteId = context.userData.site_id
- action.points = 962L
- action.outputGroup = "CLASIFICADOS"
- action.affectedUsers = [context.userData.id]
- scoringResultActions.add(new SendToManualReview(action))
- // Fin enviamos a revisar
- }else {
- if ( context.userData?.site_id in Holders.config.MODERATIONS.clasi_expression.sites_on ){
- log.info("Aplicando PAUSA_IV al user: " + context.userData.id)
- // Aplicamos PAUSA_IV
- def action = [:]
- action.verifStatus = "PAUSA_IV"
- action.comments = "Pausado automaticamente por scoring CLASSI EXPRESSION"
- action.affectedUsers = [context.userData.id]
- scoringResultActions.add(new ApplyVerifStatus(action))
- }
- }
- return scoringResultActions
- }
Add Comment
Please, Sign In to add comment