这是 eax 示例工程
- conf 是 nodejs 配置代码
- 其他的部分,是标准的 java 工程。
java 部分特别说明
运行时,需要额外依赖
<dependency>
<groupId>com.tienon.eax</groupId>
<artifactId>eax4core</artifactId>
<version>1.0.0</version>
</dependency>
若只开发 service,只需要依赖
<dependency>
<groupId>com.tienon.eax</groupId>
<artifactId>eax4api</artifactId>
<version>1.0.0</version>
</dependency>
conf 说明
cd conf
npm install
npm postinstall
xbuid
若没有错误,然后运行
% npx xbuild
加载 .env 文件成功: .env => /Users/wukun/dev/eax4java/exapp/conf/.env
Usage: xbuild [options] [command]
A CLI with subcommands
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
load [options] [basePackage] 导出所有组件定义
dump [options] [filePath] 导出测试部署的流程图文件到 java 工程
deploy [flowId] 部署工作流
run [options] <flowId> 运行工作流
info 获取调试信息
test [options] <flowId> 测试工作流: 部署并运行工作流
release <version> 发布新版本的配置信息
help [command] display help for command
编辑 .env
XBUILD_DIR=/Users/wukun/dev/eax4java/exapp/conf
# java
CLASS_PATH=/Users/wukun/dev/eax4java/exapp/target/classes
BASE_PACKAGE=com.tienon.eax.example
# 配置文件
RESOURCE_FILE=/Users/wukun/dev/eax4java/exapp/src/main/resources/workflows.json
# api
OPS_API_URL=http://localhost:8080
RUN_API_URL=http://localhost:8080
Description
Languages
Java
81.9%
TypeScript
17.8%
Makefile
0.3%