Friday 10 December 2004 6:37:46 am
Hi I am trying to write my first workflow for EZ. But I find it very difficult, firstly because there is no real way of debuging it.. For instance now when I Edit an workflow and insert my own Event I get an:
Error: eZWorkflow Dec 10 2004 15:21:03 Undefined attribute 'type', cannot get This is after my constructor in my own workflow has been executed. What I find very confusing is that when I search within the eZWorkflow class the error message is not found. so I suspect that it is crashing somewhere else, secondly I do not find the message very informative. Probably needless to say but when adding the workflow to an trigger nothing is working. Hopefully someone might point me in an direction. I have included the source for my event below here:
<?php
define( "EZ_WORKFLOW_TYPE_PLACEUSERS_ID", "placeusers" );
include_once("kernel/classes/ezworkflowtype.php");
class placeusersType extends eZWorkflowEventType
{
function placeusersType() {
$this->eZWorkflowEventType( EZ_WORKFLOW_TYPE_PLACEUSERS_ID, "Placeusers" );
eZDebug::writeNotice("Start placeusers","Constructor");
}
function execute( &$process, &$event )
{
eZDebug::writeNotice("Start","Workflow placeusers");
}
}
eZWorkflowEventType::registerType( EZ_WORKFLOW_TYPE_PLACEUSERS_ID, "placeuserstype" );
?>
Hmm no one know anything about workflow.. I am really desperate here. I have found that the error happens in: "eZPersistentObject" function &attribute( $attr ) with parameter named "type".
|