Bug 5748 - #{jobProperties} property resolution unavailable within JSL partition
#{jobProperties} property resolution unavailable within JSL partition
Status: RESOLVED FIXED
Product: jbatch
Classification: Unclassified
Component: RI
1
All All
: P5 major
: ---
Assigned To: ScottKurz
RI_only
Depends on:
Blocks:
  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:


Attachments

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