惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
罗磊的独立博客
M
MIT News - Artificial intelligence
G
Google Developers Blog
V
V2EX
D
Docker
博客园_首页
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
WordPress大学
WordPress大学
T
Tailwind CSS Blog
博客园 - 司徒正美
J
Java Code Geeks
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
B
Blog RSS Feed
博客园 - 【当耐特】
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky

博客园 - recx

oracle bi publisher error with word 2007 android+soap+.net+webservice oracle EBS自定义文件夹以及分配 20110105杂记 删除 excel 加密破解 无聊 PowerCenter Designer小结 让生活更精致舒适的小常识 关于依赖注入(Denpendency Injection)OR 控制反转(IoC = Inversion of Control) 值得收藏的146条经典民间偏方(转) 食品 rman数据库的启动 oracle 创建同义词(synonym) 问题 农村的机会 别人推荐的书 oracle ctl 文件格式(追加数据) 转:天冷了,大家如果有去年的不穿的衣服别扔....寄给需要的人好吗? 偶对观察者模式的理解
NXBRE-Execution
recx · 2008-11-13 · via 博客园 - recx

2.3.1. Execution

NxBRE uses a context object that is used to carry information about its execution environment, which are:

• the available operators,
• the loaded rules,
• the user's business objects and the generated results,

• and a stack trace.

NxBRE使用一个context对象来保持它执行环境的信息,这些信息包括:可用的运算符、已经装载的规则、用户的业务对象以及生成的结果和一个堆栈跟踪。

When parsing the rule file at initialization time, the engine loads all the rule objects in the context. At execution time, the engine follows the execution flow defined by tests andloops.

在初始化时,当分析业务文件的时候,该引擎会加载context厘面所有的业务对象。在执行时,该引擎遵循由检查(我的理解是比较,比较检查某个数字是否位于某一区间)和循环定义的执行流程。

When it reaches a rule element, it gets the corresponding object by its id and calls the ExecuteRule method on it.

当它 到达一个规则元素时,它根据id获取响应的对象,并在该对象上执行ExecuteRule方法。

It then stores the result of this call in the context result.

然后存储方法的执行结果到context结果中。

The ExecuteRule method provides the callee with the NxBRE's context, a map of the optional additional parameters that could have been provided in the XML file and a third parameter (Step) which can also be defined in the XML file.

ExecuteRule方法提供被调用者NxBRE的上下文、由xml文件提供的可选的附加参数对照表以及同样可以有xml文件定义的第三个参数(Setp)。

User's business objects are placed before execution in the context result pool where they are accessible to the engine.After execution, these objects might have been modified,new ones might have been created in the result context (asserted) and some might have been removed from there (retracted).

 用户业务对象在执行之前被放置到context结果池中,这样他们可以被引擎使用。执行之后,这些对象有可能被修改,可能在结果中生成一些新的对象,也可能结果中的一些对象被移除。