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

PartitionPlan properties not available through Job Parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.1.0.Alpha2
    • None
    • None
    • Hide

      unzip the maven project.
      mvn compile
      mvn -P ri exec:java
      mvn -P jberet exec:java

      Show
      unzip the maven project. mvn compile mvn -P ri exec:java mvn -P jberet exec:java

      In the case of the RI when a step is partitioned the call

      BatchRuntime.getJobOperator().getJobExecution(execID).getJobParameters();

      returns the specific partition properties.
      Jberet returns the properties passed in the start method.
      This causes the example of phonebilling to fail with a NPE (BillReader)

      http://docs.oracle.com/javaee/7/tutorial/doc/batch-processing009.htm

      output for the maven project attached:
      #output with RI
      ----------------------------------
      Batch started: id 1
      getPartitionProperties
      open()
      open()
      Job params:

      {test=0}

      Job properties:

      {jobProperty=mytest0.txt}

      Step properties:

      {stepProperty=mytest0.txt}
      Job params: {test=1}
      Job properties: {jobProperty=mytest1.txt}
      Step properties: {stepProperty=mytest1.txt}

      #output with jberet
      -----------------------------------
      Batch started: id 1
      getPartitionProperties
      open()
      open()
      Job params: {parameter2=param2, parameter1=param1}
      Job properties: {jobProperty=mytest#{partitionPlan['test']}.txt}
      Step properties: {stepProperty=mytest0.txt}

      Job params:

      {parameter2=param2, parameter1=param1}

      Job properties: {jobProperty=mytest#

      {partitionPlan['test']}

      .txt}
      Step properties:

      {stepProperty=mytest1.txt}

              cfang@redhat.com Cheng Fang
              elguardian@gmail.com Enrique González Martínez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: