I have a content type that uses node field. I am trying to programmatically change state of node and add comment to the transition. I've looked all through D.o and workflow module documentation but don't see an example of doing this. I am currently changing state by loading the noded updating the SID of saving it. I feel this approach is kind of sloppy and don't see how I would add comment to the transition if this is the proper way to do it.

Comments

Kcannick created an issue. See original summary.

johnv’s picture

Did you check the open issues on this matter?
Also the workflow.api.php file has been amended.

johnv’s picture

See also workflow_execute_transition() and it's documentation.

johnv’s picture

Version: 7.x-2.8 » 7.x-2.x-dev
Status: Active » Closed (duplicate)