|
|
|
uuid: 4474df44-01ee-4abf-84f9-9aa41d787d27
|
|
|
|
langcode: en
|
|
|
|
status: true
|
|
|
|
dependencies:
|
|
|
|
enforced:
|
|
|
|
module:
|
|
|
|
- islandora
|
|
|
|
id: broadcast_media_create_event
|
|
|
|
label: 'Broadcast Media Create Event'
|
|
|
|
events:
|
|
|
|
-
|
|
|
|
event_name: 'rules_entity_insert:media'
|
|
|
|
description: 'Broadcasts an AS2 event to a message broker when Media is created.'
|
|
|
|
tags:
|
|
|
|
- ''
|
|
|
|
config_version: '3'
|
|
|
|
expression:
|
|
|
|
id: rules_rule
|
|
|
|
uuid: d4ba4cc1-3b18-400d-867f-1605d72d9717
|
|
|
|
conditions:
|
|
|
|
id: rules_and
|
|
|
|
uuid: 9ccf9d29-89be-4b1d-8417-230e33f8fd6f
|
|
|
|
conditions: { }
|
|
|
|
actions:
|
|
|
|
id: rules_action_set
|
|
|
|
uuid: 47afb6b3-e39e-4c3a-af47-669e963353a2
|
|
|
|
actions:
|
|
|
|
-
|
|
|
|
id: rules_action
|
|
|
|
uuid: dff4ebfb-84c5-4d0f-acf7-62e3edbab143
|
|
|
|
context_values: { }
|
|
|
|
context_mapping:
|
|
|
|
entity: media
|
|
|
|
user: '@user.current_user_context:current_user'
|
|
|
|
context_processors: { }
|
|
|
|
provides_mapping: { }
|
|
|
|
action_id: islandora_create_event_generator
|
|
|
|
-
|
|
|
|
id: rules_action
|
|
|
|
uuid: 6b0d07b3-048e-43ac-8a9f-2c5203f8080e
|
|
|
|
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
|