Event handler (afterCreate) not called when object is saved in timer.

I have a timer and an afterCreate event handler. The event handler logs in with a special user account, updates a value, and saves it. The timer fetches from an API and adds the objects to the table periodically.

If I add an entry using the REST console, the handler is called and that cell gets updated like it’s supposed to. I have put a breakpoint in IntelliJ IDEA and it gets hit when I do this too.

Without changing code or touching the debug instance, if I trigger the timer using the web console, the objects are added, but the event handler is not fired. The breakpoint is not hit and the values don’t update. None of the console logging appears either.

Is this by design, or am I missing something? It seems like if I add an object to my table, no matter how I do it, it should call the handler for that table.

Hi Evan,

This was fixed earlier today in our Java/Android SDK. The code runner (which includes the Java library) will be patch on Monday.

Regards,
Mark

I grabbed the latest .jar and put it in my file. I also tried re-downloading the latest code generation from the web panel. Has this fix been released yet? If so I’m not seeing the results.

Thanks,
Evan

Just downloaded the java code runner from the website, says it was released on the 4th. Replaced the bin and libs folders, copied over my runner properties. Still no luck, event handler fires when added through REST but not through java from timer.

Hi Evan,

These changes are not available yet for the code that runs in the “Production” mode, since the cloud-based CodeRunners have not been updated with the latest SDK. This will be done this week.

Regards,
Mark