Forums / Developer / problem Controlling Wait until date WorkFlow

problem Controlling Wait until date WorkFlow

Author Message

John Mina

Tuesday 09 May 2006 5:34:27 am

Hello,
I am trying to make a wait until workflow for my magazine website for editors to publish stuff on the front page.
I read and did as it is said in the
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/workflow_events/wait_until_date
documentation page.

But when i created the triger as content/publish/before, i always get the articles in the pending items, while i am not able to remove it from there or approve or wahtever, and it never goes to the publishing even in the time i specify.
While when i used the content/publish/after triger , i found that the articles got published in time i click send for publishing which means it didn't wait until time

Can some one help me please ?
Thanks
John
www.HwHmag.com

Kristof Coomans

Tuesday 09 May 2006 5:52:04 am

Hello John

You need to use the content/publish/before trigger.

Did you run the cronjobs? They will do the timed publishing for you.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

John Mina

Tuesday 09 May 2006 6:05:23 am

Hi Kristof,
I have just saw the cronjob thing, and not able to run it cuz I am on cgi mode .
Is there any way to do it while i am on Cgi mode not a cli mode?
Knowing that soon we are upgrading to a hosting that can have the cli installed.

I didn't understand how many times i have to run the cronjobs any way ? is it only once when i add a new workflow or what ?

thnx
John

Ɓukasz Serwatka

Tuesday 09 May 2006 6:21:48 am

Hi John,

There is soultion, look on this documentation page (run cronjob via Webbrowser )
http://ez.no/products/ez_publish/documentation/configuration/configuration/cron_jobs

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Xavier Dutoit

Tuesday 09 May 2006 1:22:54 pm

And you have to run the cronjob regularly for wait until...

Each time it runs it looks if some content were supposed to be published because the date of publication is in the past.

The time between two runs define the precision of when the system is going to publish. If you want an article to be published at noon but can afford to have it published at 2pm only, then you don't need to run it more than every two hours.

X+

http://www.sydesy.com

John Mina

Tuesday 09 May 2006 1:50:21 pm

well,
These 2 documentation and points are very helpfull, now i put the cronjob code, so i think it runs every 2 hours as i copied the part specifying the 2 hours interval.
But i think i still have the article publih as soon as i click send for publishing.

Should i have the Triger set to : content/publish/after or before ?

Thanks a lot for help

Kristof Coomans

Tuesday 09 May 2006 11:31:29 pm

You need to use the content/publish/before trigger.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

John Mina

Wednesday 10 May 2006 12:03:27 am

Hi,
according to the server time it was 1:40 am ,so i made the publishing date at 1:45 am,
before that i made the triger as publish/before.

The results , i found that the article went to my pending items.
Souyld i wait the next time that the cronjob run , in order i have my pernding list empty ?

I will wait 2 hours and check and reinform you thanks

Kristof Coomans

Wednesday 10 May 2006 12:12:36 am

The item will be published next time the cronjobs run after 1:45 am. Of course you can also run them manually right after 1:45 am to see if it works. Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

John Mina

Sunday 11 June 2006 1:50:22 am

hi Kristof

it took me a while to find out how to set t up in the right way i mean the cronjob , but now it works very fine
thanks a lot

Currently i have a question is there a way to edit any of the articles that are pending for publishing according to the wait until workflow

what if i did a mistake ? how to delete it ?

Thanks for help
John

eZ debug

Timing: Jan 18 2025 16:09:34
Script start
Timing: Jan 18 2025 16:09:34
Module start 'content'
Timing: Jan 18 2025 16:09:34
Module end 'content'
Timing: Jan 18 2025 16:09:34
Script end

Main resources:

Total runtime0.2976 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.8438180.8125
Module start 'content' 0.00500.0127 768.6563105.9297
Module end 'content' 0.01770.2798 874.5859535.3750
Script end 0.2975  1,409.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.2189200.0002
Check MTime0.00140.4633200.0001
Mysql Total
Database connection0.00060.190810.0006
Mysqli_queries0.230377.39601410.0016
Looping result0.00140.48671390.0000
Template Total0.279593.910.2795
Template load0.00090.297810.0009
Template processing0.278693.597510.2786
Override
Cache load0.00060.199610.0006
Sytem overhead
Fetch class attribute can translate value0.00080.255710.0008
XML
Image XML parsing0.00030.088710.0003
General
dbfile0.01575.2897200.0008
String conversion0.00000.001830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs