Árbol de páginas
Saltar al final de los metadatos
Ir al inicio de los metadatos

Expression

Definición de una expresión disponible en el sistema. 

La configuración es la siguiente:

  • id: identificador único de la expresión
  • millis:  sólo válido si no existe un cron configurado.  Ejecución en milisegundos.  En caso de 0 se ejecuta de forma continua
  • cron: cron asociado a la expresión
  • title:  título de la expresión
  • description:  descripción de la expresión
  • Sin etiquetas

2 Comentarios

  1. A CRON expression is a string composed of six fields (in some implementation seven) separated by a whites space representing a time schedule. The general form is the following (with the years being optional):

    <seconds> <minutes> <hours> <days of month> <months> <days of week> <years>
    

    The following values are allowed for these fields:

    FieldRequiredAllowed value *Allowed value (alternative 1) **Allowed value (alternative 2) ***Allowed special characters
    secondsyes0-590-590-59* , -
    minutesyes0-590-590-59* , -
    hoursyes0-230-230-23* , -
    days of month1-311-311-311-31* , - ? L W
    monthsyes1-120-111-12* , -
    days of weekyes0-61-71-7* , - ? L #
    yearsno1970-20991970-20991970-2099* , -

    * - As described on Wikipedia Cron

    ** - As described on Oracle Role Manager Integration Guide - A Cron Expressions

    *** - As described for the Quartz scheduler CronTrigger Tutorial

    The special characters have the following meaning:

    Special characterMeaningDescription
    *all valuesselects all values within a field
    ?no specific valuespecify one field and leave the other unspecified
    -rangespecify ranges
    ,commaspecify additional values
    /slashspeficy increments
    Llastlast day of the month or last day of the week
    Wweekdaythe weekday nearest to the given day
    #nthspecify the Nth day of the month

    Examples:

    CRONDescription
    * * * * * *Every second
    */5 * * * * ?Every 5 seconds
    0 */5 */2 * * ?Every 5 minutes, every 2 hours
    0 */2 */2 ? */2 */2Every 2 minutes, every 2 hours, every 2 days of the week, every 2 months
    0 15 10 * * ? *10:15 AM every day
    0 0/5 14 * * ?Every 5 minutes starting at 2 PM and ending at 2:55 PM, every day
    0 10,44 14 ? 3 WED2:10 PM and at 2:44 PM every Wednesday of March
    0 15 10 ? * MON-FRI10:15 AM every Monday, Tuesday, Wednesday, Thursday and Friday
    0 15 10 L * ?10:15 AM on the last day of every month
    0 0 12 1/5 * ?12 PM every 5 days every month, starting on the first day of the month
    0 11 11 11 11 ?Every November 11th at 11:11 AM
  2. Operador

    Definición

    +

    Suma entre x e y.  (ejemplo:  x+y)

    -

    Resta entre x e y (ejemplo:  x-y)

    *

    Multiplicación entre x e y (ejemplo:  x*y)

    /

    División entre x e y (ejemplo:  x/y)