I had this requirement where jBPM process was supposed to be triggered at specified time. I would like to share it here.
1)- 2 methods for testing it :
2)- Creating a job that needs to be executed at the specified time :
3)- Creating a scheduler and a Trigger that would trigger the method in step 2.
note 1: Here, the 3rd parameter in jobDetail is the class StartProcessJob implementing interface Job, that contains overridden method execute that is in step 2.
note 2: Last parameter in CronTrigger represents the date-time that is matched with system time for triggering it. (secs,mins,hours,date,month,year).
4)- Finally calling process deploy() and then calling method startupScheduler().
Hope this is helpful.