Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Process rules problem
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01321631
Message ID:
01322025
Views:
19
Brian,

>I have a Business Process object that has a Business Process Rule
>Before I save my data Im using the rules object to check some process level rules.
>The problem I’m having isd the when I check the rules using the following
>
>
>Dim strRules As mmSaveDataResult
>        Dim bprule As mmBusinessRule = Me.GetBusinessRuleObject()
>        strRules = bprule.CheckRules(Me.oRemitBatch.GetCurrentDataSet, Me.oRemitBatch.TableName, True)
>
>strRules comes back showing that a rule was broken but the Business process’s rules object never gets updated to show that rules have been broken. So when I use the business process in the code below I don’t get the broken rules .
>
>
>
>Dim voidresult As OakLeaf.MM.Main.Business.mmSaveDataResult = Me.obpVoidBatch.ExecuteEvent(CType(Me.txtStartingDLN.Text, Int64), CType(Me.txtEndingDLN.Text, Int64), Me.dtpProcessDate.Value)
>        'check the results
>        If voidresult = OakLeaf.MM.Main.Business.mmSaveDataResult.RulesBroken Then
>            'rules have been broken, get the messages that say why and pass them to the user
>            MsgBox(Me.obpVoidBatch.GetBusinessRuleObject.GetAllBrokenRules(), MsgBoxStyle.Exclamation + MsgBoxStyle.OkOnly, "Unable to insert batch")
>        End If
>
>I think this workied in 2.4 but insnt working in the new release.
>I just tried doing the call via the entity overloaded version of CheckRules and this
>does allow you to use GetAllBrokenRules() on the Business Process but doesnt return the broken rule count. I think something is broken in the framework. All the business process that we are using in my project use datasets this is going to be a huge problem!

I realize you may not want to post your business process on line, but if you can send me the code (business process and business rule) via private e-mail I can get a better idea of what's going on.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform