Forums / Developer / Automatically create class entry with workflow??
Fabricio Guerrero
Wednesday 04 May 2005 1:45:18 am
Hi,
The case is once a user registers we need to automatically create objects(class entries) upon the creation of users. Of course since these have to be automatically created via workflow their values will either be empty/default values and thees classes need to be stored in a hierarcy like: / user accounts/ user John doe / personal settings A / user accounts/ user John doe / personal settings B/ user accounts/ user John doe / personal settings C
Ok, everything is undertandable but i've bein trying to figure out for the last few days how to setup this type of workflow and just cant seem to get it...
any help, please???
http://www.solobromasychistes.com <<Joomla Site :P http://www.recipesforhealthyfood.com/ <<Drupal Site :P http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...
kracker (the)
Thursday 05 May 2005 3:46:40 am
I could be wrong here but ...
Wouldn't you want to create a workflow that (while it doesn't prompt the user for any added details) would allow you to add code to create the objects upon user registration / creation (or just afterwards, behind the scenes to the user)
It sounds like it would take a bit of custom extention / workflow development to build a (for example) eZCreateObject Workflow.
<i>References: http://www.ez.no/ez_publish/documentation/development/extensions/workflow_events/wrapping_event http://www.ez.no/ez_publish/documentation/development/extensions/workflow_events/introduction_to_events http://www.ez.no/ez_publish/documentation/development/extensions/workflow_events/creating_a_new_event http://www.ez.no/ez_publish/documentation/reference/modules/workflow http://ez.no/community/contribs/workflow/mailinglist_workflow_event http://www.ez.no/community/forum/developer/workflow_user_registration http://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_guestbook/implementing_an_approval_mechanism http://www.ez.no/community/forum/developer/workflow_user_registration</i>
//kracker
Eyedea & Abilities : Just A Reminder
Member since: 2001.07.13 || http://ezpedia.se7enx.com/
Paul Forsyth
Thursday 05 May 2005 3:56:24 am
Fabricio,
Watch out for a permissions problem when you do this. Theres a patch in the public mailing list but you have make sure your disable caching in your user templates. That 'ttl' line...
http://lists.ez.no/pipermail/sdk-public/2005-January/000834.html http://ez.no/community/forum/developer/dynamic_user_content_permission_problemhttp://ez.no/bugs/view/6133
paul