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

Better handling of unrecognized JSL substitution operators

    Details

    • Type: Enhancement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0.Beta6
    • Fix Version/s: None
    • Component/s: jberet-core
    • Labels:
      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?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cfang Cheng Fang
                Reporter:
                cfang Cheng Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: