Start process right after deply

How to start a process at deploy time ?

I used to place a Start Time Event with PT0S as Duration. But this has some disadvantages (async restart etc.).

Are you deploying the process as part of a process application?

Yes, and I’m using a shared process engine.

You can annotate a method with @PostDeploy to be called after process application deployment and then start a process instance. Here’s how it is done in the invoice demo application:

Cheers,
Thorben

Thanks Thorben.

I’m using this solution with a lot of cron processes.

I’m asking myself if that is the best way to delete old job/running process versions and start the new.