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.