Resource Plan isn't audited when moved to 'Cancelled' stateSummaryIn the Resource Plan record, when clicked on Cancel, though it's cancelling properly, & is being moved to 'Cancelled' state eventually, this state change to the Cancelled state isn't logged in the Audit History.Due to which, the Notifications or Events can't be triggered for the 'Cancelled' state. STEPS TO REPRODUCE: --> Create an Email Notification (or any other relevant trigger) & use a condition to trigger this Notification when the Resource Plan record is moved to 'Cancelled' state. --> Notice that it will not get triggered because "Cancelled" state is not logged in the Audit History of the Record.FactsRoot Cause: The Email Notification is not being triggered because when the resource plan state change happens asynchronously, the system will try to set the state field to the corresponding value by setting setWorkflow() to false. When we update a record with setWorkflow() to false, this update will not trigger any BRs or any Email Notifications. There is a script action 'Cancel resource plan' for event 'resource_plan.cancelled'. In this, the workflow is set to false before updating the resource plan state to Cancelled. If this setWorkflowis remove, then that will re-trigger all the business rules unnecessarily (those BRs that were triggered while moving the state to 'Cancel in Progress') and will lead to unexpected results.ReleaseAll ReleasesInstructionsIf we set the system property "com.snc.resource_management.run_state_changes_async" to FALSE, then the Email Notifications would work without any problem. But if this property is TRUE, we can create a trigger to look for Cancel in Progress state on the resource plan. However, there is a limitation with this workaround. It will check for the event state only once and if the event fails during the processing between "Cancel in Progress" and "Cancelled" state, it'll not recognize that. So we can't rely on this workaround completely. The other solution could be to create a trigger on Resource plan Logs table. When the resource plan is cancelled successfully, we log this in the table 'resource_plan_logs'. So you can create a trigger on this table to send out an email notification. The below message gets logged when the resource plan is cancelled."Resource plan is cancelled and {TOTAL_HOURS} hours got released."