Forums / Install & configuration / 2 workflows on the same trigger

2 workflows on the same trigger

Author Message

Pascal France

Thursday 11 February 2010 9:48:12 am

Hi,

1°/ I would like to know if we can link 2 workflows ("Moderation of comments - Event/Approve" and "Delay publish - Event/Wait until") with the same trigger (content/publish/before) ?

What should I do for my 2 workflow work ?

2°/ On an ez 42 webin test installation I try to setup a single worflow with "Wait until" event. But it doesen't work (hide and unpublidh work fine).

I try to setup this workflow for the defaut article (ID=17) class object which comes with ezwebin.

a/ I create, in the "Standard" workflow group, a new process named "Attendre"

b/ I select the "Article" class (and click to "Update attributs")

c/ I select the "Publish date" attribut (ans click to "Select attribut")

d/ I validate with Ok

e/ In the Trigger page I link "Attendre" with "Content/publidh/before"

When I create a new article and I specify a publish date, the article is sent to My account->Pendding elements.

But the command:

php runcronjobs -s test

<code>

Using siteaccess test for cronjob
Running cronjobs/unpublish.php
Running cronjobs/rssimport.php
Running cronjobs/indexcontent.php
Starting processing pending search engine modifications
Done
Running cronjobs/hide.php
Running cronjobs/subtreeexpirycleanup.php
Running cronjobs/internal_drafts_cleanup.php
Cleaning up internal drafts...
Cleaned up 0 internal drafts
Running cronjobs/indexcontent.php
Starting processing pending search engine modifications
Done
Running cronjobs/hide.php
Running cronjobs/subtreeexpirycleanup.php
Running cronjobs/internal_drafts_cleanup.php
Cleaning up internal drafts...
Cleaned up 0 internal drafts
</code>

has no effect and the article is never published.

I don't understand what is the matter.

Thank's for your help

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Robin Muilwijk

Thursday 25 February 2010 11:29:02 am

Hi Pascal,

Have you been able to solve your problem yet? If not, what if you try running the "runcronjobs -frequent" part? The frequent part of the cronjobs runs the workflow.php. (http://ez.no/doc/ez_publish/technical_manual/4_x/features/cronjobs/configuring_cronjobs).

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Gaetano Giunta

Thursday 25 February 2010 3:37:34 pm

As Robin stated, by default the workflow cronjob is part of the frequent group (or 'part', in ez parlance)

the command is: php runcronjobs -s test frequent

As for wait+approve, just add the two events in the same workflow. Put approve first, otherwise approvers will have to wait before being able to approve. The end result is that content will have to be approved first and then wait until the established date before it is shown.

Principal Consultant International Business
Member of the Community Project Board

Pascal France

Friday 26 February 2010 7:17:11 am

Thank's Robin and Gaetano ;-)

Of course, all is written in the doc...

About my first point (2 workflows with 1 trigger) I think I was not clear enough.

In fact, I have some objects (class object = class_one) which have to be approuved and other ones (class object = class_tow) which have to be delayed.

And I don't know how to do that.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Friday 26 February 2010 7:34:56 am

In fact, the solution proposed by Gaetano works perfectly for what I wish to achieve.

Thanks again for your help.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

eZ debug

Timing: Jan 18 2025 10:41:05
Script start
Timing: Jan 18 2025 10:41:05
Module start 'content'
Timing: Jan 18 2025 10:41:05
Module end 'content'
Timing: Jan 18 2025 10:41:06
Script end

Main resources:

Total runtime0.9080 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.8281180.8281
Module start 'content' 0.00680.7419 768.6563611.7813
Module end 'content' 0.74860.1593 1,380.4375337.3828
Script end 0.9079  1,717.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4631210.0002
Check MTime0.00170.1869210.0001
Mysql Total
Database connection0.00140.151010.0014
Mysqli_queries0.822090.53122020.0041
Looping result0.00240.26802000.0000
Template Total0.882497.220.4412
Template load0.00200.223520.0010
Template processing0.880496.953520.4402
Template load and register function0.00020.025110.0002
states
state_id_array0.00130.144210.0013
state_identifier_array0.00070.077420.0004
Override
Cache load0.00190.2050620.0000
Sytem overhead
Fetch class attribute can translate value0.00120.134640.0003
Fetch class attribute name0.00160.181670.0002
XML
Image XML parsing0.00200.219540.0005
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00310.3390350.0001
String conversion0.00000.000730.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
5content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs