Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

EPBCS Datamanagement groovy rule - with Json loop

edited Aug 12, 2024 1:47AM in Planning 7 comments

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)) {

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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