My workflow and states weren't migrated from D6 so I re create them by hand. But I need to use them on another D8 website, and I don't find the way to globally export them, only state by state...boring thing.

So I'm looking for a globally way (not sure about what feature does) and/or a way to migrate entire workflow from my D6 website.


EDIT: I found an example for D7 and trying to apply it to D6 but it's not fully functionnal. My starting point is here (similar code expect some of missing DB fields in D6) and I done a module like this:

      |-- \src\Plugin\migrate\source\WorkflowMigrate.php
      |-- \config\install\migrate_plus.migration.upgrade_d6_workflow.yml
      |-- migrate_workflow.info.yml

Activation of the module is good and it find my records in the workflow_node_history table of D6.

Once migration created, I run it and I get this error:

The "" entity type does not exist. (/var/www/drupal-8/core/lib/Drupal/Core/Entity/EntityTypeManager.php:133)                                                          [error]
Processed 30 items (0 created, 0 updated, 30 failed, 0 ignored) - done with 'workflow'                                                                                [status]
workflow Migration - 30 failed.  

How can I fix this ? Thanks

  • Features is the only thing that will create exportable configuration for use on different installations. It will get all dependent configuration and remove UUIDs etc so that it can be imported to other sites. Try it. – Kevin Nov 2 '18 at 14:28
  • Thanks, I'm testing a way to migrate workflow state for each nodes.See Edit. – webmaster pf Nov 2 '18 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.