rule engine with xml

Author Message
 Posted 10/26/2012 5:06:05 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 11/9/2020 7:12:23 AM
Posts: 41, Visits: 347
I am validating current row using the code below.

 Private Sub CustomersBO_CheckRulesOnCurrentRow(ByVal e As MicroFour.StrataFrame.Business.CheckRulesEventArgs)
        If Me.cust_LastName = "" Then
            Me.AddBrokenRule(CustomersBOFieldNames.cust_LastName, "Required field.")
        End If
End Sub

With every client that we have these rules could be changed. Therefore I am trying to created a rule engine that could pull a xml file like one below and build the rules dynamically.
Does anyone have an idea?

<application>
  <bo name="CustomersBO" >
    <rule>
      <propertyname>cust_LastName</propertyname>
      <argument>cust_LastName = ""</argument>
      <errormessage>Required field.</errormessage>
    </rule>
    <rule>
      <propertyname>cust_FirstName</propertyname>
      <argument>cust_FirstName = ""</argument>
      <errormessage>Required field.</errormessage>
    </rule>
  </bo>
<application>




Tags:
Post #31526
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.