i start the flow from my custom spring application and then set set java delegate on service task which works perfectly fine ,and then take a decision in flowable-task app whether to accept or reject the task. if user accepts the task i have a bean in my custom spring application which i want to get executed and i have set the delegate expression for that, but java delegate in the 2nd service task is never executed.
There are only two ways that starting a task in a custom spring boot app, completing a user task in the Task app, and then having a service task execute can possibly work:
You’ve set the service task to asynchronous and disabled the Async Executor on the task app by setting flowable.async-executor-activate=false in the task app’s properties file.
Because you have a custom Spring Boot app, my guess is that you are not using option 1.
Given the option of bring your service task code into the Task app or turning off the async executor in the Task and marking all service tasks as async, I think I’d probably bring my code into the task app. It can be done in a fairly portable way if you use Spring Boot auto configuration. In the long term, I would work to implement my own UI, because the UI apps do not see the same level of developer focus that the engines do.
for now i tried making all service tasks async and and set flowable.async-executor-activate=false but still no luck… my second service task’s delegate is never gets executed.
thank for you time…i have made some progress my custom spring application tries to execute the job but gets null pointer exception at SpringAsyncExecutor.executeAsyncJob() at line 81
Hi, i found something here. I could see Job entry created on ACT_RU_TIMER_JOB table and the Retries column’s count is decreasing one by one. Then the record removed from this table and created entry in ACT_RU_DEADLETTER_JOB table. But its not executing java Delegate class’s execute method. It execute only once when process start. Here is my delegate class
public class CreatePDFServiceDelegate implements JavaDelegate{
The retry is working only with h2 database, but the same code is not working with Oracle. All the tables are created successfully when I start the application. Is any specif table that I need to verify in Oracle to know why retry is not working. Please suggest me.