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

Random Groovy error "A method called by the script failed on line..."

edited Oct 14, 2019 5:57PM in Planning 2 comments

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=0
def finalStatus,finalDetails
String urlContext = '/' + jobId
 
 HttpResponse<String> jsonResponse = operation.application.getConnection("RuleConnection").post()
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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