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:
migrate_workflow | |-- \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