cancel
Showing results for 
Search instead for 
Did you mean: 

Specify delayTime at startup ?

stroobat
Champ in-the-making
Champ in-the-making
Is there an option somewhere to specify a delay time before the jobExecutor starts the polling process ?

Best regards,

Tom.
15 REPLIES 15

jbarrez
Star Contributor
Star Contributor
What would be the use of that?

Would an intermediate timer event in your process do the trick?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
one reason I can think of is that other required services are not 'deployed' yet. E.g. if you have external jars with ejb's or cdi or… and those are not started yet, the jobexecutor cannot execute async services (which we do not have yet). But this is true for the engine in general.

stroobat
Champ in-the-making
Champ in-the-making
I use the Activiti Spring integration and from the moment that the processEngineConfiguration bean is loaded (and the jobExector is active) the polling process begins.

I have an application server that hosts different web applications that communicatie through http. My Activiti workflow uses timeEvents. Suppose
that the activiti appliction is started, a timer has reached the duedate and want to access functionallity in another application that is not yet started …

I hope my explanation is clear ?

Tom.

jbarrez
Star Contributor
Star Contributor
Ok, I never would have thought in that direction 🙂

The only thing I can think of (besides hacking the engine), is to define an order in the booting of your webapps (i know that JBoss can do that)

stroobat
Champ in-the-making
Champ in-the-making
Frameworks like Camel do support it for FTP polling …
Smiley Very Happy

frederikherema1
Star Contributor
Star Contributor
Maybe as a workaround, you could disable the jobExecutor activating by default, and using some kind of mechanism (like a BarrierService or listener of some kind) to call the jobexecutor.start() when container is booted.

stroobat
Champ in-the-making
Champ in-the-making
I don't like to use permanent workarounds …
Does activiti has any plans to support this in the future ?

Should I create a Jira ticket for this ?

Tom.

jbarrez
Star Contributor
Star Contributor
You definitely can create a JIRA, but I'm unsure if it will end up prioritised in the coming releases.

stroobat
Champ in-the-making
Champ in-the-making
Ticket has been created:

http://jira.codehaus.org/browse/ACT-727