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

Support submitting job definition xml to start a job

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 1.3.0.Beta7
    • jberet-rest-api
    • None

    Description

      Currently users can start a job by passing the job id and job parameters. It's also desirable to be able to pass the job definition xml itself to start a job, either by uploading a job xml file, or by passing the job xml content. In this case, the job xml may not be saved by the batch container, since it's not part of the deployment.

      There are certain limitations to this way of starting a job execution. For instance, all referenced batch artifact classes must already be part of the deployed app.

      Consider uploading job xml files (preferrably multiple job xml files because there are job definition inheritance with parent and child job xml files), for example,

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      curl -F "jobXmlFiles[]=@job1.xml" -F "jobXmlFiles[]=@job2.xml"
      

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              cfang@redhat.com Cheng Fang
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: