Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-358

Better handling of unrecognized JSL substitution operators

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 1.3.0.Beta6
    • jberet-core
    • None

    Description

      Need to think about how to handle unrecognized JSL substitution operators.

      The batch spec (JSR 352) defines 4 JSL substitution operators:

      1. jobParameters - specifies to use a named parameter from the job parameters.
      2. jobProperties - specifies to use a named property from among the job's properties.
      3. systemProperties - specifies to use a named property from the system properties.
      4. partitionPlan - specifies to use a named property from the partition plan of a partitioned step.

      How to handle unrecognized substitution operators, such as

      #{myData['foo']}
      

      JBeret currently issues a warning, and returns null (which will resolve to an empty xml string during job xml loading process). Is it better to just return the property expression verbatim?

      Attachments

        Activity

          People

            weli@redhat.com Weinan Li
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: