Forums / Developer / Approve Workflow not working

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

eZ debug

Timing: Jan 18 2025 04:14:56
Script start
Timing: Jan 18 2025 04:14:56
Module start 'content'
Timing: Jan 18 2025 04:14:56
Module end 'content'
Timing: Jan 18 2025 04:14:56
Script end

Main resources:

Total runtime0.1687 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.0047 589.1406180.8359
Module start 'content' 0.00470.0036 769.9766102.8828
Module end 'content' 0.00830.1603 872.8594530.7734
Script end 0.1687  1,403.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00311.8220200.0002
Check MTime0.00140.8144200.0001
Mysql Total
Database connection0.00050.280410.0005
Mysqli_queries0.132478.48241410.0009
Looping result0.00120.73711390.0000
Template Total0.160194.910.1601
Template load0.00070.393610.0007
Template processing0.159494.481610.1594
Override
Cache load0.00050.283910.0005
Sytem overhead
Fetch class attribute can translate value0.00050.288210.0005
XML
Image XML parsing0.00030.166610.0003
General
dbfile0.00171.0371200.0001
String conversion0.00000.002830.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