Object creation during a workflow

Author Message

Fabien Mas

Wednesday 19 May 2010 8:03:53 am

Hi,

I would like to create an object during a workflow event

I have develloped my own workflow event, which is called after updateobjectstate

If my new state has a special value, I would like to be redirect to my page creation.But if I redirect during the execute function without returning the eZWorkflowType::STATUS_ACCEPTED value, my state is changed to the precedent value.

$http->redirect('/my_module/object_creation/'.$objectID);
 eZExecution::cleanExit();

So I don't redirect and I try to put some parameters like

$process->RedirectUrl ='/my_module/object_creation/'.$objectID;

eZWorkflowType::STATUS_REDIRECT;

but nothing happens ..

Any idea how to do it ?

thx

Fabien

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 29 2025 23:51:43
Script start
Timing: Jan 29 2025 23:51:43
Module start 'layout'
Timing: Jan 29 2025 23:51:43
Module start 'content'
Timing: Jan 29 2025 23:51:43
Module end 'content'
Timing: Jan 29 2025 23:51:43
Script end

Main resources:

Total runtime0.0121 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1406151.2109
Module start 'layout' 0.00490.0021 739.351636.6641
Module start 'content' 0.00700.0041 776.015686.2656
Module end 'content' 0.01110.0010 862.281329.9922
Script end 0.0121  892.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001815.1541140.0001
Check MTime0.00097.1306140.0001
Mysql Total
Database connection0.00097.423610.0009
Mysqli_queries0.002016.741130.0007
Looping result0.00000.082610.0000
Template Total0.00086.410.0008
Template load0.00064.908510.0006
Template processing0.00021.417910.0002
Override
Cache load0.00043.225110.0004
General
dbfile0.00108.281180.0001
String conversion0.00000.051140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs