Forums / Developer / Redirecting and cancelling the workflow in workflow event

"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".

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.