abort workflow process

Author Message

Simone Reinald

Monday 12 January 2009 3:18:24 am

I got a workflow with 2 eventes.

The first event is of type customer event ( in extension/../eventtypes/event/myevent/myeventtype.php )

Inside the first event ( eZWorkflowEventType::execute() ) , I want to completely abort the workflow process, so that the second event will not execute.

I tryed some return statmens like:

return EZ_WORKFLOW_DONE
return EZ_WORKFLOW_TYPE_WORKFLOW_CANCELLED
...etc...

but this does not fit.

How to prevent the next event from being executed at all?

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 30 2025 22:23:36
Script start
Timing: Jan 30 2025 22:23:36
Module start 'layout'
Timing: Jan 30 2025 22:23:36
Module start 'content'
Timing: Jan 30 2025 22:23:36
Module end 'content'
Timing: Jan 30 2025 22:23:36
Script end

Main resources:

Total runtime0.0226 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1250151.2109
Module start 'layout' 0.00520.0033 739.3359220.6719
Module start 'content' 0.00850.0126 960.0078993.6484
Module end 'content' 0.02120.0014 1,953.656329.9922
Script end 0.0226  1,983.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.9596140.0002
Check MTime0.00104.3314140.0001
Mysql Total
Database connection0.00073.013310.0007
Mysqli_queries0.00198.458430.0006
Looping result0.00000.137010.0000
Template Total0.00104.510.0010
Template load0.00083.358910.0008
Template processing0.00031.117910.0003
Override
Cache load0.00052.223110.0005
General
dbfile0.00156.755780.0002
String conversion0.00000.027440.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