Approve Workflow not working

Author Message

Sandeep Kadam

Thursday 16 September 2010 5:58:59 am

Hello All

I have created an Approve workflow in which edits made by an editor will wait for approval of administrator to get publish. Every thing works fine.

  • Editor Creates / Edits Object.
  • It gets stored in Editor's pending item.
  • Admin gets that object in Collaboration / Item list as "<object name> awaits your approval".
  • When admin Approve it that stays in Inbox of admin with message "The content object <object name> was approved and will be published when the publishing workflow continues".

I don't no what to do next can any one help me in this how can I publish that object after approving.

Thank You,

Sandeep Kadam

Abdelkader RHOUATI

Thursday 16 September 2010 7:12:54 am

Hi Sandeep,

To publish the content approved, you must run a cronjob (or planify it) like this :


[user@directorie of project ez]$ php runcronjobs.php frequent

It's will execute two script :

  1. notification.php : to notify users by sending email
  2. workflow.php : to execute all actions related with workflow, including the publication of approved items.

Tks

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

Sandeep Kadam

Thursday 16 September 2010 10:41:07 pm

Hello Abdelkader,

Thanks man, its working properly now.

Thank You,
Sandeep Kadam

Sandeep Kadam

Wednesday 22 September 2010 10:44:35 pm

Hello,

I did with using above command everything is working properly, but there is one problem which I am facing is that whenever editor create an object, after approving that object by administrator everytime that commands ["[user@directorie of project ez]$ php runcronjobs.php frequent"] needs to fire.
I don't want to execute that command again and again.
Is there any solution so that command will fire automatically or after the particular time frame.
As executing command every time on Live Server will be a hectic task

Thank you,
Sandeep Kadam

Abdelkader RHOUATI

Thursday 23 September 2010 1:38:09 am

Hi,

Notings to do in ezpublish

you have planned the execution of ["[user@directorie of project ez]$ php runcronjobs.php frequent"] on your hoster,

For example, to plan on a Linux OS, you must use a crontab, see http://www.linuxweblog.com/crotab-tutorial (you can also ask Mr goolge for more information depending on your system :) )

TKS

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

Sandeep Kadam

Thursday 23 September 2010 5:00:51 am

Hello Abdelkader,

Great Help !!!!
Thanks a lot....

Thank You,
Sandeep Kadam

FX Ratnam

Monday 25 October 2010 6:41:24 am

Hi,

I need to select people to valid publish workflow instead of groups. But we cannot do that with ezPublish default settings.

Could you tell me if we could change this settings please ?

Sorry for my bad english... Thanks

Best regards,

Fx

Peter Keung

Monday 25 October 2010 7:14:18 am

"

Hi,

I need to select people to valid publish workflow instead of groups. But we cannot do that with ezPublish default settings.

Could you tell me if we could change this settings please ?

Sorry for my bad english... Thanks

Best regards,

Fx

"

How about creating a new group whose sole purpose is to contain "approvers"? Then you can just add secondary locations to existing user objects into that group.

Also, in the future, please create a new forum topic if your post does not directly relate to the topic. Thanks!

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

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 30 2025 21:29:37
Script start
Timing: Jan 30 2025 21:29:37
Module start 'layout'
Timing: Jan 30 2025 21:29:37
Module start 'content'
Timing: Jan 30 2025 21:29:37
Module end 'content'
Timing: Jan 30 2025 21:29:37
Script end

Main resources:

Total runtime0.0249 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1328151.2109
Module start 'layout' 0.00520.0041 739.3438220.6875
Module start 'content' 0.00930.0140 960.03131,006.8047
Module end 'content' 0.02330.0015 1,966.835941.9922
Script end 0.0249  2,008.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.1644140.0002
Check MTime0.00124.7840140.0001
Mysql Total
Database connection0.00062.242810.0006
Mysqli_queries0.00249.583430.0008
Looping result0.00000.051610.0000
Template Total0.00124.710.0012
Template load0.00093.678410.0009
Template processing0.00020.995610.0002
Override
Cache load0.00072.696210.0007
General
dbfile0.00135.252780.0002
String conversion0.00000.037340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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