Random Groovy error "A method called by the script failed on line..."
Content
I have a groovy script that uses rest api to call a business rule then is suppose to check the run status until the business rule completes. It appears to fail randomly in the section that checks the status of the business rule.
Error message: A method called by the script failed on line 34 (which refers to the line bolded red below).
Anything stand out? Or is there a different way I can approach checking the status of the running business rule?
def jobStatus, jobId, i=0def finalStatus,finalDetailsString urlContext = '/' + jobIdHttpResponse<String> jsonResponse = operation.application.getConnection("RuleConnection").post()
0