From: sabari <nathsabari@ya...>
Passing Collection of objects and multiple arguments 2004-01-12 08:05 |
Hi, We prefer to use mandarax as the rule engine in our Hospital Information System. To begin with, we have some fundamnetal doubts regarding the implemetation. We expect your advice for the follwing doubts. 1)Can we pass a group of objects in a collection to the query? Say a collection of Customer objects . We have situations similar to, hundreds of customer instances which go through the rule checks and only valid customers need to be returned ( by querying the knowledgebase ) . So here a collection of customers are passed and a collection of valid customers (may be a Collection of valid discounts ) returned. 2)How can we pass multiple arguments in to the inference engine at query time? Say I want to pass both customer object, and his turn_over_object. Is there any limitation to the number of arguments? Can we pass an object array? And if so, what should be their order? 3)To access the member variables of the passing object we need to create Separate JFunctions for each member. This is a tedious process. Is there any other simple alternative? We want to access the values just by specifying the Class name and its member variables name. Thanks , Sabarinathan. |
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
