You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Pipeline GET Call error

edited Jun 26, 2024 2:06PM in Planning 4 comments

Summary:

Pipeline POST is successful but trying to get the status of pipeline jobs and says error occurred while processing this page. The error appears same for any 'items' in the pipeline


Content (please ensure you mask any confidential information):

HttpResponse<String> jsonResponse1 = operation.application.getConnection("CONNNAME").get('/aif/rest/V1/pipeline?pipelineName="PIPELINENAME").header("Content-Type","application/json").asString();

def jsonMap = (Map) new JsonSlurper().parseText(jsonResponse1.body)

def jobName = ((Map)((List)jsonMap.get("jobs"))[0]).get("jobName")

FYI: It works only till main response and for others it prints "null" even if Key value pairs are present.

def jn = jsonMap.get("response") works but it is not working for the items in this. Example: jobName is printed null when jsonMap.get("jobName")

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!