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

api call ./orders/resume should consider optional parameters

    XMLWordPrintable

Details

    Description

      Current Situation

      If a suspended order will be resumed with parameters then the parameters are not consider.
      The api ./orders/resume is not used in the right way. JOC Cockpit requests a json in the form

      wrong json
      {
        "orders":[
          {
            "orderId":"42",
            "jobChain":"/my/jobChain"
          }
        ],
        "jobschedulerId":"myScheduler",
        "params":[
          {
            "name":"foo",
            "value":"bar"
          }
        ]
      }
      

      The parameters has specified for each orders item.
      It should have the form

      correct json
      {
        "orders":[
          {
            "orderId":"42",
            "jobChain":"/my/jobChain",
            "params":[
              {
                "name":"foo",
                "value":"bar"
              }
            ]
          }
        ],
        "jobschedulerId":"myScheduler"
      }
      

      See also at JOC API - ./orders/resume

      Desired Behavior

      The parameters have to put inside for each orders item in the ./orders/resume request

      Attachments

        Issue Links

          Activity

            People

              ztsa0019 Sourabh Agrawal
              oh Oliver Haufe
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: