Newbie question on Workflows and triggers

Author Message

Siddharth Hegde

Monday 04 August 2003 7:47:52 pm

Hello everyone,

Its me again. I have been spending long hours with ezpublish, trying to get a new event up. I am almost there but I am just missing 1 small thing and I JUST CANT FIND IT.

Anyway, here goes ->
1.
I made this file called taxertype.php in a dir called KERNEL\CLASSES\WORKFLOWTYPES\EVENT\TAXER\
The contents of the file are as follows

<?php

include_once( 'lib/ezutils/classes/ezhttptool.php' );
include_once( 'kernel/classes/ezworkflowtype.php' );
define( "EZ_WORKFLOW_TYPE_TAXER_ID", "taxer" );
class TaxerType extends eZWorkflowEventType
{
/*!
Constructor
*/
function ezTaxer()
{
$this->eZWorkflowEventType( EZ_WORKFLOW_TYPE_TAXER_ID, "USA Taxer" );
}
function execute( &$process, &$event )
{
$parameters = $process->attribute( 'parameter_list' );
$object =& eZContentObject::fetch( $parameters['object_id'] );
$version =& eZContentObjectVersion::fetchVersion( $parameters['version'], $parameters['object_id'] );
$requestUri = eZSys::requestUri();
$process->Template = array( 'templateName' => 'design:workflow/eventtype/result/' . 'event_taxer' . '.tpl',
'templateVars' => array( 'request_uri' => $requestUri )
);
// $event->setAttribute( 'status', EZ_WORKFLOW_TYPE_STATUS_FETCH_TEMPLATE );
return EZ_WORKFLOW_TYPE_STATUS_FETCH_TEMPLATE_REPEAT;
}
}
eZWorkflowEventType::registerType( EZ_WORKFLOW_TYPE_TAXER_ID, "taxertype" );
?>

2.I created a file called event_taxer.tpl in DESIGN\STANDARD\TEMPLATES\WORKFLOW\EVENTTYPE\RESULT\
3.I edited workflow.ini in the settings dir. I added the following line AvailableEventTypes[]=event_taxer
4.I logged in to admin, cleared the ini file cache and added a new workflow.
5.Now when I say new workflow, all other events get their name such as Event/PayNet or Even/Hello World in the drop down, but my Event just gets listed as Event/
6.Eventhough it appears as just Event/ I created a workflow and continued
7.I also set a trigger using this workflow to occur before checkout in the shop module. When I went through the checkout process, I did not see my form there

Any ideas about this one?

Any help will be appreciated.

Thank you,

- Sid

santosh kumar

Friday 19 December 2003 8:57:16 pm

Hi siddharth,did the problem solve .......
i require to create the same type of event .what are the changes to be done in the admin panel ........
please let me know that as im new to the ez publish.
i first of all created section named taxer in the admin panel and created the class taxer in the setup panel in ez admin with required attributes
but its not coming up in the website
please let me know the details
thanking u in advance
santosh

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:15:35
Script start
Timing: Jan 18 2025 19:15:35
Module start 'layout'
Timing: Jan 18 2025 19:15:35
Module start 'content'
Timing: Jan 18 2025 19:15:36
Module end 'content'
Timing: Jan 18 2025 19:15:36
Script end

Main resources:

Total runtime1.0436 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.0469152.6406
Module start 'layout' 0.00900.0041 740.687539.4766
Module start 'content' 0.01311.0289 780.1641471.1641
Module end 'content' 1.04190.0016 1,251.328112.1250
Script end 1.0436  1,263.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3936160.0003
Check MTime0.00160.1580160.0001
Mysql Total
Database connection0.00190.186010.0019
Mysqli_queries0.987794.6416540.0183
Looping result0.00060.0604520.0000
Template Total1.004196.220.5021
Template load0.00200.190920.0010
Template processing1.002196.025420.5011
Template load and register function0.00020.016810.0002
states
state_id_array0.00090.084110.0009
state_identifier_array0.00170.164720.0009
Override
Cache load0.00170.1650560.0000
Sytem overhead
Fetch class attribute can translate value0.00060.056520.0003
Fetch class attribute name0.00130.126420.0007
XML
Image XML parsing0.00030.027920.0001
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00080.0813100.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs