EPBCS Datamanagement groovy rule - with Json loop
Summary:
Hi Expert,
I'm trying to call a groovy rule which will execute Data integration , changes source filter based on subvar for ent1 and ent2, First ent1 filter should run , jsonresponse wait and collect it and then ent2 filter should run. All should be in a single job
We dont want to go pipeline route for specific reasons. How to make it work
def awaitCompletion(HttpResponse<String> response, String connectionName) {
final int IN_PROGRESS = -1
while (response.status == IN_PROGRESS) {
sleep(5000)
response = operation.application.getConnection(connectionName)
.get('/aif/rest/V1/jobs/status')
.header("Content-Type", "application/json")
.asString();
}
if (!(200..299).contains(response.status)) {