Workflows not working at all

Author Message

Tore Skobba

Tuesday 06 April 2004 2:46:03 am

Hi all

I am trying to make my own workflow, this in order to place users in the correct user group depending upon what they enter in an toogle box. However, I am totally unable to get EZ to use my new workflow. Therefore I downloaded two workflows (mailinglist and shopsender) contributions, this in order to test them. But I have the same problem with those. EZ finds them in the Extension setup. However, after activating the new workflows they are nowhere to been seen.. Anyone know what I might be doing wrong? Or is it the EZ workflow ?

I am using EZ 3.3-4 with the EZ installer (Apacke 1.34 etc).

Cheers
Tore

Paul Forsyth

Tuesday 06 April 2004 2:49:18 am

Tore,

We wrote the worldpay extension contribution, which has a workflow within. Try that one to see if it works. If it doesn't we can work through it.

paul

Tore Skobba

Tuesday 06 April 2004 5:49:20 am

Hi Paul

Thanks for help.. I rechecked everything and noticed that I did not have the:
[ExtensionSettings]
ExtensionDirectory=extension

in my site.ini.append.php file. Once I entered it the workflows were found. However, my own is still nowhere to be found. I guess there is some undocumented critical elements in the workflows.

Update: While working an inserting my own debug in EZ kernel classes I seem to have learnt that the acutal custom workflow event class name must be *Type i.e. ezuserplacement.php must be ezuserplacementtype.php? Is that correct? Is it so sensitive?

Debug in admin return this:
Workflow type not found: event_ezuserplacement, searched in these directories: kernel/classes/workflowtypes, extension/userplacement/eventtypes

While this exsists "extension/userplacement/eventtypes/event/ezuserplacement.php".. But it seems to be totally unable to find it.. Anyone have any tips ?

Cheers
Tore

Paul Forsyth

Tuesday 06 April 2004 7:50:30 am

Yip, workflow events must end with a 'type.php'.

I also find the case sensitivety of the extension system a problem with my code. It gets far too often.

Paul

Guy Diels

Thursday 08 April 2004 1:39:59 am

First of all, I'd recheck all of your names, with those forced conventions, it's really easy to make a mistake.

I'm not sure, but isn't event_ezNNN the expected name of the associated template?
You might try to add an empty template under your extension:

\design\standard\templates\workflow\eventtype\edit\event_ezNNN.tpl

and put this under settings in workflow.ini.append.php:

[EventSettings]
ExtensionDirectories[]=ems
AvailableEventTypes[]=event_ezNNN

oh, and activate your design in your extension

Hope this helps

Matthew Carroll

Wednesday 29 March 2006 11:05:00 am

Hi Tore

On the off chance that you're still tracking this thread a year later, I was wondering if you could upload your userplacement extension or outline in a little more detail how you accomplished this - I need to do something very similar, placing new users in a certain group depending on input.

Thanks
Matthew

http://carroll.org.uk

Xavier Dutoit

Wednesday 29 March 2006 10:12:59 pm

Hi,

Have a look in the contribs, you have something like that.

X+

http://www.sydesy.com

Tore Skobba

Wednesday 29 March 2006 11:26:46 pm

Hi

This was an old thread :), acutally I have recently made my workflow a bit more genereal and uploaded it to the contribution area (http://ez.no/community/contribs/workflow/automated_user_placment). Please feel free to use it :).

Cheers
Tore

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 18 2025 19:29:56
Script start
Timing: Jan 18 2025 19:29:56
Module start 'layout'
Timing: Jan 18 2025 19:29:56
Module start 'content'
Timing: Jan 18 2025 19:29:57
Module end 'content'
Timing: Jan 18 2025 19:29:57
Script end

Main resources:

Total runtime0.7427 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.3438152.6250
Module start 'layout' 0.00610.0036 741.968839.4453
Module start 'content' 0.00970.7308 781.4141704.0859
Module end 'content' 0.74050.0022 1,485.500016.1641
Script end 0.7426  1,501.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3901160.0002
Check MTime0.00120.1622160.0001
Mysql Total
Database connection0.00070.094110.0007
Mysqli_queries0.670590.2776780.0086
Looping result0.00070.0996760.0000
Template Total0.713796.120.3568
Template load0.00170.231920.0009
Template processing0.712095.859920.3560
Template load and register function0.00020.025510.0002
states
state_id_array0.00200.265610.0020
state_identifier_array0.00150.197920.0007
Override
Cache load0.00160.2115550.0000
Sytem overhead
Fetch class attribute can translate value0.00080.112350.0002
Fetch class attribute name0.00110.1516100.0001
XML
Image XML parsing0.00190.251450.0004
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00110.1536220.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 36
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs