Anyone ever got workflows to work?

Author Message

Armin Lukas

Tuesday 13 July 2004 4:59:53 am

I've tried to create a workflow that fetches a template and awaits input from there.

see ezwrappingtype in the documentations.

yet, I couldn't bring it to life.

Any suggestions.

Kåre Køhler Høvik

Thursday 15 July 2004 1:09:12 am

Please provide some more information about what you did, and what you expected to happen.

--
Kåre Høvik

Kåre Høvik

Armin Lukas

Thursday 15 July 2004 1:38:22 am

For code bits and so on you can look into http://ez.no/community/forum/developer/proper_use_of_ez_workflow_type_status_redirect_repeat/#msg62624

but here is what I did in a brief description:
My system is 3.3-3 svn 5019
So I created a workflow under the extensions directory, I then simply created ezsendmailtype.php
with all the necessary code for a workflow event.

I set $process->Template = array ('templateName' => 'design:workflow/eventtype/result/'. 'event_ezsendmail' . '.tpl');
and I return EZ_WORKFLOW_TYPE_STATUS_FETCH_TEMPLATE_REPEAT;

Then I created event_ezsendmail.tpl in extension/sendmail/design/standard/templates/workflow/eventtype/result/ and made a file called workflow.ini.append available in extension/sendmail/settings
with ExtensionDir and EventType Variables in it.

What I know so far:
My workflow event shows up in the admin interface
It get's executed (I echoed in it)
But it won't fetch my template.

Can it be that eZP did not find my template and ran through the workflow without complaining?
I looked into notice/warnings/error log-files but there was no entry.

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 19 2025 12:52:43
Script start
Timing: Jan 19 2025 12:52:43
Module start 'layout'
Timing: Jan 19 2025 12:52:43
Module start 'content'
Timing: Jan 19 2025 12:52:44
Module end 'content'
Timing: Jan 19 2025 12:52:44
Script end

Main resources:

Total runtime1.0782 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 589.1641152.6250
Module start 'layout' 0.00430.0022 741.789139.4609
Module start 'content' 0.00661.0702 781.2500536.4844
Module end 'content' 1.07680.0014 1,317.734412.1563
Script end 1.0781  1,329.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2773160.0002
Check MTime0.00120.1122160.0001
Mysql Total
Database connection0.00070.061410.0007
Mysqli_queries1.033195.8234570.0181
Looping result0.00050.0460550.0000
Template Total1.051497.520.5257
Template load0.00190.179520.0010
Template processing1.049597.340320.5247
Template load and register function0.00020.018210.0002
states
state_id_array0.00120.108510.0012
state_identifier_array0.00090.083220.0004
Override
Cache load0.00160.1478280.0001
Sytem overhead
Fetch class attribute can translate value0.00090.087720.0005
Fetch class attribute name0.00100.097140.0003
XML
Image XML parsing0.00060.055420.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00070.0678150.0000
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs