Redirecting from custom workflows

Author Message

Kent Wakely

Thursday 29 May 2003 9:31:26 am

OK. The documentation for custom workflows says that you can have custom workflows return

WORKFLOW_TYPE_STATUS_REDIRECT

which will dictates the following, according to the docs:

"Workflow engine should interrupt executing the workflow and redirect the user to a specified page. In case of this status the workflow event should set up some internal variables. (Will be explaned below)."

The problem is, as far as I can tell, those variables are *not* explained below or anywhere else.

So what are the variables we need to set up to allow redirection from custom workflows to work?

Thanks.

- kent

Selmah Maxim

Thursday 29 May 2003 9:57:02 am

Hi

try $RedirectUrl = "content/whatever";

Kent Wakely

Thursday 29 May 2003 10:19:34 am

Tried that. Didn't work. Is that actually working for you, or was it just an educated guess?

Thanks.

- kent

Selmah Maxim

Thursday 29 May 2003 11:30:50 am

i had tried befor, maybe i missed the spell !

i`ll check it again !

Selmah Maxim

Thursday 29 May 2003 5:10:14 pm

sorry for late , i was sleepy :)

here is, just test on version 3.1 , work fine for me !

$process->RedirectUrl = "/content/view/full/25";
return EZ_WORKFLOW_TYPE_STATUS_REDIRECT ;

Kent Wakely

Thursday 05 June 2003 8:49:36 am

Thanks much for your help, Selmah.

The problem here may be that we're running a 3.0 EZ installation (what's working for you still isn't working for me).

Can someone from EZ Systems perhaps confirm that WORKFLOW_TYPE_STATUS_REDIRECT doesn't quite work right in version 3.0 (or tell me that it works fine and that the problem is with my code).

Thanks.

- kent

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 11:37:10
Script start
Timing: Jan 18 2025 11:37:10
Module start 'layout'
Timing: Jan 18 2025 11:37:10
Module start 'content'
Timing: Jan 18 2025 11:37:12
Module end 'content'
Timing: Jan 18 2025 11:37:12
Script end

Main resources:

Total runtime1.6566 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 587.9219152.6250
Module start 'layout' 0.00910.0040 740.546939.4609
Module start 'content' 0.01311.6419 780.0078498.0859
Module end 'content' 1.65500.0015 1,278.093812.1563
Script end 1.6565  1,290.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2050160.0002
Check MTime0.00140.0831160.0001
Mysql Total
Database connection0.00270.164310.0027
Mysqli_queries1.589295.9333660.0241
Looping result0.00080.0461640.0000
Template Total1.600096.620.8000
Template load0.00250.151820.0013
Template processing1.597596.433320.7988
Template load and register function0.00030.016110.0003
states
state_id_array0.00360.216210.0036
state_identifier_array0.00160.095720.0008
Override
Cache load0.00200.1177320.0001
Sytem overhead
Fetch class attribute can translate value0.00060.036820.0003
Fetch class attribute name0.00270.160360.0004
XML
Image XML parsing0.00030.017220.0001
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00080.0496100.0001
String conversion0.00000.000640.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs