Workflow user register

Author Message

Claudia Kosny

Friday 20 October 2006 9:37:32 am

Hi there

I have an user which contains out of two objects - one that holds the address and the account and another one which holds data that the user is not allowed to change once he provided it.

During registration the user must provide the data for both objects, otherwise the registration should be cancelled. The idea I had was to first create the object with the account and address data and then go the next template where the user is asked for the other required data (it is to much info for one page anyway). Then the second object would be placed as a child of the account object.

The problem is that I need to remove the account object if the second object was not created successfully.

The easiest way would be to simply redirect to the edit of the second object but I don't know how to remove the account object if the second object is not published.

To avoid publishing the firs object before the second one I have tried to create a workflow which is triggered on user register. This workflow rejects everything (for testing purposes) but the registration process still takes place like there is no workflow at all.I know that the workflow is executed because of the debug messages I placed in there. Any idea how to start debugging this?
Another problem with the workflow would be that I do not have the node id for the placement of second object as the account object is not published yet.

Any tips or hints are very welcome

Claudia

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

Main resources:

Total runtime0.7948 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 587.9063152.6250
Module start 'layout' 0.00420.0023 740.531339.4297
Module start 'content' 0.00650.7869 779.9609405.6484
Module end 'content' 0.79340.0014 1,185.60948.1875
Script end 0.7948  1,193.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3683160.0002
Check MTime0.00120.1529160.0001
Mysql Total
Database connection0.00070.089710.0007
Mysqli_queries0.760695.6940460.0165
Looping result0.00040.0484440.0000
Template Total0.771197.020.3855
Template load0.00200.250420.0010
Template processing0.769196.760220.3845
Template load and register function0.00020.028410.0002
states
state_id_array0.00060.079510.0006
state_identifier_array0.00140.172020.0007
Override
Cache load0.00160.2063120.0001
Sytem overhead
Fetch class attribute can translate value0.00050.059510.0005
Fetch class attribute name0.00090.115710.0009
XML
Image XML parsing0.00010.012410.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0787100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs