public PrioritizedQueueBasedWorkflowEngine(WorkflowInstanceRepository repo,
PrioritySorter prioritizer, WorkflowLifecycleManager lifecycle,
EngineRunner runner, WorkflowRepository modelRepo, long querierWaitSeconds) {
this.repo = repo;
this.prioritizer = prioritizer != null ? new HighestFIFOPrioritySorter(1,
50, 1) : prioritizer;
this.lifecycle = lifecycle;
this.modelRepo = modelRepo;
this.processorQueue = new WorkflowProcessorQueue(repo, lifecycle, modelRepo);
this.runner = runner;