AnsweredAssumed Answered

How to control processengine startup when using cdi

Question asked by arc on Feb 5, 2015
Latest reply on Feb 25, 2015 by k5
We are using activiti with cdi (to be able to get EJBs into our delegate classes).

But now we have a problem that cdi makes the activiti engine start before all EJBs are ready.
Then if there are server task jobs (in act_ru_job) that has a historic due date,  the server task delegate classes will be called before the EJBs is up and running. And since most of our delegate classes use EJBs we run into problems.

Is there any way to control the activiti engine startup when using cdi?
We would like to start activiti from our @Startup annotated EJB.

Outcomes