Files
zhengwr 6ced9b15f2 P3-1/2: 新建 flowable-service 独立工作流服务 + 移植 3 个表达式 handler
- 新模块 flowable-service(单客户交付四进程之一,可执行 jar,端口 8089):
  Flowable 6.8.1 引擎(连 eip4flow.eip3,databaseSchemaUpdate=false 严禁自动改表)
  + v5 兼容层 + 双数据源(ACT_ 本地 + 业务组织库客户库只读)
- 3 个 handler 按原包名移植经 cfg.setBeans 注册:CandidateUsersHandler(4761 处)/
  MultiInstanceUsersHandler(33 处会签)/WfContextService(175 处)
- 组织服务全闭包裁剪为 OrgDirectory 窄接口 + OrgDirectoryJdbc 直查业务组织库 SQL
  (逐条对齐 framework AssignmentHandlerImpl/UserFindServiceImpl/OrganizationServiceImpl),
  不拖入保真层元数据引擎;OSGi 取 bean → WfBeanRegistry(§3.1/§5.17 替换类策略);
  com.dsasp.* 零反向依赖 com.eip4(ArchUnit 纪律保持)
- REST 薄封装:待办/已办/发起/办理/挂起激活/委托 + OpenAPI;挂起拒办映射 409
- 26 单测绿;全反应堆 mvn test + ArchUnit 绿
- 实测验证(6.8.1.0 真实迁移数据):1509 定义加载、3 个真实 position 表达式解析
  与客户库组织 SQL 一致、待办口径双向对账(4=4/12=12)、挂起拒办回归、委托语义、会签解析;
  写测试全部可逆还原(act_ru_task 总数 9321 不变)
- 5 个 scriptTask 静态核对:全为 Activiti Explorer demo/report 残留,只读零写库
- 报告 flowable-service/P3流程服务实测报告.md;手册新增 §6.5/§6.6/§6.7 坑位

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 14:40:51 +08:00

102 lines
4.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.eip4</groupId>
<artifactId>eip4-platform</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>flowable-service</artifactId>
<name>flowable-service</name>
<description>
P3 Flowable 独立工作流服务(单客户交付四进程之一:flowable-service.jar,端口 8089)。
Flowable 6.8.1 引擎(连 eip4flow.eip3,databaseSchemaUpdate=false)+ v5 兼容层;
3 个表达式 handler bean(com.dsasp.server.wf.*)按原包名移植,经 cfg.setBeans 注册;
候选人解析改直查业务组织库(双数据源:ACT_ 本地 eip4flow + 业务表客户库只读),
不把整个 com.dsasp.server.organize 保真层引擎拖进独立进程。
REST 薄封装 Flowable API:待办/已办/发起/办理/挂起/激活/委托。
注意:本模块独立于 eip4-platform.jar,不依赖任何 com.eip4 platform-* 模块,
亦不依赖 platform-legacy-core(引擎在独立服务,gateway 只做客户端,见架构第三节)。
</description>
<properties>
<flowable.version>6.8.1</flowable.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!-- Flowable 6.8.1 引擎(裸引擎,不用 flowable-spring-boot-starter:
我们手工装配 ProcessEngineConfiguration 以接管双数据源 + setBeans 注册 +
databaseSchemaUpdate=false,starter 的自动建表/单数据源装配与本服务纪律相冲) -->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-engine</artifactId>
<version>${flowable.version}</version>
</dependency>
<!-- v5 兼容层:运行 5.x 标记的流程定义(全量 1,509 定义大多 engineVersion=v5) -->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable5-compatibility</artifactId>
<version>${flowable.version}</version>
</dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable5-spring-compatibility</artifactId>
<version>${flowable.version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<!-- 移植 BasePropertiesConverter 用 Jackson 1.x(org.codehaus.jackson),
与 framework 原版一致(原样移植,不改 Jackson 2),解析候选人表达式 JSON -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</dependency>
<!-- WfContextService 用 joda DateTimeZone(原样移植) -->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<!-- OpenAPI 文档(AI 友好度后端半边) -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>
<!-- 测试:handler 解析逻辑 mock 数据源,REST 薄层 MockMvc -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.eip4.flowservice.FlowableServiceApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>