feat(ai-web): 移除liteflow入参,该用自己实现的流程引擎
This commit is contained in:
@@ -52,7 +52,6 @@ create table hudi_collect_build_b12.service_ai_flow_task_template
|
||||
created_time datetime(6) comment '记录创建时间',
|
||||
modified_time datetime(6) comment '记录更新时间',
|
||||
description varchar(255) comment '模板功能、内容说明',
|
||||
flow text not null comment 'LiteFlow流程表达式',
|
||||
flow_graph longtext comment '前端流程图数据',
|
||||
input_schema longtext not null comment '模板入参Schema',
|
||||
name varchar(255) not null comment '模板名称',
|
||||
|
||||
@@ -30,9 +30,6 @@ public class FlowTaskTemplate extends SimpleEntity {
|
||||
@Comment("模板入参Schema")
|
||||
@Column(nullable = false, columnDefinition = "longtext")
|
||||
private String inputSchema;
|
||||
@Comment("LiteFlow流程表达式")
|
||||
@Column(nullable = false, columnDefinition = "text")
|
||||
private String flow;
|
||||
@Comment("前端流程图数据")
|
||||
@Column(columnDefinition = "longtext")
|
||||
private String flowGraph;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import {amisRender, commonInfo, crudCommonOptions, paginationTemplate,} from '../../../../util/amis.tsx'
|
||||
import {useNavigate} from 'react-router'
|
||||
import {amisRender, commonInfo, crudCommonOptions, paginationTemplate} from '../../../../util/amis.tsx'
|
||||
|
||||
const FlowTaskTemplate: React.FC = () => {
|
||||
const navigate = useNavigate()
|
||||
@@ -20,8 +20,8 @@ const FlowTaskTemplate: React.FC = () => {
|
||||
page: {
|
||||
index: '${page}',
|
||||
size: '${perPage}',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
...crudCommonOptions(),
|
||||
...paginationTemplate(
|
||||
@@ -32,6 +32,8 @@ const FlowTaskTemplate: React.FC = () => {
|
||||
type: 'action',
|
||||
label: '',
|
||||
icon: 'fa fa-plus',
|
||||
tooltip: '新增',
|
||||
tooltipPlacement: 'top',
|
||||
size: 'sm',
|
||||
onEvent: {
|
||||
click: {
|
||||
|
||||
@@ -83,17 +83,6 @@ const FlowTaskTemplateEdit: React.FC = () => {
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'editor',
|
||||
required: true,
|
||||
label: '任务流程',
|
||||
name: 'template.flow',
|
||||
description: '使用标准的LiteFlow语法',
|
||||
language: 'xml',
|
||||
options: {
|
||||
wordWrap: 'bounded',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'button-toolbar',
|
||||
buttons: [
|
||||
|
||||
Reference in New Issue
Block a user