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

Groovy - how to print real-time log message in job console?

Summary:

Hi,

I have a Groovy rule with long-running processes, for example the process needs to be iterate through 100 times for different combinations. I need to watch which combination it's currently processing for some debugging purpose, and I have the below added at beginning and ending of each iteration. However, it seems the log message print can only be shown once the rule is all complete, meaning I cannot see any log message during the process. Is there any way that can print the message into job console in real-time throughout the process?

start ……..

Date date_start = new Date()
String datePart_start = date_start.format("dd/MM/yyyy")

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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