0
22
JBJesús Bañuelos
The code creates a map of string to object containing the following entries:
index="index" key_parametros_entrada="Map.ofEntries(entry('index', index))" key_flujo="Calendario" key_servicios="List.of(new Servicio('Obtener día de la semana', 'Calendario', 10))" key_mensaje="e.getMessage()" key_time_total="10"
and then creates a list of services and a map of string to object containing the following entries:
key_parametros_entrada="Map.ofEntries(entry('index', index))" key_flújo="Calendario" key_servicios="List.of(new Servicio('Obtener día de la semana', 'Calendario', 10))" key_menaje="e.
Shortcut: aiopsexception
import com.aiops.exception.AIOpsException;
/* Inicialización del objeto AIOPsException */
AIOpsException exception = new AIOpsException(e, getClass());
/* Agregar valores opcionales */
exception.addParametro("", valor); // valor: puede ser de cualquier tipo
exception.addServicio("", "", 100);
exception.addExtras(AIOpsException.KEY_EXTRA_FLUJO, "");
exception.addExtras(AIOpsException.KEY_EXTRA_CRITICIDAD, "");
exception.addExtras(AIOpsException.KEY_EXTRA_MENSAJE, "");
exception.addExtras(AIOpsException.KEY_EXTRA_TIEMPO_TOTAL, 0);
/* Imprimir el registro */
exception.printLog();