Quartz Job - selection of class (flowUI 2.0)

Hi
I am trying to schedule a quartz job but do not see any item in the combo box to select from.

Here is my Job class:

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();

    }
}

image

Can someone point out where is the problem?

Hi!

Could you please provide all the class code?

Regards,
Dmitriy

My custom job is defined the same as yours and it works and appears in the list. Is your import referencing the correct Job?

import org.quartz.Job;

Here is the class file with import references:

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.

Yes, as you see in the full class file shared.

Looking forward for any support.

Hi @d.kremnev
Any updates or suggestions?

Hi, Mortoza!

I tried to reproduce your case, but Quartz jobs were displayed well.
Could you provide a test project with a minimal reproduction of the problem?

Hi Dmitrriy
I have attached a demo app where opened the following screen that looks good.

image

However, when I create, as you see below in the editor screen, the class name is not selectable.

image

Sample app.
quartzSample.zip (178.5 KB)

Hello,

The project you attached does not have a job. I added a simple job and it displays correctly.

ExampleJob:

package com.company.quartzsample.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ExampleJob implements Job {

    private static final Logger log = LoggerFactory.getLogger(ExampleJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("Sample job is executed");
    }
}

Screenshot:
image

quartzSample.zip (180.3 KB)

Regards,
Nikita

Thank you. It wasn’t working in my composite project but now worked.