StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
rule engine with xml
rule engine with xml
Post Reply
Like
2
rule engine with xml
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Danny Doobay
Danny Doobay
posted 12 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 40,
Visits: 333
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
engine
rule
xml
Reply
Like
2
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
rule engine with xml
Danny Doobay
-
12 Years Ago
Post Reply
Like
2
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search