Hi!

I create two different workflows (WFA and WFB) and attach to a particular node type two Workflow fields corresponding to this workflows (FieldA and FieldB). When attempting to create a node FieldB saves its state correctly, and FieldA remains in the "creation" state. The error "The transition from 4 to 34 is not allowed." is given, in which sid = 4 corresponds to the "creation state" of the WFB, and sid = 34 is a state of WFA, which I wanted for the FieldA. After that on the edit page for the created node options for FieldA contain only states from WFB

So the question is the following. Is it a bug or a feature? ) Is it planned to separate Workflow Field state from node state, so that node can have a state in different workflows at the same time?

Thank you for any comments,
Dima.

Comments

dimapu’s picture

Version: 7.x-2.x-dev » 7.x-2.0-beta12
johnv’s picture

I think you missed #2102409: [META] Support multiple workflow_fields per Node type (Entity bundle).

In theory, it should be possible to support 2 workflow_fields per entity type.
However, converting the old workflow_node to only one workflow_field was a challenge already.
I didn't test this either. My main focus is on completing all functionality for only one field and then to release version 2.0.

You will encounter problems on some use cases (although 'create a node' is a pretty basic one :-( ). If I encountered such a case in code, I entered a 'todo' comment. (You can grep them, if you like.)

So, to answer your question, this is a 'missing feature'. Any patches are welcome!
(Please set this issue to 'duplicate' if this answer is enough for now.)

dimapu’s picture

Thank you!

dimapu’s picture

Status: Active » Closed (duplicate)