In all of my apps I maintain log files of additions / changes / deletions. I have a rule which will capture additions & changes as follows:
If Customer WAS CHANGED Then CREATE CustomerLog WITH CustomerLog.City=Customer.City,CustomerLog.FirstName=Customer.FirstName,CustomerLog.CustomerID=Customer.ID,CustomerLog.LastName=Customer.LastName
If there any other way to capture the deleted Customer info to CustomerLog BO than creating a special delete Process which created CustomerLog from Customer, then deletes Customer?
Thanks!
Tom
PS -- in AwareIM documentation, I think you should add a brief addition which explains that WAS CHANGED is triggered by additions / changes to a BO, but NOT deletions.
Logging deleted instances
The solution was simple. I had not remembered reading that there are seperate rules section that triggers rules when a BO is deleted. So, I simply added the following to that rule section fo the Customer BO:
CREATE CustomerLog WITH CustomerLog.City=Customer.City,CustomerLog.FirstName=Customer.FirstName,CustomerLog.CustomerID=Customer.ID,CustomerLog.LastName=Customer.LastName
Tom
CREATE CustomerLog WITH CustomerLog.City=Customer.City,CustomerLog.FirstName=Customer.FirstName,CustomerLog.CustomerID=Customer.ID,CustomerLog.LastName=Customer.LastName
Tom