工作流的taskService引入使用问题

Blade 已结 1 257
xizer
xizer 剑童 2023-01-10 18:50

一、该问题的重现步骤是什么?

1. flow工作流模块没有看见引入

flowable-engine

TaskService的地方,他是怎么直接使用的?

2. 我想在其他模块中使用taskService,需要引入

flowable-engine,但是启动项目报错说找不到这个bean,为什么?
<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-engine</artifactId>
    <version>6.4.2</version>
    <scope>compile</scope>
</dependency>

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex,windows11

四、请提供详细的错误堆栈信息,这很重要。

Description:


Parameter 1 of constructor in org.springblade.workorder.controller.WorkorderController required a bean of type 'org.flowable.engine.TaskService' that could not be found.



Action:


Consider defining a bean of type 'org.flowable.engine.TaskService' in your configuration.

五、若有更多详细信息,请在下面提供。

1条回答
  •  zhx1994
    zhx1994 (最佳回答者)
    2023-01-11 08:45

    需要引入这个依赖。

    A07B{2)4SW$QG{P$C[@J@AI.png

    1 讨论(1)
提交回复