Automatically create class entry with workflow??

Author Message

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_problem
http://ez.no/bugs/view/6133

paul

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 19 2025 01:07:35
Script start
Timing: Jan 19 2025 01:07:35
Module start 'layout'
Timing: Jan 19 2025 01:07:35
Module start 'content'
Timing: Jan 19 2025 01:07:36
Module end 'content'
Timing: Jan 19 2025 01:07:36
Script end

Main resources:

Total runtime0.9583 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.2891152.6406
Module start 'layout' 0.00610.0031 741.929739.4766
Module start 'content' 0.00920.9476 781.4063585.5938
Module end 'content' 0.95680.0015 1,367.000012.1250
Script end 0.9583  1,379.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3434160.0002
Check MTime0.00140.1436160.0001
Mysql Total
Database connection0.00070.074210.0007
Mysqli_queries0.902894.2088590.0153
Looping result0.00070.0685570.0000
Template Total0.921296.120.4606
Template load0.00210.217420.0010
Template processing0.919195.905620.4595
Template load and register function0.00010.008910.0001
states
state_id_array0.00130.132210.0013
state_identifier_array0.00090.094520.0005
Override
Cache load0.00170.1808370.0000
Sytem overhead
Fetch class attribute can translate value0.00080.079430.0003
Fetch class attribute name0.00120.128450.0002
XML
Image XML parsing0.00120.129330.0004
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00100.1092240.0000
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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs