uuid: 26705c2e-1bb1-4b63-b756-6f094ad690e1
langcode: en
status: false
dependencies:
  config:
    - field.field.message.draft_procedure.field_initiator
    - field.field.message.draft_procedure.field_procedure
    - field.field.message.draft_procedure.field_title
    - field.field.message.request_signature.field_initiator
    - field.field.message.request_signature.field_procedure
    - field.field.message.request_signature.field_title
    - field.field.message.update_procedure.field_initiator
    - field.field.message.update_procedure.field_procedure
    - field.field.message.update_procedure.field_title
    - field.field.message.user.field_initiator
    - field.field.message.user.field_procedure
    - field.field.message.user.field_title
    - field.field.node.procedure.field_users
    - field.field.node.procedure_temp.field_users
    - field.storage.message.field_initiator
    - field.storage.message.field_procedure
    - field.storage.message.field_title
    - field.storage.node.field_users
    - message.template.request_signature
    - node.type.procedure
  module:
    - eca_content
id: new
modeller: core
label: New
version: ''
weight: null
events:
  content_entity_update:
    plugin: 'content_entity:update'
    label: 'Update content entity'
    configuration:
      type: 'node procedure'
    successors:
      -
        id: action_message_action
        condition: eca_entity_original_field_value
      -
        id: null
        condition: eca_entity_field_value
conditions:
  eca_entity_field_value:
    plugin: eca_entity_field_value
    configuration:
      expected_value: '32'
      field_name: field_status
      operator: equal
      type: value
      case: false
      negate: false
      entity: node
  eca_entity_original_field_value:
    plugin: eca_entity_original_field_value
    configuration:
      expected_value: '33'
      field_name: field_status
      operator: equal
      type: value
      case: false
      negate: false
      entity: node
gateways: {  }
actions:
  action_send_email_action:
    plugin: action_send_email_action
    label: 'Send email'
    configuration:
      recipient: '[message1:author:mail]'
      subject: '[message1:field_title]'
      message: '[message1:field_procedure]'
      replace_tokens: false
    successors: {  }
  action_message_action:
    plugin: action_message_action
    label: 'Display a message to the user'
    configuration:
      message: '[node:title]'
      replace_tokens: true
    successors:
      -
        id: eca_new_entity_1
        condition: null
  eca_new_entity:
    plugin: eca_new_entity
    label: '[node:title]'
    configuration:
      token_name: node
      type: 'danse_notification danse_notification'
      langcode: he
      label: '[node:title]'
      published: true
      owner: '[node:field_users:0]'
    successors: {  }
  eca_new_entity_1:
    plugin: eca_new_entity
    label: '[node:title]'
    configuration:
      token_name: message1
      type: 'message request_signature'
      langcode: he
      label: '[node:title]'
      published: true
      owner: '[node:field_users:0]'
    successors:
      -
        id: eca_set_field_value
        condition: null
  eca_set_field_value:
    plugin: eca_set_field_value
    label: 'Entity: set field value'
    configuration:
      field_name: field_procedure
      field_value: '[node:nid]'
      method: 'set:clear'
      strip_tags: false
      trim: false
      save_entity: false
      object: message1
    successors:
      -
        id: eca_set_field_value_1
        condition: null
  eca_set_field_value_1:
    plugin: eca_set_field_value
    label: 'Entity: set field value'
    configuration:
      field_name: uid
      field_value: '[node:field_users:0:target_id]'
      method: 'set:clear'
      strip_tags: false
      trim: false
      save_entity: false
      object: message1
    successors:
      -
        id: eca_set_field_value_2
        condition: null
  eca_set_field_value_2:
    plugin: eca_set_field_value
    label: 'Entity: set field value'
    configuration:
      field_name: field_initiator
      field_value: '[node:author:uid]'
      method: 'set:clear'
      strip_tags: false
      trim: false
      save_entity: true
      object: message1
    successors:
      -
        id: action_send_email_action
        condition: null
