function beforeTaskSave(colleagueId,nextSequenceId,userList){
	
	log.info("================ RNC EVENTO beforeTaskSave");
	
	var currentSequenceId = getValue("WKNumState");
	
	log.info("========= beforeTaskSave RNC - colleagueId="+colleagueId+",currentSequenceId="+currentSequenceId+",nextSequenceId="+nextSequenceId+",userList="+userList);
	
	if(userList.size() > 0){
		/* Recupera o colaborador selecionado */
		var selectedUser = userList.get(0);
		var c1 = DatasetFactory.createConstraint("colleaguePK.colleagueId", selectedUser, selectedUser, ConstraintType.MUST);
		var dsColaborador = DatasetFactory.getDataset("colleague", null, new Array(c1), null);
		
		if (nextSequenceId == 3) {
			log.info("========= beforeTaskSave RNC - alterando campos loginResponsavelArea para ="+selectedUser+" e nmResponsavelArea para "+dsColaborador.getValue(0, "colleagueName"));
			hAPI.setCardValue("loginResponsavelArea", selectedUser);
			hAPI.setCardValue("nmResponsavelArea", dsColaborador.getValue(0, "colleagueName"));
		} else if (nextSequenceId == 4) {
			log.info("========= beforeTaskSave RNC - alterando campos loginResponsavelDisposicao para ="+selectedUser+" e nmResponsavelDisposicao para "+dsColaborador.getValue(0, "colleagueName"));
			hAPI.setCardValue("loginResponsavelDisposicao", selectedUser);
			hAPI.setCardValue("nmResponsavelDisposicao", dsColaborador.getValue(0, "colleagueName"));
		} else if (nextSequenceId == 5) {
			log.info("========= beforeTaskSave RNC - alterando campos loginResponsavelEstoque para ="+selectedUser+" e nmResponsavelEstoque para "+dsColaborador.getValue(0, "colleagueName"));
			hAPI.setCardValue("loginResponsavelEstoque", selectedUser);
			hAPI.setCardValue("nmResponsavelEstoque", dsColaborador.getValue(0, "colleagueName"));
		}
	}

	
}