Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

uuid: 71df1b5d-2f04-42fa-a660-5375de9c6c51
langcode: en
status: true
dependencies:
enforced:
module:
- islandora
id: broadcast_media_delete_event
label: 'Broadcast Media Delete Event'
events:
-
event_name: 'rules_entity_delete:media'
description: 'Broadcasts an AS2 event to a message broker when Media is deleted.'
tags:
- ''
config_version: '3'
expression:
id: rules_rule
uuid: c12184e7-8230-4bc7-b625-2a26b4a5a913
conditions:
id: rules_and
uuid: 5147d740-4e32-4935-8c30-f893e7c3f86f
conditions: { }
actions:
id: rules_action_set
uuid: 4a023b99-1cf8-410a-a082-b0c0369a807d
actions:
-
id: rules_action
uuid: 1fdc07dc-72ba-4666-abb8-8d79f29b67ff
context_values: { }
context_mapping:
entity: media
user: '@user.current_user_context:current_user'
context_processors: { }
provides_mapping: { }
action_id: islandora_delete_event_generator
-
id: rules_action
uuid: 75d0cf84-715b-4167-8ec2-92047a0bec56
context_values:
recipients:
- "activemq:queue:islandora-indexing-triplestore\r"
- 'activemq:queue:islandora-indexing-fcrepo-binary-delete'
context_mapping:
message: event_message
context_processors:
recipients:
rules_tokens: { }
provides_mapping: { }
action_id: islandora_broadcast