rules.reaction.mailjet_unsubscribe_event.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. uuid: 1308193a-4425-4fc9-95a0-2e7f6c271278
  2. langcode: en
  3. status: true
  4. dependencies: { }
  5. _core:
  6. default_config_hash: MyY_Lp-SmU46vjiG1JfDXfyjoOc_O-YBiWnBlfDMC_8
  7. id: mailjet_unsubscribe_event
  8. label: 'Mailjet Unsubscribe Event'
  9. events:
  10. -
  11. event_name: 'rules_entity_insert:mailjet_event'
  12. description: ''
  13. tags:
  14. - mailjet
  15. - rules
  16. - event
  17. - 'unsubscribe event'
  18. config_version: '3'
  19. expression:
  20. id: rules_rule
  21. uuid: fb766314-f49f-4aba-9115-8c5b362cf404
  22. weight: 0
  23. conditions:
  24. id: rules_and
  25. uuid: 2c3970cc-c861-4c32-881d-a4683faa2541
  26. weight: 0
  27. conditions:
  28. -
  29. id: rules_condition
  30. uuid: 2bea8cc9-4a68-40f4-822e-bf5d0f16c20f
  31. weight: 0
  32. condition_id: rules_data_comparison
  33. negate: false
  34. context_values:
  35. operation: '=='
  36. value: unsub
  37. context_mapping:
  38. data: mailjet_event.event_type.value
  39. context_processors:
  40. operation:
  41. rules_tokens: { }
  42. value:
  43. rules_tokens: { }
  44. provides_mapping: { }
  45. -
  46. id: rules_condition
  47. uuid: fe051e60-fd5e-4e90-a272-c526017966cb
  48. weight: 0
  49. condition_id: rules_entity_is_of_type
  50. negate: false
  51. context_values:
  52. type: mailjet_event
  53. context_mapping:
  54. entity: mailjet_event
  55. context_processors:
  56. type:
  57. rules_tokens: { }
  58. provides_mapping: { }
  59. actions:
  60. id: rules_action_set
  61. uuid: 5c91a286-ea41-47f7-b6a9-451cb4bb2324
  62. weight: 0
  63. actions:
  64. -
  65. id: rules_action
  66. uuid: 7eb49497-8830-46d4-975c-6b25b5d6dee6
  67. weight: 0
  68. action_id: rules_simplenews_mailjet_subscriptions_unsubscribe_from_list
  69. context_values:
  70. listID: mailjet_event.event_field.mj_list_id
  71. email: mailjet_event.event_field.email
  72. context_mapping: { }
  73. context_processors:
  74. listID:
  75. rules_tokens: { }
  76. email:
  77. rules_tokens: { }
  78. provides_mapping: { }