Forums / Developer / howto set up a collaborative validation in ez4 ?

howto set up a collaborative validation in ez4 ?

Author Message

Daniel Caillibaud

Friday 04 January 2008 2:15:59 am

Hi,

I'm looking for the best way of doing a collaborative validation :
- when a content is submited, all the members of the "'validators" group are notified
- when more than X validators have validate the content, without any reject, the content is automatically published.

I guess I have to look forward the workflow documentation, but perhaps someone have good advices (I'm noob on ez).

Maxime Thomas

Monday 07 January 2008 8:27:32 am

Hi !

You may need to develop a customized workflow event to evaluate the numbers of rejection or agreements on your content.
Because of the design of the workflow mecanism on version 3.X (and 4 I guess), you can only follow sequential steps in a workflow. So, here's another problem, you would like to send global notification to each member of a group and that your content would be accepted if only X members on Y has rated this content.

A solution :

Develop a workflow event for group acceptation :
- if the person agree : eZ Send a mail and increase a flag for this content on this workflow process somewhere.
- else the content is sent back in My Draft.

Develop a workflow event for waiting the right minimum numbers of acceptation for this content.
- if the number is not reached, wait.
- if the number is reached, publish.

And then you will hve this workflow :
- Step 1 : group acceptation set to Validators group
- Step 2 : Wainting for the minimum number of acceptation set to X.

If you do it, let me know, I will try it.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

eZ debug

Timing: Jan 18 2025 11:29:09
Script start
Timing: Jan 18 2025 11:29:09
Module start 'content'
Timing: Jan 18 2025 11:29:10
Module end 'content'
Timing: Jan 18 2025 11:29:10
Script end

Main resources:

Total runtime1.0032 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.9766180.8125
Module start 'content' 0.00780.8246 769.7891537.1172
Module end 'content' 0.83250.1705 1,306.9063333.0547
Script end 1.0030  1,639.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4383210.0002
Check MTime0.00170.1664210.0001
Mysql Total
Database connection0.00140.143610.0014
Mysqli_queries0.915491.25131910.0048
Looping result0.00200.19931890.0000
Template Total0.966696.420.4833
Template load0.00210.211920.0011
Template processing0.964596.143320.4822
Template load and register function0.00020.023310.0002
states
state_id_array0.00120.121410.0012
state_identifier_array0.00070.067220.0003
Override
Cache load0.00180.1770240.0001
Sytem overhead
Fetch class attribute can translate value0.00190.187430.0006
Fetch class attribute name0.00130.125330.0004
XML
Image XML parsing0.00100.096730.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.01241.2338270.0005
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs