asd

Java code posted by d
created at 17 Feb 13:19

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Recuperamos estado actual
List<SrorrBiFulfIntStateMov> stateMovs = fulfillmentInteraction.getSrorrBiFulfIntStateMovs();
SrorrBiFulfIntStateMov stateMov = null;
if ((stateMovs != null) && (!stateMovs.isEmpty())) {
  int cont = 0;
  for (int i=0;i<stateMovs.size();i++) {
  if (stateMovs.get(i).getBismTiEndValidity() == null) {
            cont++;
            stateMov = stateMovs.get(i);
          }
        }
        if (cont == 0) {
          throw ErrorManager.construirExcepcion(Errores.COD_ERROR_TECNICO_BI_SIN_ESTADO_VALIDO);
        } else if (cont > 1) {
          throw ErrorManager.construirExcepcion(Errores.COD_ERROR_TECNICO_BI_VARIOS_ESTADOS_VALIDOS);
        }
      } else {
        throw ErrorManager.construirExcepcion(Errores.COD_ERROR_TECNICO_BI_SIN_ESTADOS);
      }
750 Bytes in 2 ms with coderay