|
|
|
uuid: d5d823ce-cfd0-4e9c-85c9-9090660d831e
|
|
|
|
langcode: en
|
|
|
|
status: true
|
|
|
|
dependencies:
|
|
|
|
enforced:
|
|
|
|
module:
|
|
|
|
- islandora
|
|
|
|
id: broadcast_media_update_event
|
|
|
|
label: 'Broadcast Media Update Event'
|
|
|
|
events:
|
|
|
|
-
|
|
|
|
event_name: 'rules_entity_update:media'
|
|
|
|
description: 'Broadcasts an AS2 event to a message broker when Media is updated.'
|
|
|
|
tags:
|
|
|
|
- ''
|
|
|
|
config_version: '3'
|
|
|
|
expression:
|
|
|
|
id: rules_rule
|
|
|
|
uuid: 3fb05cc7-f27a-4a79-8e98-544e4aabaf15
|
|
|
|
conditions:
|
|
|
|
id: rules_and
|
|
|
|
uuid: 585b55af-847d-447a-afee-01b855807c4a
|
|
|
|
conditions: { }
|
|
|
|
actions:
|
|
|
|
id: rules_action_set
|
|
|
|
uuid: bb96d589-0d63-4b1b-89d7-faf358171d40
|
|
|
|
actions:
|
|
|
|
-
|
|
|
|
id: rules_action
|
|
|
|
uuid: 60a1f348-f85f-45fc-a785-b279b522863a
|
|
|
|
context_values: { }
|
|
|
|
context_mapping:
|
|
|
|
entity: media
|
|
|
|
user: '@user.current_user_context:current_user'
|
|
|
|
context_processors: { }
|
|
|
|
provides_mapping: { }
|
|
|
|
action_id: islandora_update_event_generator
|
|
|
|
-
|
|
|
|
id: rules_action
|
|
|
|
uuid: ee50c8ae-a9cd-479a-aa86-3567629a01b8
|
|
|
|
context_values:
|
|
|
|
recipients:
|
|
|
|
- "activemq:queue:islandora-indexing-fcrepo-media\r"
|
|
|
|
- "activemq:queue:islandora-indexing-triplestore-index"
|
|
|
|
context_mapping:
|
|
|
|
message: event_message
|
|
|
|
context_processors:
|
|
|
|
recipients:
|
|
|
|
rules_tokens: { }
|
|
|
|
provides_mapping: { }
|
|
|
|
action_id: islandora_broadcast
|