parameters validation and worflows

Author Message

Guillaume

Friday 25 April 2008 2:17:12 am

Hi!

I'm trying to develop something like "placeusers" extension : move user to a specific user group. I want to move user according to a value filled in register form.

I want this value be checked before the worlflow process (a "placeusers" like process) launched.

How can I check this value and add entry in validation array in register.tpl? I believe that when validation fails, register.tpl is processing in register.php file module and returned but I can't understand how to modify register.tpl call parameters and add vallidation errors messages.

Second question, what workflowEventType return codes do mean? I tried some of them, and I never saw a difference between rejected, none or accepted (except a warning for none status). I belived that rejected status cancel the worflow process and go back to the page which call this worflow, in my case to register form.
Is there some doc or info about these return codes?

thanks

Guillaume

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 31 2025 07:38:09
Script start
Timing: Jan 31 2025 07:38:09
Module start 'layout'
Timing: Jan 31 2025 07:38:09
Module start 'content'
Timing: Jan 31 2025 07:38:09
Module end 'content'
Timing: Jan 31 2025 07:38:09
Script end

Main resources:

Total runtime0.0137 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.0053 588.1406151.2109
Module start 'layout' 0.00530.0021 739.351636.6641
Module start 'content' 0.00750.0044 776.015686.0469
Module end 'content' 0.01190.0017 862.062529.9922
Script end 0.0136  892.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.7433140.0002
Check MTime0.00118.2717140.0001
Mysql Total
Database connection0.00075.258110.0007
Mysqli_queries0.002215.779630.0007
Looping result0.00000.080210.0000
Template Total0.00118.210.0011
Template load0.00096.538210.0009
Template processing0.00021.630610.0002
Override
Cache load0.00064.534410.0006
General
dbfile0.00032.242880.0000
String conversion0.00000.057640.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