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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
爱范儿
爱范儿
The Cloudflare Blog
Y
Y Combinator Blog
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
博客园 - 叶小钗
G
Google Developers Blog
J
Java Code Geeks
P
Proofpoint News Feed
美团技术团队
Engineering at Meta
Engineering at Meta
腾讯CDC
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
有赞技术团队
有赞技术团队
L
LangChain Blog
N
Netflix TechBlog - Medium
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 【当耐特】

博客园 - 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结果池中,这样他们可以被引擎使用。执行之后,这些对象有可能被修改,可能在结果中生成一些新的对象,也可能结果中的一些对象被移除。