rules.reaction.mailjet_unsubscribe_event.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. actions:
  46. id: rules_action_set
  47. uuid: 5c91a286-ea41-47f7-b6a9-451cb4bb2324
  48. weight: 0
  49. actions:
  50. -
  51. id: rules_action
  52. uuid: 9e184f51-443d-41ec-94c0-2c5ec5bdb1db
  53. weight: -50
  54. action_id: 'rules_entity_create:commerce_log'
  55. context_values: { }
  56. context_mapping: { }
  57. context_processors: { }
  58. provides_mapping:
  59. commerce_log_created: mailjet_event_log_created
  60. -
  61. id: rules_action
  62. uuid: 7eb49497-8830-46d4-975c-6b25b5d6dee6
  63. weight: -49
  64. action_id: rules_simplenews_mailjet_subscriptions_unsubscribe_from_list
  65. context_values:
  66. listID: mailjet_event.event_field
  67. email: mailjet_event.event_field
  68. context_mapping: { }
  69. context_processors:
  70. listID:
  71. rules_tokens: { }
  72. email:
  73. rules_tokens: { }
  74. provides_mapping: { }