Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apply Business Rules to imported file records
Message
 
To
19/01/2012 18:30:08
Kathy Schmidt
Michigan Health and Hospital Association
Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01532556
Message ID:
01533529
Views:
63
Hi Kathy,

Perhaps you could try using Transactions. Start a Transaction when you start your process. Set a switch somewhere that will be true or false for broken rules. Set the switch to true once a rule is broken on a save. At the end of the process, if there are broken rules, rollback the transaction, else commit the transaction.

During your processing, just write out a log or report so that you have a way to review what errors took place, etc.

BTW, if you don't already have it, create a business process object as described in the help guide. Then add all the business objects needed in the process and create methods to do what I suggested above.

Lastly, as far as MM.NET Classic Entity objects are concerned, this shouldn't be a problem. It what I use and although I haven't done exactly what you are trying to do here, I have done similar import processes just without the stipulation that either everything processes or nothing processes.

HTH

Bob

>Any way that works is okay with me. We are using the MM .NET Classic Entity objects for our projects. I have tried multiple way and haven't gotten any way to work.
Previous
Reply
Map
View

Click here to load this message in the networking platform