id: d7_workflow_scheduled_transition
label: Migrate workflow scheduled transition
audit: true
migration_tags:
  - Drupal 7
  - Workflow
source:
  plugin: d7_workflow_scheduled_transition
process:
  tid: tid
  entity_type:
    -
      plugin: skip_on_value
      source: entity_type
      method: row
      not_equals: true
      value: node
  entity_id:
    -
      plugin: migration_lookup
      migration: d7_node
      source: nid
  field_name: field_name
  langcode: language
  delta: delta
  from_sid:
    -
      plugin: migration_lookup
      migration: d7_workflow_state
      source: old_sid
  to_sid:
    -
      plugin: migration_lookup
      migration: d7_workflow_state
      source: sid
  uid:
    plugin: migration_lookup
    migration: d7_user
    source: uid
  timestamp: scheduled
  comment: comment
  wid: wid
destination:
  plugin: 'entity:workflow_scheduled_transition'
migration_dependencies:
  required:
    - d7_node
    - d7_user
    - d7_workflow_state
  optional:
    - d7_node
    - d7_user
    - d7_workflow_state
