This content has been marked as final.
Show 4 replies
-
1. Re: Extending timers or creating custom jobs
sebastian.s Oct 29, 2009 5:06 AM (in response to sravyts)Hello sravyts!
So basically you want to put a timer on a transition but you do not want to set the duedate in the process definition but during runtime, right? -
2. Re: Extending timers or creating custom jobs
sravyts Oct 29, 2009 5:14 AM (in response to sravyts)Yep, exactly!
-
3. Re: Extending timers or creating custom jobs
sebastian.s Oct 29, 2009 5:53 AM (in response to sravyts)AFAIK there is no API to create jobs. ManagementService just exposes a method to execute jobs and to search for jobs by creating a JobQuery. If this is really the case I would consider you to fill a JIRA issue and to propose the extension of the API.
-
4. Re: Extending timers or creating custom jobs
jbarrez Nov 2, 2009 2:00 PM (in response to sravyts)All jBPM object are in fact Hibernate objects. So you can simply programmatically create a Job with the correct date and save it through the hibernate session.
Best approach to this is to write a custom Command and invoke it through the CommandService (there are plenty such examples in the source code).