大型决策树(如果还有可能?) [英] Large Decision Tree.(If else is possible?)

查看:100
本文介绍了大型决策树(如果还有可能?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我必须在asp.net 4.0(c#)中开发一个索赔处理引擎.
索赔将有一个错误,我必须处理它.将说,处理该错误的10个步骤.如果索赔满足该步骤中的条件,我可以中止十个步骤中的任何一个.因此,我不必遵循其余步骤.如何在asp.net或sql表中为此创建规则引擎.

步骤1-如果(条件为真)转到步骤2,否则停止.
步骤2-如果(条件为真)转到步骤3,否则停止.
步骤3,......

第10步-停止.

可以有"n"个步骤.我将如何解决这个问题.有人请帮助我.

解决方案

看看:
http://lostechies.com/chrismissal /2009/05/27/anti-patterns-and-worst-practices-the-arrowhead-anti-pattern/ [ http://www. developer.com/net/article.php/3836626/Understanding-and-Benefiting-from-Code-Contracts-in-NET-40.htm [ ^ ]

Hi all, I have to develop A claim processing engine in asp.net 4.0(c#).
The claim will be having a error and i have to process it. There will be say, 10 step to process that error. I may stop in any of the ten step if the claim satisfies the condition in that step. So I need not to be follow the rest of the steps. How can I make a rule engine for this in asp.net or in my sql table.

step1- if (condition is true) goto step 2 else stop.
step 2- if (condition is true)goto step 3 else stop.
step 3,......

Step 10- stop.

There can be ''n'' number of steps. HOw will I solve this. Someone pls help me.

解决方案

Look at :
http://lostechies.com/chrismissal/2009/05/27/anti-patterns-and-worst-practices-the-arrowhead-anti-pattern/[^]

Also see:
http://www.developer.com/net/article.php/3836626/Understanding-and-Benefiting-from-Code-Contracts-in-NET-40.htm[^]


这篇关于大型决策树(如果还有可能?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆