If you are trying to log checklist exam points in your checklist process, I'm not sure why you need to even involve REPORT ERROR action and process failure rules. Couldn't you use a conditional CREATE action to a BO like ChecklistLog?
Tom
Process Failure Rules
Another issue with having the REPORT ERROR exception thrown from the object is that the ROLLBACK doesn't occur for things modified before the error.
I am involving the report error because my checklist is for an automated process. I rely on having the ROLLBACK feature of the REPORT ERROR to eliminate changes that may have been made in the processes.
I am involving the report error because my checklist is for an automated process. I rely on having the ROLLBACK feature of the REPORT ERROR to eliminate changes that may have been made in the processes.
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
REPORT ERROR MUST rollback all changes UNLESS there were actions that involved user interaction. Consider this:
1.
MObject.MyAttribute = MyValue
REPORT ERROR 'Error'
In this case change to the object attribute will be rolled back
2.
MObject.MyAttribute = MyValue
EDIT MyObject
MObject.MyAttribute2 = MyValue2
REPORT ERROR 'Error'
In this case MyAttribute will NOT be rolled back because there is an action involving the user interaction that follows (EDIT). However, MyAttribute2 WILL be rolled back because there is no action that involves user interaction.
In other words, any action that involves user interaction, such as EDIT, ENTER NEW, PICK FROM etc causes the current transaction to be committed, no matter if there is an error afterwards.
1.
MObject.MyAttribute = MyValue
REPORT ERROR 'Error'
In this case change to the object attribute will be rolled back
2.
MObject.MyAttribute = MyValue
EDIT MyObject
MObject.MyAttribute2 = MyValue2
REPORT ERROR 'Error'
In this case MyAttribute will NOT be rolled back because there is an action involving the user interaction that follows (EDIT). However, MyAttribute2 WILL be rolled back because there is no action that involves user interaction.
In other words, any action that involves user interaction, such as EDIT, ENTER NEW, PICK FROM etc causes the current transaction to be committed, no matter if there is an error afterwards.
Aware IM Support Team
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact: