I have looked for an answer for this and tried to simulate but not been able to arrive at an answer.
I have a simple BO called MyData and I have a Create/Modify Rule - SystemSettings.RecordCount=COUNT MyData
and I have a Rule on Deletion - SystemSettings.RecordCount=COUNT MyData.
So.... just testing the timing of the COUNT.
On Record creation the COUNT includes the record just created. As I would have hoped and expected.
However, On Deletion, the Action is executed BEFORE the record is deleted so the COUNT also includes the record that have been deleted.
This does not seem correct to my or may be I am approaching it from the wrong place.
Has anyone encountered this before and worked out how to execute the Rule action AFTER the deletion rather than BEFORE?