Urule开源版系列2——console的常⽤接⼝
1. 创建决策表接⼝:
post
editor版本
参数:
path: /demo/测试/决策表l
type: dt.xml
2. 保存决策⽂件
post
CommonServletHandler.saveFile
参数:
content: xml <?xml version="1.0" encoding="utf-8"?><parameter-library><parameter name='age' label='年龄' type='Integer' act='InOut'/></parameter-library> file: /demo/测试/参数l
newVersion: false
3. 测试规则
post
PackageServletHandler.doTest
参数:
files: jcr:/demo/测试/规则l,LATEST;jcr:/demo/测试/决策表l,LATEST
data: [{"name":"标签","clazz":"del.Tag","variables":[{"name":"id","label":"数据库ID","type":"Long","_editorType":"number","id":"_ui_205"}, {"name":"name","label":"姓名","type":"String","defaultValue":"abc","_editorType":"string","id":"_ui_206"},{"name":"seq","label":"排
序","type":"Integer","_editorType":"number","id":"_ui_207"},{"name":"source","label":"来
源","type":"String","defaultValue":"1111","_editorType":"string","id":"_ui_208"},{"name":"type","label":"标签类
型","type":"String","_editorType":"string","id":"_ui_209"},{"name":"uuid","label":"标签逻辑ID","type":"String","_editorType":"string","id":"_ui_210"},
{"name":"value","label":"标签值","type":"String","defaultValue":"abc","_editorType":"string","id":"_ui_211"}],"id":"_ui_195"},{"name":"参
数","clazz":"java.util.HashMap","variables":[{"name":"age","label":"年
龄","type":"Integer","defaultValue":"1122","_editorType":"number","id":"_ui_243"}],"id":"_ui_196"}]
附录-决策表⽀持类型
类型英⽂⽂件后缀编辑器
决策集l ruleseteditor
决策表l decisiontableeditor
脚本式决策表l
动作库l actioneditor
变量库l variableeditor
参数库l parameterditor
常量库l constanteditor
决策流l ruleflowdesigner
脚本规则UL.ul uleditor
决策树l decisiontreeeditor
评分卡Scorecard sc scorecardeditor
虚拟⽬录DIR DIR
知识包packageeditor
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论