Forums / Developer / Workflows not working at all

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

eZ debug

Timing: Jan 18 2025 16:05:24
Script start
Timing: Jan 18 2025 16:05:24
Module start 'content'
Timing: Jan 18 2025 16:05:25
Module end 'content'
Timing: Jan 18 2025 16:05:25
Script end

Main resources:

Total runtime0.9242 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.7109180.8359
Module start 'content' 0.00580.7927 768.5469709.1641
Module end 'content' 0.79850.1257 1,477.7109340.4375
Script end 0.9242  1,818.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4395210.0002
Check MTime0.00160.1750210.0001
Mysql Total
Database connection0.00090.098610.0009
Mysqli_queries0.843891.29592150.0039
Looping result0.00200.21922130.0000
Template Total0.897397.120.4487
Template load0.00220.239720.0011
Template processing0.895196.851120.4476
Template load and register function0.00010.011010.0001
states
state_id_array0.00110.117510.0011
state_identifier_array0.00120.126820.0006
Override
Cache load0.00200.2130550.0000
Sytem overhead
Fetch class attribute can translate value0.00140.154560.0002
Fetch class attribute name0.00080.0872100.0001
XML
Image XML parsing0.00160.170260.0003
class_abstraction
Instantiating content class attribute0.00000.0014100.0000
General
dbfile0.00420.4554330.0001
String conversion0.00000.000730.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 36
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs