Can Quartz Scheduler Run jobs serially?

后端 未结 2 917
执念已碎
执念已碎 2021-01-18 16:59

I\'m looking into using Quartz Scheduler, and I was wondering if it was possible to schedule jobs not by time, but when another job finishes. So, when Job A is done, it sta

2条回答
  •  别那么骄傲
    2021-01-18 17:24

    Check out JobChainingJobListener, built-in to Quartz (bold mine):

    Keeps a collection of mappings of which Job to trigger after the completion of a given job. If this listener is notified of a job completing that has a mapping, then it will then attempt to trigger the follow-up job. This achieves "job chaining", or a "poor man's workflow".

    That's right, you are looking for a process or workflow engine. Have a look at activiti or jbpm.

提交回复
热议问题