Redirecting and cancelling the workflow in workflow event

Author Message

Igor Vrdoljak

Tuesday 16 June 2009 4:31:16 am

Hi all

I am trying to redirect in a workflow event. Which is the right way of doing this if I want to cancel the workflow in process?

I see there is a STATUS_WORKFLOW_CANCELLED return code, but than I get an ugly error page, which I want to avoid. Another possibility is using STATUS_REDIRECT, but then the workflow remains in workflow/processlist.

Is there a way of redirecting, and cancelling the workflow in the same step?

Thnx in advance...

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

Gunnstein Lye

Thursday 30 July 2009 7:41:23 am

See this issue (not solved yet):
http://issues.ez.no/IssueView.php?Id=14939

Gunnstein Lye

Tuesday 08 September 2009 5:40:39 am

I have attached a possible solution to the issue tracker. Please test. I recommend you subscribe to the issue, then you will be notified about all changes automatically.

*- pike

Friday 26 November 2010 4:18:18 am

So what you're saying is, the below quote should do the job ? Because it doesnt redirect in my case - this is an event trigger on content/publish.

 return eZWorkflowEventType::STATUS_REDIRECT;

---------------
The class eZContentObjectTreeNode does.

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

Main resources:

Total runtime0.6438 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 591.8203152.6563
Module start 'layout' 0.00620.0027 744.476639.5078
Module start 'content' 0.00890.6334 783.9844579.5703
Module end 'content' 0.64230.0015 1,363.554712.0938
Script end 0.6437  1,375.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5152160.0002
Check MTime0.00130.1982160.0001
Mysql Total
Database connection0.00110.173110.0011
Mysqli_queries0.589991.6292620.0095
Looping result0.00070.1060600.0000
Template Total0.611595.020.3057
Template load0.00220.334620.0011
Template processing0.609394.648520.3047
Template load and register function0.00010.016910.0001
states
state_id_array0.00090.147010.0009
state_identifier_array0.00060.098220.0003
Override
Cache load0.00180.2725190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.078030.0002
Fetch class attribute name0.00160.241660.0003
XML
Image XML parsing0.00250.383730.0008
class_abstraction
Instantiating content class attribute0.00000.002470.0000
General
dbfile0.00220.3415220.0001
String conversion0.00000.001240.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
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: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs