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

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

Main resources:

Total runtime0.0224 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2578151.2266
Module start 'layout' 0.00550.0034 739.4844220.7188
Module start 'content' 0.00890.0120 960.20311,009.8047
Module end 'content' 0.02080.0015 1,970.007841.9922
Script end 0.0223  2,012.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.7747140.0002
Check MTime0.00115.0244140.0001
Mysql Total
Database connection0.00062.832210.0006
Mysqli_queries0.002712.299630.0009
Looping result0.00000.049110.0000
Template Total0.00114.810.0011
Template load0.00083.714410.0008
Template processing0.00021.037910.0002
Override
Cache load0.00062.473810.0006
General
dbfile0.00115.012680.0001
String conversion0.00000.039540.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