Forums / Developer / Object creation during a workflow

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

Object creation during a workflow

Author Message

Fabien Mas

Wednesday 19 May 2010 8:03:53 am

Hi,

I would like to create an object during a workflow event

I have develloped my own workflow event, which is called after updateobjectstate

If my new state has a special value, I would like to be redirect to my page creation.But if I redirect during the execute function without returning the eZWorkflowType::STATUS_ACCEPTED value, my state is changed to the precedent value.

$http->redirect('/my_module/object_creation/'.$objectID);
 eZExecution::cleanExit();

So I don't redirect and I try to put some parameters like

$process->RedirectUrl ='/my_module/object_creation/'.$objectID;

eZWorkflowType::STATUS_REDIRECT;

but nothing happens ..

Any idea how to do it ?

thx

Fabien