From f6129f8629611462b62eb454386befba841d3d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=98=9F=E7=9A=84=E5=A4=A9=E7=A9=BA?= <1015074735@qq.com> Date: Wed, 7 May 2025 09:50:57 +0800 Subject: [PATCH 01/41] =?UTF-8?q?fix:=E5=B0=86=E8=AF=B7=E6=B1=82=E7=9A=84?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?30=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console-ui/src/service/base/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console-ui/src/service/base/index.ts b/console-ui/src/service/base/index.ts index 2a68f71f..8b32d6d9 100644 --- a/console-ui/src/service/base/index.ts +++ b/console-ui/src/service/base/index.ts @@ -5,7 +5,7 @@ function createRequestInstance() { // 创建实例 const instance = axios.create({ baseURL: '', - timeout: 10000, + timeout: 30000, headers: {}, }); -- Gitee From 0eb3c99ba702c866ae66fdfbe39a602791dedfb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=98=9F=E7=9A=84=E5=A4=A9=E7=A9=BA?= <1015074735@qq.com> Date: Wed, 7 May 2025 17:07:11 +0800 Subject: [PATCH 02/41] =?UTF-8?q?fix:=E8=A1=A5=E5=85=85JavaScript=E7=9A=84?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/.vuepress/config.ts | 2 +- docs/docs/notes/guide/user/nodes/code-node.md | 27 +++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/docs/docs/.vuepress/config.ts b/docs/docs/.vuepress/config.ts index 7f239f8e..5340f6b6 100644 --- a/docs/docs/.vuepress/config.ts +++ b/docs/docs/.vuepress/config.ts @@ -10,7 +10,7 @@ export default defineUserConfig({ description: 'juggle是一个可用于微服务接口编排,BFF层,第三方系统对接,私有化定制等场景的完整解决方案', head:[ ['link', { rel: 'icon', href: '/images/favicon.ico' }], - ['meta', { name: 'keywords', content: 'juggle,微服务接口编排,bff,定制化开发,流程编排,低代码,AI,零代码'}], + ['meta', { name: 'keywords', content: 'juggle,微服务接口编排,bff,定制化开发,流程编排,连接器,低代码,AI,零代码'}], [ "script", {}, diff --git a/docs/docs/notes/guide/user/nodes/code-node.md b/docs/docs/notes/guide/user/nodes/code-node.md index f804dd6a..bfb75fe0 100644 --- a/docs/docs/notes/guide/user/nodes/code-node.md +++ b/docs/docs/notes/guide/user/nodes/code-node.md @@ -24,7 +24,7 @@ permalink: /docs/guide/user/nodes/code-node/ #### a.支持脚本代码 -Juggle的代码节点支持Groovy,JavaScript,Python等多种语言代码。 +Juggle的代码节点支持Groovy,JavaScript,Python,Java等多种语言代码。 #### 1.Groovy示例 @@ -55,4 +55,27 @@ def user = jsonSlurper.parseText(userStr) println(user.name); ``` -**Groovy新手教程:**https://cloud.tencent.com/developer/chapter/18236 \ No newline at end of file +**Groovy新手教程:**https://cloud.tencent.com/developer/chapter/18236 + + + +#### 2.JavaScript示例 + +在代码节点也允许通过JavaScript脚本来增强流程的能力,下面将详细介绍如何使用JavaScript脚本 + +##### a.在JavaScript代码中获取和设置流程变量 + +在JavaScript脚本中通过$var.getVariableValue('变量key')来获取具体的变量,通过$var.setVariableValue('变量key',值);来对变量进行赋值。 + +```javascript +// 获取变量 +// var env_name = $var.getVariableValue('变量key'); +// 设置变量 +// $var.setVariableValue('变量key',值); + +//例子如下: +//获取入参变量input_name +var userName = $var.getVariableValue('input_name') +//将出参变量的值设置成6666 +$var.setVariableValue('output_userName',6666) +``` \ No newline at end of file -- Gitee From 7065a90bc6bcffd2732c669bb07aa0b244e4b56c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=98=9F=E7=9A=84=E5=A4=A9=E7=A9=BA?= <1015074735@qq.com> Date: Thu, 8 May 2025 16:31:14 +0800 Subject: [PATCH 03/41] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E6=94=BE=E5=A4=A7=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=9A=90=E8=97=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console-ui/src/views/flow/define/FlowDefineTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console-ui/src/views/flow/define/FlowDefineTable.vue b/console-ui/src/views/flow/define/FlowDefineTable.vue index 94f50e10..d6e2d346 100644 --- a/console-ui/src/views/flow/define/FlowDefineTable.vue +++ b/console-ui/src/views/flow/define/FlowDefineTable.vue @@ -50,7 +50,7 @@ function goDesignPage(flowDefinitionId: number, flowKey: string) { 异步 - +