5 Replies Latest reply on Apr 18, 2017 4:13 PM by Richard Moore

    JSL Property Resolution

    Richard Moore Master

      I have a property being injected that is ending up as null when a value has been given. I have stared at it too long to figure it out.

       

        <properties>

                 <property name="deliveryFilename" value="#{systemProperties['APP_DATA_PERSISTENT_FCLTY']}/RPE_Daily_ExciseTax_20170418_diff.txt"/>

                 <property name="todayFilename" value="#{systemProperties['APP_DATA_PERSISTENT_FCLTY']}/RPE_Daily_ExciseTax_20170418_090417609_858891.txt"/>

                 <property name="yesterdayFilename" value="#{systemProperties['APP_DATA_PERSISTENT_FCLTY']}/RPE_Daily_ExciseTax_20170418_090417609_858890.txt" />

        </properties>

       

        <step id="diffPortion">

       

        <batchlet ref="fileDiff">

        <properties>

               <property name="inputFileMap" value="com.awginc.rpe.excise.tax.ExciseTax_Daily_Map"/>

               <property name="priorFile" value="#{jobProperties['yesterdayFilename']}"/>

               <property name="currentFile" value="#{jobProperties['todayFilename']}"/>

               <property name="resultsFile" value="#{jobProperties['deliveryFilename']}"/>

               <property name="resultsFileMap" value="com.awginc.rpe.excise.tax.ExciseTax_Daily_DiffOutputMap"/>

               <property name="resultsFileAppend" value="false"/>

               <property name="actions" value="ADD, UPDATE, DELETE"/>

        </properties>

        </batchlet>

       

       

      I displayed the resolved jsl and get the following for the yesterdayFilename and priorFile. Notice that todayFilename should be the 858891.txt file but it is the 858890.txt file at this point and the yesterdayFilename is resolved to the 858891.txt file instead of the 858890.txt file. By the time it reaches the step priorFile is empty -

       

         <properties>

           <property name="deliveryFilename" value="C:\JavaTeamTools\workspaces\javabatch-sys\framework\app/data/persistent/XX/RPE_Daily_ExciseTax_20170418_diff.txt"/>

          <property name="yesterdayFilename" value="C:\JavaTeamTools\workspaces\javabatch-sys\framework\app/data/persistent/XX/RPE_Daily_ExciseTax_20170418_090417609_858891.txt"/>

           <property name="todayFilename" value="C:\JavaTeamTools\workspaces\javabatch-sys\framework\app/data/persistent/XX/RPE_Daily_ExciseTax_20170418_090417609_858890.txt"/>

         </properties>

         <step id="diffPortion">

           <batchlet ref="fileDiff">

             <properties>

               <property name="resultsFile" value="C:\JavaTeamTools\workspaces\javabatch-sys\framework\app/data/persistent/XX/RPE_Daily_ExciseTax_20170418_diff.txt"/>

               <property name="inputFileMap" value="com.awginc.rpe.excise.tax.ExciseTax_Daily_Map"/>

               <property name="currentFile" value="C:\JavaTeamTools\workspaces\javabatch-sys\framework\app/data/persistent/XX/RPE_Daily_ExciseTax_20170418_090417609_858890.txt"/>

               <property name="resultsFileMap" value="com.awginc.rpe.excise.tax.ExciseTax_Daily_DiffOutputMap"/>

               <property name="priorFile" value=""/>

               <property name="actions" value="ADD, UPDATE, DELETE"/>

               <property name="resultsFileAppend" value="false"/>

             </properties>

           </batchlet>

           <fail exit-status="FAILED" on="*"/>

         </step>