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