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

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 16:26:13
Script start
Timing: Jan 18 2025 16:26:13
Module start 'layout'
Timing: Jan 18 2025 16:26:13
Module start 'content'
Timing: Jan 18 2025 16:26:14
Module end 'content'
Timing: Jan 18 2025 16:26:14
Script end

Main resources:

Total runtime0.6317 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.0469152.6406
Module start 'layout' 0.00760.0036 740.687539.4766
Module start 'content' 0.01120.6190 780.1641532.0234
Module end 'content' 0.63020.0015 1,312.18758.4375
Script end 0.6316  1,320.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5563160.0002
Check MTime0.00160.2466160.0001
Mysql Total
Database connection0.00080.128210.0008
Mysqli_queries0.584292.4786540.0108
Looping result0.00050.0784520.0000
Template Total0.600895.120.3004
Template load0.00230.362620.0011
Template processing0.598594.752220.2993
Template load and register function0.00020.028210.0002
states
state_id_array0.00080.133510.0008
state_identifier_array0.00100.160220.0005
Override
Cache load0.00190.2973240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.114320.0004
Fetch class attribute name0.00100.160530.0003
XML
Image XML parsing0.00060.098320.0003
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00090.1363160.0001
String conversion0.00000.001740.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/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs