package com.myapp.service;
import com.myapp.mdg.service.InteaccMDGGeneralBean;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
public class jobWorkflowUpdateOriginalDoc implements Job {
//private static final Logger log = LoggerFactory.getLogger(SampleJob.class);
@Autowired
private InteaccMainWorkflowServiceBean inteaccMainWorkflowServiceBean;
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
//log.info("Sample job is executed");
inteaccMainWorkflowServiceBean.workflowUpdateOriginalDocStatus();
}
}
Additional info:
I am trying this in a composite project. This class is located in the package where the main page. and log in is located in order to be able to run this on all add-on projects.
Initially, I added the Quartz addon to one of the custom addons, and now moved it to the main addon but still the same.