Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-230

Web Services ./orders/add and ./jobs/start provide the Order Id and the Task Id

    XMLWordPrintable

Details

    Description

      Current Situation

      The web services ./orders/add and ./jobs/start return just an "ok" if all jobs or orders started successfully or return a list of errors like this:

      with HTTP 200
      {
          "deliveryDate": "...",
          "surveyDate": "...",
          "ok": true
      }
      
      with HTTP 419
      {
          "deliveryDate": "...",
          "errors": [
              {
                  "surveyDate": "...",
                  "path": "/path/to/jobChain1", 
                  "code": "JOC-419",
                  "message": "/path/to/jobChain1 doesn't exist"
              }
          ]
      }
      

      Desired Behavior

      • The web service ./orders/add provides the Order Ids inside an array of orders, this array contains only successful order starts.
        with HTTP 200
        {
            "deliveryDate": "...",
            "ok": true,
            "orders" : [
                { 
                    "surveyDate": "...",
                    "jobChain": "/path/to/jobChain1", 
                    "orderId": "42" 
                },
                { 
                    "surveyDate": "...",
                    "jobChain": "/path/to/jobChain2", 
                    "orderId": "43" 
                }
            ]
        }
        
        with HTTP 419
        {
            "deliveryDate": "...",
            "errors": [
                {
                    "surveyDate": "...",
                    "path": "/path/to/jobChain1", 
                    "code": "JOC-419",
                    "message": "/path/to/jobChain1 doesn't exist"
                }
            ],
            "orders" : [
                { 
                    "surveyDate": "...",
                    "jobChain": "/path/to/jobChain2", 
                    "orderId": "43" 
                }
            ]
        }
        
      • The web service ./jobs/start provides the Task Ids inside an array of tasks, this array contains only successful job starts.
        with HTTP 200
        {
            "deliveryDate": "...",
            "ok": true,
            "tasks" : [
                 { 
                    "surveyDate": "...",
                    "job": "/path/to/job1", 
                    "taskId": "42" 
                 },
                 { 
                    "surveyDate": "...",
                    "job": "/path/to/job2", 
                    "taskId": "43" 
                 }
             ]
        }
        
        with HTTP 419
        {
            "deliveryDate": "...",
            "errors": [
                {
                    "surveyDate": "...",
                    "path": "/path/to/job1", 
                    "code": "JOC-419",
                    "message": "/path/to/job1 doesn't exist"
                }
            ]
            "tasks" : [
                { 
                    "surveyDate": "...",
                    "job": "/path/to/job2", 
                    "taskId": "43" 
                 }
            ]
        }
        

      Attachments

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Uwe Risse Uwe Risse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified