Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Process rules problem
Message
De
04/06/2008 11:38:18
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Business Process rules problem
Divers
Thread ID:
01321631
Message ID:
01321631
Vues:
64
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!

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform