登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
程序开发
>
流程引擎/工具
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
615
Star
7.2K
Fork
1.8K
GVP
dromara
/
liteFlow
代码
Issues
131
Pull Requests
4
Wiki
统计
流水线
服务
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
281
[ISSUE #I9H6GN] 支持 Kotlin 脚本语言
已合并
DaleLee:issue/#I9H6GN
dromara:dev
DaleLee
创建于 2024-05-04 15:26
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
Issue链接:[#I9H6GN](https://gitee.com/dromara/liteFlow/issues/I9H6GN) 更新内容: * 在`ScriptTypeEnum`中增加`KOTLIN` * 新增`liteflow-script-plugin`模块,定义 Kotlin 脚本执行器`KotlinScriptExecutor` * 新增`liteflow-testcase-el-script-kotlin-springboot`模块,测试 Kotlin 脚本 注意事项: * `kotlin-scripting-jsr223`貌似不支持变量的直接绑定(直接获取绑定的变量通不过编译),需要在 bindings 中获取上下文 ``` Kotlin import com.yomahub.liteflow.slot.DefaultContext val defaultContext = bindings["defaultContext"] as DefaultContext ``` * 当在 SpringBoot 环境中使用 Kotlin 脚本时,因为`spring-boot-dependencies`中也定义了一些与 Kotlin 相关的依赖,可能会造成与 Liteflow Kotlin 脚本插件使用的`kotlin-scripting-jsr223`产生依赖冲突,版本不一致,造成 Kotlin 脚本插件不可用。当产生依赖冲突时,需要指定 Kotlin 相关依赖的版本。 ``` XML <dependencyManagement> <dependencies> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-bom</artifactId> <version>1.9.23</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>${spring-boot.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> ``` > 低版本的 Kotlin 依赖在运行脚本时会产生一些 Bug,所以不能直接采用 SpringBoot 定义的 Kotlin 版本,最好与 Liteflow 的 Koltin 版本保持一致。
怎样手动合并此 Pull Request
git checkout dev
git pull https://gitee.com/dalelee/liteFlow.git issue/#I9H6GN
git push origin dev
评论
0
提交
4
文件
71
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
公子骏
dt_flys
zendwang
zendwang
justin.xu
mrwood1982
ssss
ssssgoldhunter
tonnyguo
tonnyguo
dongguo.tao
dongguotao
请叫我猿叔叔
qjwyss
sikadai
sikadai
与或非
tangkc123
nmnl
nmnl
hxinyu
h-xinyu
Rain
RainZs
zhhhhy
zhhhhy
DaleLee
dalelee
luoyi
luoyi-yu
葛足澳
gezuao
jay-li
jay-li-1
铂赛东
bryan31
未设置
最少人数
0
测试
公子骏
dt_flys
zendwang
zendwang
justin.xu
mrwood1982
ssss
ssssgoldhunter
tonnyguo
tonnyguo
dongguo.tao
dongguotao
请叫我猿叔叔
qjwyss
sikadai
sikadai
与或非
tangkc123
nmnl
nmnl
hxinyu
h-xinyu
Rain
RainZs
zhhhhy
zhhhhy
DaleLee
dalelee
luoyi
luoyi-yu
葛足澳
gezuao
jay-li
jay-li-1
铂赛东
bryan31
未设置
最少人数
0
优先级
不指定
严重
主要
次要
不重要
标签
标签管理
未设置
关联 Issue
I9H6GN
支持kotlin脚本语言
里程碑
未关联里程碑
v2.8.0,带来了全新的DSL
参与者
(1)
Java
1
https://gitee.com/dromara/liteFlow.git
[email protected]
:dromara/liteFlow.git
dromara
liteFlow
liteFlow
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册