Bug 5748 - #{jobProperties} property resolution unavailable within JSL partition
#{jobProperties} property resolution unavailable within JSL partition
Product: jbatch
Classification: Unclassified
Component: RI
All All
: P5 major
: ---
Assigned To: ScottKurz
Depends on:
  Show dependency treegraph
Reported: 2014-01-28 17:49 UTC by m_edgar
Modified: 2015-09-01 20:45 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description m_edgar 2014-01-28 17:49:09 UTC
Following up on the recent discussion on the public mailing list.

In PartitionPropertyResolverImpl, null values are sent to each child element's resolver rather than the parent properties which contain the job properties.

------ Scott Kurz example below:

So this would maybe net out to something like this example collector
property 'xx' not getting set up correctly.

<step id="step1">
    <property name="stepProp" value="stepPropValue" />
  <batchlet ...
      <property name="partitionString" value="#{partitionPlan['part']}" />
    <plan partitions="5">
      <properties partition="0">
        <property name="part" value="string 0" />
    <collector ref="PartitionIDCollector">
        <property name="xx" value="#{jobProperties['stepProp']" />