rules

Good references / tips for designing rule systems?

I often need to implement some sort of rule system that is user-editable -- the requirements are generally different enough that the same system isn't directly applicable, so I frequently run into the same problem--how do I design a rule system that is maintainable properly balances expressiveness with ease of use is easily extended (i...

Do you have your own DNUT/NDT ("Do Not Use This/Never Do That") list?

I was reviewing this morning a piece of code written by a beginner, when I found these lines: If ... ElseIf ... ElseIf ... Endif I told him "Please, Do Not Use This". And the other guy sitting aside (more experimented) said: "Oh no DoN't Use This!". I think there are many reasons explaining this reaction: a bad experience when we f...

Dynamically add sender email to Message Header rule in Outlook 2007 via right-click

I would like VBA code for Outlook 2007 to right-click a message in any mail view, choose a rule to add it to, and have the sender email be added to the Message Header contains value for that rule. Only particular rules use Message Header as a criteria, so only those applicable rules should show when I right-click a message. ...

Is there an easy-to-use, free or inexpensive, web-based business rules app with a GUI?

I am looking for a web-based business rules app that I can use with clients. After I get them started, the client would be able to enter new rules. Assume that the client has good Excel skills (as an example of level of tech sophistication) but has little patience for formal languages or programming. Cost: $0-$500 The resulting model...

Workflow RuleSetDialog

Can we somehow extend the RuleSetDialog class and host in our windows application? ...

workflow rules

Is there any good sample code or tutorial which explains how to use IRuleExpression in a custom rule editor ( windows workflow Rules Editor ) ? ...

Which rule from FxCop do you deactivate?

I personally don't use FxCop yet. We want to work out the unit testing first before going with code analysis. However, which rules would you permanantly deactivate? Which rules would you deactivate temporarily and in which situation? ...

Are there any rules for OOP?

Hey all, Recently I heard that there are 9 rules for OOP(Java). I know only four as Abstraction, Polymorphism, Inheritance and Encapsulation. Are there any more rules for OOP? ...

How would you implement?: Lots of rules over a tree in C#

I have a data structure that represents C# code like this: class Namespace: string Name; List<Class> Classes; class Class: string Name; List<Property> Properties; List<Method> Methods; List<Method> Constructors; List<Field> Fields; List<Class> InnerClasses; Class Parent; List<Interface> Implement...

Free / OpenSource Java Rules / Workflow engine

I am looking for a Java Rules / Workflow engine. Something similar to Microsoft Workflow Engine. Can someone recommend a product? ...

Implementing a "rules engine" in Python

I'm writing a log collection / analysis application in Python and I need to write a "rules engine" to match and act on log messages. It needs to feature: Regular expression matching for the message itself Arithmetic comparisons for message severity/priority Boolean operators I envision An example rule would probably be something lik...

Has anyone created any cool rules for FxCop/StyleCop?

I'm just looking for some inspiration. Especially in the area of performance and security, naming conventions are important but not as 'cool' ;) Even if your rule was only applicable to your domain/project but demonstrates how powerful a rule can be, please let me know. I work with C#, but I'm interested in rules for any language. ...

WF validation error at runtime

I have two workflow foundation (.NET 3.5 SP 1) application which compiles fine. It has two declarative rule conditions in it. Both are very simple, examples: - !this.Shutdown - this.Runtime == null The project builds correctly without error or warning, however when I run the application it fails with the exception: error 1342: Activity ...

I am compiling a Rules of Programming Mindset for my team: What are yours?

I have been working on a list for a while that helps me share the why of programming approach and thought as much as how to do something. For this, I wanted to build a list of things that are: best practice, best thought, best approach... that help a programmers ability to analyze, think, approach, solve and implement in the most e...

What would you use for a business validation layer?

In my project I need to create a business object validation layer that will take my object and run it against a set of rules and return either pass or fail and it's list of failure reasons. I know there are quite a few options out there for accomplishing this. From Microsoft: Enterprise Library Validation Application Block Windows Wor...

Should a business rule violation throw an exception?

Should a business rule violation throw an exception? ...

What technology to use in creating DSL for rules engine?

What technology would you recommend to create a DSL for a Business Rules and Validation Application Block for .NET? And why? The architecture of the framework is established and proof-tested by a production. I just want to create a .NET processor to transform human-readable rules to a compiled Rule implementations. The options that I'...

Design patterns and algorithms for applying rules to facts

I am in the midst of trying to nail down requirements from a client for a pricing engine in a retail environment. We have defined the pricing engine as operating on a set of pricing rules that establishes new price points for purchased items based on existing items already in the shopping cart. A simple price rule might be GET A SHIRT 4...

Simplest JQuery validation rules example

The following HTML form successfully utilizes jQuery's form validation, displaying "This field is required" to the right of the form field if left blank, and "Please enter at least 2 characters" if fewer than 2 characters were entered. However, instead of the validation metadata being specified using the class and minlength attributes o...

ASP .Net Membership Access Rules

Hi I have setup Access Rules on my local server and they work fine. However when I deploy them on to my staging server the rules are not in effect. Where are the rules stored? Both my local and staging server point to the same DB server. Thank you for any insight. I set the Access Rules in the ASP.Net Web Application Administration ...