Forums / Developer / Move a node in a workflow

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Move a node in a workflow

Author Message

Daniel Jüdel

Friday 22 April 2005 1:47:56 am

I have a problem with move a node. If I only move a node (not in workflow) there are no problems. But if I move a node in a workflow (trigger: content / after / publish) the nodeID will be changed. But the nodeID doesn't change in the workflow. The nodeID will be changed if I edit the content later.

The workflow has the following code in function execute():

$parameters = $process->attribute('parameter_list');
$objectID = $parameters['object_id'];
$object = eZContentObject::fetch($objectID);
$node = eZContentObjectTreeNode::fetch($object->attribute('main_node_id'));
$node->move(700);    // static for testing

Can anyone help?