Forums / Developer / abort workflow process

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?