youseries / urule

URULE是一款基于RETE算法的纯Java规则引擎,提供规则集、决策表、决策树、评分卡,规则流等各种规则表现工具及基于网页的可视化设计器,可快速开发出各种复杂业务规则。
Apache License 2.0
1.82k stars 722 forks source link

决策流不支持点了开始节点没有反应 #164

Open shyding opened 3 years ago

shyding commented 3 years ago

为了您的问题能得到及时准确解答,请认真填写下面各个选项,感谢您的配合。

shyding commented 3 years ago

chrome 最新版浏览器, firefox试过是支持的,但是动作的设置不支持

shaoyn commented 3 years ago

估计是个bug,商业版没这个问题,开源版的不维护了 好像是依赖的flowdesigner模块,里面使用$(window).height()获取当前窗口高度作为决策流面板的高度,chrome浏览器不知道啥情况不兼容获取的值为0 我临时解决方案是修改urule-console-js/src/flow/RuleFlowDesigner.js文件constructor方法在super(containerId);后面重新设置canvasContainer的高度 constructor(containerId){ super(containerId); // 修复google浏览器$(window).height()获取不到的bug,暂时写死800高度解决 this.canvasContainer.css('height',800); this.importVariableLibraries=[]; this.importConstantLibraries=[]; this.importParameterLibraries=[]; this.importActionLibraries=[]; this.variableLibraries=[]; this.constantLibraries=[]; this.parameterLibraries=[]; this.actionLibraries=[]; this.flowId=''; }

临时先这么解决吧

happyweizai commented 2 years ago

你上面说的这个问题,我通过在后端接口加一个休眠时间也解决了,前端因为代码启动不起来,也不太熟悉react.就不会弄

我想问一下开源版的前端console-js项目可以启动吗?我这边感觉启动不起来,因为我不会react,所以就只会最简单的npm打包的方式。谢谢

happyweizai commented 2 years ago

估计是个bug,商业版没这个问题,开源版的不维护了 好像是依赖的flowdesigner模块,里面使用$(window).height()获取当前窗口高度作为决策流面板的高度,chrome浏览器不知道啥情况不兼容获取的值为0 我临时解决方案是修改urule-console-js/src/flow/RuleFlowDesigner.js文件constructor方法在super(containerId);后面重新设置canvasContainer的高度 constructor(containerId){ super(containerId); // 修复google浏览器$(window).height()获取不到的bug,暂时写死800高度解决 this.canvasContainer.css('height',800); this.importVariableLibraries=[]; this.importConstantLibraries=[]; this.importParameterLibraries=[]; this.importActionLibraries=[]; this.variableLibraries=[]; this.constantLibraries=[]; this.parameterLibraries=[]; this.actionLibraries=[]; this.flowId=''; }

临时先这么解决吧

你好