Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 弹簧靴2.0.2+;可流动6.3.1流程部署_Spring Boot_Flowable - Fatal编程技术网

Spring boot 弹簧靴2.0.2+;可流动6.3.1流程部署

Spring boot 弹簧靴2.0.2+;可流动6.3.1流程部署,spring-boot,flowable,Spring Boot,Flowable,我正在尝试将Spring Boot 2.0.2与Flowable 6.3.1集成。遇到了无法从resources/processs/folder部署流程one-task-process.bpmn20.xml的问题。未拾取XML文件,错误显示: Caused by: org.flowable.engine.common.api.FlowableIllegalArgumentException: resource 'one-task-process.bpmn20.xml' not found

我正在尝试将Spring Boot 2.0.2与Flowable 6.3.1集成。遇到了无法从resources/processs/folder部署流程one-task-process.bpmn20.xml的问题。未拾取XML文件,错误显示:

Caused by: org.flowable.engine.common.api.FlowableIllegalArgumentException: resource 'one-task-process.bpmn20.xml' not found
    at org.flowable.engine.impl.repository.DeploymentBuilderImpl.addClasspathResource(DeploymentBuilderImpl.java:80) ~[flowable-engine-6.3.0.jar:6.3.0]
    at com.stsi.pss.Application$1.run(Application.java:458) ~[classes/:na]
    at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:797) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
    ... 10 common frames omitted
我的SpringBoot应用程序启动程序文件如下所示,它还打印出不包括Processs文件夹的类路径

imports...

@Configuration
@ComponentScan
@EnableAutoConfiguration
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public CommandLineRunner init(final RepositoryService repositoryService,
                                  final RuntimeService runtimeService,
                                  final TaskService taskService) {

        return new CommandLineRunner() {
            @Override
            public void run(String... strings) throws Exception {

                ClassLoader cl = ClassLoader.getSystemClassLoader();

                URL[] urls = ((URLClassLoader)cl).getURLs();

                for(URL url: urls){
                    System.out.println(url.getFile());
                }

                System.out.println("Number of process definitions : "
                        + repositoryService.createProcessDefinitionQuery().count());
                System.out.println("Number of tasks : " + taskService.createTaskQuery().count());
                runtimeService.startProcessInstanceByKey("oneTaskProcess");
                System.out.println("Number of tasks after process start: "
                        + taskService.createTaskQuery().count());
            }
        };
    }
}

我将感谢任何帮助

我在命名进程定义文件时出错。我修复了文件名,系统按预期工作。

不相关,但您可以删除这些说明:配置组件扫描启用自动配置您使用的是Flowable中的哪些启动器?部署是如何调用的?是流动式自动部署吗?