Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1804

Job parameters should be returned by REST API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • 7.1.1.GA
    • 7.1.1.GA
    • jBPM Core, Kie-Server
    • None
    • Hide
      • Create a job using REST API:
      $ curl -X POST -H 'Content-type: application/xml' -H 'X-KIE-Content-Type: xstream' -u 'kieserver:kieserver1!' --data @command-payload.xml http://localhost:8080/kie-server/services/rest/server/jobs
      
      command-payload.xml
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <job-request-instance>
          <job-command>org.jbpm.executor.commands.LogCleanupCommand</job-command>
          <scheduled-date>2019-04-16T00:00:00-02:00</scheduled-date>
          <data>
                <entry>
                    <key>OlderThanPeriod</key>
                    <value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2d</value>
                </entry>
              </data>
      </job-request-instance>
      
      • Get the job - it is returned without the parameters:
      $ curl -u 'kieserver:kieserver1!' http://localhost:8080/kie-server/services/rest/server/jobs/1/
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      
      Response
      <request-info-instance>
          <request-instance-id>1</request-instance-id>
          <request-status>QUEUED</request-status>
          <request-message>Ready to execute</request-message>
          <request-retries>3</request-retries>
          <request-executions>0</request-executions>
          <request-command>org.jbpm.executor.commands.LogCleanupCommand</request-command>
          <request-scheduled-date>2019-04-16T04:00:00+02:00</request-scheduled-date>
      </request-info-instance>
      
      Show
      Create a job using REST API: $ curl -X POST -H 'Content-type: application/xml' -H 'X-KIE-Content-Type: xstream' -u 'kieserver:kieserver1!' --data @command-payload.xml http://localhost:8080/kie-server/services/rest/server/jobs command-payload.xml <?xml version= "1.0" encoding= "UTF-8" standalone= "yes" ?> <job-request-instance> <job-command> org.jbpm.executor.commands.LogCleanupCommand </job-command> <scheduled-date> 2019-04-16T00:00:00-02:00 </scheduled-date> <data> <entry> <key> OlderThanPeriod </key> <value xsi:type= "xs:string" xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" > 2d </value> </entry> </data> </job-request-instance> Get the job - it is returned without the parameters: $ curl -u 'kieserver:kieserver1!' http://localhost:8080/kie-server/services/rest/server/jobs/1/ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> Response <request-info-instance> <request-instance-id> 1 </request-instance-id> <request-status> QUEUED </request-status> <request-message> Ready to execute </request-message> <request-retries> 3 </request-retries> <request-executions> 0 </request-executions> <request-command> org.jbpm.executor.commands.LogCleanupCommand </request-command> <request-scheduled-date> 2019-04-16T04:00:00+02:00 </request-scheduled-date> </request-info-instance>

    Description

      The Job REST API is missing a method to GET the job details, including execution parameters / job data entries.

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            rhn-support-mputz Martin Weiler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: