Workflow trigger on file upload

Author Message

Balaji GK

Thursday 21 May 2009 11:26:04 pm

Hi,

I am a newbie to eZPublish. I am trying to automate a workflow, which will get initiated automatically when a user tries to upload a file inside eZPublish content structure. Is it possible to implement this?

Operating System:Fedora Linux 9
PHP Version: 5.2.9

Regards,
Balaji.G.K

Ɓukasz Serwatka

Friday 22 May 2009 12:29:31 am

Hi, You could hook your workflow event to the content-publish-after. So it will be executed when e.g file or image object is created. That should also work with extension such as ezmultiupload and other extensions which use eZContentUpload class. Old tutorial http://ez.no/ezpublish/documentation/development/extensions/workflow_events which should give you some ideas. As a start point you might use RAD tool from eZ Publish Setup section in the administration interface.

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

Balaji GK

Friday 22 May 2009 2:06:51 am

Hi,
I was able to trigger workflow event after file or image creation and it also followed an approval process.But i would require a trigger to a workflow when I upload files using webdav or ftp.
Also deploy those files to an another shared file directory.Are there any default deployment scripts in eZ Publish?

Operating System:Fedora Linux 9
PHP Version: 5.2.9

Regards,
Balaji.G.K

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 20 2025 00:28:30
Script start
Timing: Jan 20 2025 00:28:30
Module start 'layout'
Timing: Jan 20 2025 00:28:30
Module start 'content'
Timing: Jan 20 2025 00:28:30
Module end 'content'
Timing: Jan 20 2025 00:28:30
Script end

Main resources:

Total runtime0.0141 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 590.2891152.6250
Module start 'layout' 0.00470.0023 742.914139.4453
Module start 'content' 0.00700.0056 782.359489.3203
Module end 'content' 0.01250.0015 871.679734.3047
Script end 0.0140  905.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.7558140.0002
Check MTime0.00107.1385140.0001
Mysql Total
Database connection0.00085.825510.0008
Mysqli_queries0.002014.299030.0007
Looping result0.00000.084610.0000
Template Total0.00139.010.0013
Template load0.00074.932210.0007
Template processing0.00064.003210.0006
Override
Cache load0.00053.412710.0005
General
dbfile0.00149.784880.0002
String conversion0.00000.050840.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