Workflow Update Basket

Author Message

Wenzel Wondra

Tuesday 07 April 2009 10:15:16 am

Hi @all,

I made a WorkflowEventType and assigned it to "updatebasket/before"... Now I check some attributes of the basket and if something is not ok, I need to return to the basket and set a message there.

function execute( $process, $event )
{
...
$tpl = templateInit();
$tpl->setVariable('myeventerror' , 'errorcode');
return eZWorkflowType::STATUS_REJECTED;
}

I get redirected to the basket, but $myeventerror is not available :(

What am I doing wrong?
Any help would be appreciated :)

regards,
wewo

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 18 2025 15:11:35
Script start
Timing: Jan 18 2025 15:11:35
Module start 'layout'
Timing: Jan 18 2025 15:11:35
Module start 'content'
Timing: Jan 18 2025 15:11:35
Module end 'content'
Timing: Jan 18 2025 15:11:35
Script end

Main resources:

Total runtime0.0233 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0100 589.0234152.6250
Module start 'layout' 0.01000.0042 741.648439.4297
Module start 'content' 0.01420.0069 781.078185.3047
Module end 'content' 0.02100.0022 866.382830.3047
Script end 0.0232  896.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.9113140.0002
Check MTime0.00135.7357140.0001
Mysql Total
Database connection0.00146.082110.0014
Mysqli_queries0.004217.988130.0014
Looping result0.00000.076910.0000
Template Total0.00177.410.0017
Template load0.00104.083810.0010
Template processing0.00083.288610.0008
Override
Cache load0.00072.794610.0007
General
dbfile0.00208.796880.0003
String conversion0.00000.064640.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