Approve workflow not working with ez 3.4.2

Author Message

Nicolas ROLIN

Thursday 06 January 2005 6:24:08 am

I've created a simple approve workflow on a section.

When I publish a new item in this section, it creates a new workflow process as expected.

But when each time I run the cron jobs, I get the following message :
"Checking for workflow processes
Status list
L'événement de processus de workflow est reporté à l'exécution de la commande cron(4): 1

0 out of 1 processes was finished
"
and my item is not approved.

My configuration :
ez 3.4.2
PHP 4.3.2 CGI : I know I should use the CLI version but notification cron job works well.

Any idea.
Thanks.

I've enabled some debug information and here is the result :

#################################### DEBUG ####################################
Timing: ()
Script cronjobs/workflow.php starting

Debug: (workflowEvent in process->run beginning <workflow-process>)
class ezworkflowevent {
var $PersistentDataDirty = false;
var $ID = '1';
var $Version = '0';
var $WorkflowID = '2';
var $TypeString = 'event_ezapprove';
var $Description = 'approuvé';
var $Placement = '1';
var $DataInt1 = '266';
var $DataInt2 = '0';
var $DataInt3 = '0';
var $DataText1 = '18';
var $DataText2 = '12,621';
var $DataText3 = '';
var $DataText4 = '';
var $Content = NULL;
var $DataInt4 = '0';
}

Debug: (workflowStatus <workflow-process>)
4

Debug: (<workflow-process>)
Checking activation date

Debug: (<workflow-process>)
runCurrentEvent is true

Debug: (workflowEvent class is ezworkflowevent <workflow-process>)
ezworkflowevent

Debug: (in while <workflow-process>)

Debug: (eventType line 176 <workflow-process>)
class ezapprovetype {
var $Group = NULL;
var $Type = NULL;
var $TypeString = 'event_ezapprove';
var $GroupName = 'Événement';
var $Name = 'Approuver';
var $ActivationDate = NULL;
var $Information = '';
var $TriggerTypes =
array (
'content' =>
array (
'publish' =>
array (
0 => 'before',
),
),
);
var $TypeGroup = 'event';
var $Attributes =
array (
'group' => NULL,
'type' => NULL,
'type_string' => 'event_ezapprove',
'group_name' => 'Événement',
'name' => 'Approuver',
'information' => '',
'activation_date' => NULL,
);
}

Debug: (eZApproveType::execute <kernel-workflow-approve>)
class ezworkflowprocess {
var $ID = '9';
var $WorkflowID = NULL;
var $UserID = '615';
var $ContentID = '0';
var $NodeID = '0';
var $EventID = '1';
var $EventPosition = '1';
var $LastEventID = '0';
var $LastEventPosition = '0';
var $LastEventStatus = '4';
var $EventStatus = '0';
var $Created = '1105017987';
var $Modified = '1105020900';
var $ActivationDate = '0';
var $PersistentDataDirty = false;
var $ProcessKey = 'e87eafebd66b6f6ccfd11cb506a021fc';
var $WorflowID = '2';
var $ContentVersion = '0';
var $SessionKey = '0';
var $EventState = '1';
var $Status = '4';
var $Parameters = 'a:3:{s:9:"object_id";s:3:"628";s:7:"version";s:1:"1";s:11:"workflow_id";s:1:"2";}';
var $MementoKey = '0fd0ebe107870f522150c7357634fab6';
}

Debug: (eZApproveType::execute <kernel-workflow-approve>)
class ezworkflowevent {
var $PersistentDataDirty = false;
var $ID = '1';
var $Version = '0';
var $WorkflowID = '2';
var $TypeString = 'event_ezapprove';
var $Description = 'approuvé';
var $Placement = '1';
var $DataInt1 = '266';
var $DataInt2 = '0';
var $DataInt3 = '0';
var $DataText1 = '18';
var $DataText2 = '12,621';
var $DataText3 = '';
var $DataText4 = '';
var $Content = NULL;
var $DataInt4 = '0';
var $EventType =
class ezapprovetype {
var $Group = NULL;
var $Type = NULL;
var $TypeString = 'event_ezapprove';
var $GroupName = 'Événement';
var $Name = 'Approuver';
var $ActivationDate = NULL;
var $Information = '';
var $TriggerTypes =
array (
'content' =>
array (
'publish' =>
array (
0 => 'before',
),
),
);
var $TypeGroup = 'event';
var $Attributes =
array (
'group' => NULL,
'type' => NULL,
'type_string' => 'event_ezapprove',
'group_name' => 'Événement',
'name' => 'Approuver',
'information' => '',
'activation_date' => NULL,
);
};
}

Debug: (eZApproveType::execute::user <kernel-workflow-approve>)
class ezuser {
var $PersistentDataDirty = false;
var $Login = 'user';
var $Email = '[email protected]';
var $PasswordHash = 'e92aea98452abb34cb78671d6fa8c660';
var $PasswordHashType = '2';
var $Groups =
array (
0 => '11',
1 => '4',
);
var $OriginalPassword = false;
var $OriginalPasswordConfirm = false;
var $ContentObjectID = '615';
}

Debug: (eZApproveType::execute::userGroups <kernel-workflow-approve>)
array (
0 => '11',
1 => '4',
)

Debug: (eZApproveType::execute::editor <kernel-workflow-approve>)
266

Debug: (eZApproveType::execute::workflowSections <kernel-workflow-approve>)
array (
0 => '18',
)

Debug: (eZApproveType::execute::workflowGroups <kernel-workflow-approve>)
array (
0 => '12',
1 => '621',
)

Debug: (eZApproveType::execute::section_id <kernel-workflow-approve>)
18

Debug: (approve collaborationID <kernel-workflow-approve>)
4

Debug: (approve $process->attribute( 'event_state') <kernel-workflow-approve>)
1

Debug: (check approval <kernel-workflow-approve>)
class ezworkflowevent {
var $PersistentDataDirty = false;
var $ID = '1';
var $Version = '0';
var $WorkflowID = '2';
var $TypeString = 'event_ezapprove';
var $Description = 'approuvé';
var $Placement = '1';
var $DataInt1 = '266';
var $DataInt2 = '0';
var $DataInt3 = '0';
var $DataText1 = '18';
var $DataText2 = '12,621';
var $DataText3 = '';
var $DataText4 = '';
var $Content = NULL;
var $DataInt4 = '0';
var $EventType =
class ezapprovetype {
var $Group = NULL;
var $Type = NULL;
var $TypeString = 'event_ezapprove';
var $GroupName = 'Événement';
var $Name = 'Approuver';
var $ActivationDate = NULL;
var $Information = 'we are checking approval now';
var $TriggerTypes =
array (
'content' =>
array (
'publish' =>
array (
0 => 'before',
),
),
);
var $TypeGroup = 'event';
var $Attributes =
array (
'group' => NULL,
'type' => NULL,
'type_string' => 'event_ezapprove',
'group_name' => 'Événement',
'name' => 'Approuver',
'information' => 'we are checking approval now',
'activation_date' => NULL,
);
};
}

Debug: (approval still waiting <kernel-workflow-approve>)
class ezworkflowevent {
var $PersistentDataDirty = false;
var $ID = '1';
var $Version = '0';
var $WorkflowID = '2';
var $TypeString = 'event_ezapprove';
var $Description = 'approuvé';
var $Placement = '1';
var $DataInt1 = '266';
var $DataInt2 = '0';
var $DataInt3 = '0';
var $DataText1 = '18';
var $DataText2 = '12,621';
var $DataText3 = '';
var $DataText4 = '';
var $Content = NULL;
var $DataInt4 = '0';
var $EventType =
class ezapprovetype {
var $Group = NULL;
var $Type = NULL;
var $TypeString = 'event_ezapprove';
var $GroupName = 'Événement';
var $Name = 'Approuver';
var $ActivationDate = NULL;
var $Information = 'we are checking approval now';
var $TriggerTypes =
array (
'content' =>
array (
'publish' =>
array (
0 => 'before',
),
),
);
var $TypeGroup = 'event';
var $Attributes =
array (
'group' => NULL,
'type' => NULL,
'type_string' => 'event_ezapprove',
'group_name' => 'Événement',
'name' => 'Approuver',
'information' => 'we are checking approval now',
'activation_date' => NULL,
);
};
}

Debug: (lastEventStatus <workflow-process>)
4

Nicolas ROLIN

Tuesday 11 January 2005 12:20:09 am

In fact, there is no problem.
I haven't well understood how workflows work.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.