TaskListner Class Not Found

Currently, We have 2 flowable engines running and sync through DB.

  1. flowable-ui for the modeler
  2. Spring boot app Custome Rest API Setup
    Now we have created a spring boot app For Tasklistner Delegate implementation which we have added as a jar at “flowable-ui\WEB-INF\lib” .

Now while starting up Flowbale UI is throwing a class not found error .

Unable to read meta-data for class com.delegates.ServiceConfig

Caused by: java.io.FileNotFoundException: class path resource [com/delegates/ServiceConfig.class] cannot be opened because it does not exist

It’s not able to initiate my delegate class I guess I’m missing something on Autoconfig’s side while creating beans.

Attaching files
File ServiceConfig.java
package com.delegates;
import org.flowable.form.engine.configurator.FormEngineConfigurator;
import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.ProcessEngineConfigurationConfigurer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ServiceConfig {
@Bean
@ConditionalOnMissingBean(TaskCompleteListener.class)
public TaskCompleteListener firstServiceTask() {
return new TaskCompleteListener();
}

@Bean
public ProcessEngineConfigurationConfigurer configurationConfigurer() {
    return new ProcessEngineConfigurationConfigurer() {
        public void configure(SpringProcessEngineConfiguration processEngineConfiguration) {
            processEngineConfiguration.addConfigurator(new FormEngineConfigurator());
        }
    };
}

}

File TaskCompleteListener.java

package com.delegates;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;
@Component(“taskCompleteListener”)
public class TaskCompleteListener implements TaskListener {
public void notify(DelegateTask delegateTask) {
System.out.println(“Complete”);
}
}

file => resources\META-INF\spring.factories
# Auto Configuration Import Filters
org.springframework.boot.autoconfigure.EnableAutoConfiguration=
com.delegates.ServiceConfig

Hey @psychicDivine,

Are you sure that the ServiceConfig class is part of the jar you have added?

It feels like it isn’t.

Cheers,
Filip