Forums / General / Multiple workflows under a single trigger

Multiple workflows under a single trigger

Author Message

Sebastiaan van der Vliet

Thursday 10 July 2003 1:50:12 pm

Hi,

How do I publish multiple workflows under the <content publish before> trigger? I have several sections, and each section needs approval from a different editor. I tried using the Event/multiplexer but that does not seem to work (I get an error).

Thanks for your help,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Jo Henrik Endrerud

Thursday 10 July 2003 11:47:43 pm

Hi Sebastian
Are you using eZ publish 3.0 or 3.1? The multiplexer was not ready for use in 3.0 and we have therefore no way of doing this. The multiplexer was finished for 3.1 and should work for what you are requesting. What is the error message you get?

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Sebastiaan van der Vliet

Friday 11 July 2003 4:39:55 am

Hi,

Im using version 3.1-1 Revision: 2703. The error I get is:

Fatal error: Call to a member function on a non-object in /var/antenna/www/irc/public_html/kernel/classes/workflowtypes/event/ezmultiplexer/ezmultiplexertype.php on line 177
Fatal error: eZ publish did not finish it's request

Thanks for your help.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Jo Henrik Endrerud

Friday 11 July 2003 4:53:27 am

This is strange. I can't reproduce this error here. The error message you are refering to describes that the event can't information about the current node, but that doesn't make sense...
Are you having many muliplexer in a row in your event? If so, can you try to make a new workflow with only one multiplexer and se if you get the same error? What settings have you set on the multiplexer?

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Sebastiaan van der Vliet

Friday 11 July 2003 5:21:23 am

Hi, I have a single multiplexer. i tried a couple of combinations and currently I have:

sections: any
classes: any
users without workflow ids: none
workflow to run: Other workflow that runs successfully standalone, but not in combination with multiplexer.

I wondered if my data caused the error so i emptied ez_approve table, workflow tables and notification tables. Multiplex still did not work.

Kind regards,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Jo Henrik Endrerud

Friday 11 July 2003 5:58:04 am

This is very strange. Does this error happen on every node, or just on some classes? Does this also happen for all users (try to log in as admin and check if it happen here as well)?

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Sergiy Pushchin

Friday 11 July 2003 7:53:40 am

Another way to do it, is to put couple of approval events one after another in one workflow, after that you can set up each of them for different editors and sections, for example first one is for section 1 and editor is user_1 for second you set up section 2 and user 2, the only problem in this case is that setting should not intersect.....

Dariusz Zbikowski

Friday 11 July 2003 12:35:12 pm

Probably the bug is in kermel/classes/workflow.php

function fetchEventIndexed( $index )

- return $list[ $index -1 ]["id"];
+ return $list[0]["id"];

Best regards,
Darek

Vincent Saulnier

Thursday 31 July 2003 6:19:02 am

I have the same problem, does somebody have an answer for us?

Willie Seabrook

Tuesday 26 August 2003 5:02:07 am

Same problem also.... everyone has this problem and anyone know how to fix?

Regards,
Willie

Jo Henrik Endrerud

Wednesday 27 August 2003 4:40:57 am

We have had some problems reproducing this bug, but it is now fixed in currect svn and will be available in the next release.

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

eZ debug

Timing: Jan 18 2025 05:09:22
Script start
Timing: Jan 18 2025 05:09:22
Module start 'content'
Timing: Jan 18 2025 05:09:22
Module end 'content'
Timing: Jan 18 2025 05:09:22
Script end

Main resources:

Total runtime0.1625 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.0064 589.2656180.8203
Module start 'content' 0.00640.0044 770.0859105.8984
Module end 'content' 0.01080.1516 875.9844534.1250
Script end 0.1624  1,410.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00392.4077200.0002
Check MTime0.00160.9625200.0001
Mysql Total
Database connection0.00060.372910.0006
Mysqli_queries0.114170.21251410.0008
Looping result0.00130.79381390.0000
Template Total0.151393.110.1513
Template load0.00090.552410.0009
Template processing0.150492.557910.1504
Override
Cache load0.00060.390810.0006
Sytem overhead
Fetch class attribute can translate value0.00080.478810.0008
XML
Image XML parsing0.00040.260210.0004
General
dbfile0.00523.1905200.0003
String conversion0.00000.002930.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