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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:58:51
Script start
Timing: Jan 18 2025 15:58:51
Module start 'layout'
Timing: Jan 18 2025 15:58:51
Module start 'content'
Timing: Jan 18 2025 15:58:52
Module end 'content'
Timing: Jan 18 2025 15:58:52
Script end

Main resources:

Total runtime0.8672 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.0469152.6250
Module start 'layout' 0.00810.0038 741.671939.4453
Module start 'content' 0.01190.8537 781.1172400.1016
Module end 'content' 0.86560.0016 1,181.21888.1641
Script end 0.8672  1,189.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4711160.0003
Check MTime0.00130.1517160.0001
Mysql Total
Database connection0.00070.077310.0007
Mysqli_queries0.826995.3572460.0180
Looping result0.00040.0515440.0000
Template Total0.830895.820.4154
Template load0.00210.246520.0011
Template processing0.828695.552220.4143
Template load and register function0.00020.022610.0002
states
state_id_array0.00100.118810.0010
state_identifier_array0.00100.109620.0005
Override
Cache load0.00160.178970.0002
Sytem overhead
Fetch class attribute can translate value0.00060.073310.0006
Fetch class attribute name0.00060.073010.0006
XML
Image XML parsing0.00010.015810.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00140.1590100.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs