General workflow question / ez components workflow

Author Message

Timo Hähne

Sunday 27 June 2010 1:56:50 am

Hello,
I have two general problems with the understanding of the (general) workflow-functionality and ez components workflow:
1.) If I have defined a general workflow (for example for publish an article after a review) – each posted article has actually start a new “instance” of my general publish-workflow. Is this right? Or how does I handle it when the same workflow is used for many different articles/data-sets?
2.) How does the basis-application have to work with the workflow-component? If in the publish-process an email has to send to the person who has to review the article – where has the code places for sending this email? Is it the right approach to send the email directly in the workflow, for example in the execute-method in a WorkflowServiceObject? Or does the sending of the email just placed in the application-code (after save an article or set the state of an article) and the status of the workflow has to set to the next node/level after sending the email?
Thanks for an answer (and sorry for my bad english ;-))!
Timo

 

Hello,

 

 

 

I have two general problems with the understanding of the workflow-functionality:

 

 

 

1.) If I have defined a general workflow (for example for publish an article after a review) – each posted article has actually start a new “instance” of my general publish-workflow. Is this right? Or how does I handle it when the same workflow is used for many different articles/data-sets?

 

 

 

2.) How does the basis-application have to work with the workflow-component? If in the publish-process an email has to send to the person who has to review the article – where has the code places for sending this email? Is it the right approach to send the email directly in the workflow, for example in the execute-method in a WorkflowServiceObject? Or does the sending of the email just placed in the application-code (after save an article or set the state of an article) and the status of the workflow has to set to the next node/level after sending the email?

 

 

 

Thanks for an answer (and sorry for my bad english ;-))!

 

 

 

Timo

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 02:10:28
Script start
Timing: Jan 18 2025 02:10:28
Module start 'layout'
Timing: Jan 18 2025 02:10:28
Module start 'content'
Timing: Jan 18 2025 02:10:30
Module end 'content'
Timing: Jan 18 2025 02:10:30
Script end

Main resources:

Total runtime1.4651 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.0469152.6406
Module start 'layout' 0.00650.0035 740.687539.4766
Module start 'content' 0.01001.4533 780.1641408.5000
Module end 'content' 1.46330.0017 1,188.66418.1250
Script end 1.4650  1,196.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2394160.0002
Check MTime0.00140.0964160.0001
Mysql Total
Database connection0.00110.077410.0011
Mysqli_queries1.414696.5551460.0308
Looping result0.00040.0307440.0000
Template Total1.418696.820.7093
Template load0.00230.153720.0011
Template processing1.416496.675720.7082
Template load and register function0.00060.040210.0006
states
state_id_array0.00130.086110.0013
state_identifier_array0.00240.166120.0012
Override
Cache load0.00180.1250310.0001
Sytem overhead
Fetch class attribute can translate value0.00050.035110.0005
Fetch class attribute name0.00130.087610.0013
XML
Image XML parsing0.00030.021710.0003
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00160.1063100.0002
String conversion0.00000.000640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs