How to create a workflow state field programmatically?
You should do it with entity_reference and target_type to be workflow, it should work like that. And with handler_settings you can set your type of workflow.