A business rule on the Change Request table needs to update a field on the same record after the record is updated. Which 'When' option should be used?
Trap 1: Display
Display runs when the form is displayed, not after the record is updated. It is not appropriate for updating the same record after the fact.
Trap 2: Async
Async business rules execute in the background, *after* the current transaction has completed. This prevents them from synchronously updating the *same* record within the immediate user session, which is required for an instant field modification. It is tempting as it runs post-update, but 'Async' is correctly utilised for non-critical, potentially long-running operations like sending notifications or integrating with external systems, where blocking the user or immediate record feedback is unnecessary.
Trap 3: Before
Before runs before the database operation, so the record hasn't been saved yet. It would modify the record before the save, not after.
- A
Display
Why wrong: Display runs when the form is displayed, not after the record is updated. It is not appropriate for updating the same record after the fact.
- B
After
After runs after the database operation, making it suitable for updating the same record after it has been saved.
- C
Async
Why wrong: Async business rules execute in the background, *after* the current transaction has completed. This prevents them from synchronously updating the *same* record within the immediate user session, which is required for an instant field modification. It is tempting as it runs post-update, but 'Async' is correctly utilised for non-critical, potentially long-running operations like sending notifications or integrating with external systems, where blocking the user or immediate record feedback is unnecessary.
- D
Before
Why wrong: Before runs before the database operation, so the record hasn't been saved yet. It would modify the record before the save, not after.