Share » Forums » Developer » Example for...

Example for eZWorkflowType::STATUS_REDIRECT

Example for eZWorkflowType::STATUS_REDIRECT

Tuesday 22 February 2011 5:36:31 am - 2 replies

Author Message

Olav Frengstad

Thursday 24 February 2011 7:01:44 am

$The eZTrigger::runWorkflow(); does actions based on workflow return value.

You would need to set the RedirectUrl property of the eZWorkflowProcess.

something like this i guess:

public function execute( $process, $event ) {
   $process->RedirectUrl = 'http://ez.no';

   return eZWorkflowType::STATUS_REDIRECT;
 }

Eirik Alfstad Johansen

Thursday 24 February 2011 9:50:06 am

Thanks for the tip, Olav. It worked like a charm. :)

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu