Class: Events::ActivityCreated
- Inherits:
-
ApplicationEvent
- Object
- RailsEventStore::Event
- ApplicationEvent
- Events::ActivityCreated
- Defined in:
- app/events/events.rb
Overview
Activity lifecycle events — published by Activity model after_commit.
Not published when skip_callbacks is true (e.g. lock/unlock operations).
ActivityCreated: fires on any new activity save.
data: { activity_id:, activity_type_id:, skip_check_for_open_sales_activity: }
ActivityUpdated: fires on any activity update.
Dirty-tracking fields (activity_result_type_id_changed, assigned_resource_id_changed)
are captured at callback time and embedded in the payload because dirty tracking
is cleared before after_commit fires.
chain_deferred: true when the caller set halt_chain = true (e.g. mass update batch),
meaning SynchronousEffectsHandler skipped ChainRunner and the async
Activity::ChainRunnerHandler should run it instead.
data: { activity_id:, activity_type_id:, activity_result_type_id:,
activity_result_type_id_changed:, assigned_resource_id:,
assigned_resource_id_changed:, skip_check_for_open_sales_activity:,
chain_deferred: }