Triggers and workflow: too limited now

Author Message

Paul Borgermans

Tuesday 01 July 2003 9:48:29 am

Hello,

Maybe I missed some essentials about workflows/triggers (being an absolute beginner on this), mainly when and where they are executed:

- triggers are used per module/function, no way to discriminate between different parts of your site (be it sections, node trees, ...), it appears one should do this in the workflow

=> I think it would be much more logical and powerful to select sections/nodetrees and classes with the triggers ("create new trigger for section a if an object of class b is created by user c").

- to handle different parts differently (sounds logical?), you you should filter with the multiplexer event type which is limited to sections and classes (however, failed to do this in 3.1 for even launchhing a one event workflow, maybe a bug, not sure yet)

=> This creates a huge super-workflow which contains all the different workflows for different (unrelated) functionalities.

Somehow, I feel/think triggers are in the wrong place when they are limited to global module/actions (pre and post).

Any thoughts from more experienced people on this matter?

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 10:35:03
Script start
Timing: Jan 18 2025 10:35:03
Module start 'layout'
Timing: Jan 18 2025 10:35:03
Module start 'content'
Timing: Jan 18 2025 10:35:04
Module end 'content'
Timing: Jan 18 2025 10:35:04
Script end

Main resources:

Total runtime0.8353 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.0055 589.1484152.6406
Module start 'layout' 0.00560.0027 741.789139.4766
Module start 'content' 0.00820.8255 781.2656469.5313
Module end 'content' 0.83370.0016 1,250.79698.1406
Script end 0.8352  1,258.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3957160.0002
Check MTime0.00130.1596160.0001
Mysql Total
Database connection0.00080.100510.0008
Mysqli_queries0.791694.7669460.0172
Looping result0.00040.0508440.0000
Template Total0.802896.120.4014
Template load0.00230.269720.0011
Template processing0.800695.845420.4003
Template load and register function0.00010.013210.0001
states
state_id_array0.00090.108210.0009
state_identifier_array0.00130.160920.0007
Override
Cache load0.00180.2134130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.100010.0008
Fetch class attribute name0.00160.185920.0008
XML
Image XML parsing0.00050.057610.0005
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00090.1043170.0001
String conversion0.00000.003940.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs