Workflow approbation

Author Message

Eric Bourgain

Friday 06 April 2007 4:30:29 am

I'm developping an extension where the approbation is made by users/group choosen in a LDAP directory. These users may not be ezuser yet, the groups are not ez groups, and we browse the LDAP directory instead of the users.

For the moment, I've writent my eventtype, that inherits ezapprovetype, and a ldapbrowse class.

When I want to add a user, I create it on the fly (using the same code than ezldapuser). I see it the list of the created user. I see it in the event data_text1 attribute. But when I use approve_users, I get an empty array: I never see the selected users.

In my event class, I override the methods attributeDecoder, fetchHTTPInput, customWorkflowEventHTTPAction and of course execute.

I know I will have to solve some problems with the groups (I do not have group ID, only LDAP dn), but I thought that with the users, as I create them and that I have true ez ID, it will be fine.

Can anyone help me? thanx

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

Main resources:

Total runtime1.4766 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.0059 588.9453152.6094
Module start 'layout' 0.00590.0032 741.554739.4141
Module start 'content' 0.00911.4657 780.9688399.4063
Module end 'content' 1.47480.0017 1,180.37508.1875
Script end 1.4765  1,188.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2201160.0002
Check MTime0.00140.0933160.0001
Mysql Total
Database connection0.00070.049410.0007
Mysqli_queries1.437897.3722460.0313
Looping result0.00050.0324440.0000
Template Total1.443797.820.7219
Template load0.00210.141520.0010
Template processing1.441697.631020.7208
Template load and register function0.00020.013810.0002
states
state_id_array0.00160.109510.0016
state_identifier_array0.00240.161020.0012
Override
Cache load0.00160.110390.0002
Sytem overhead
Fetch class attribute can translate value0.00110.072510.0011
Fetch class attribute name0.00140.094910.0014
XML
Image XML parsing0.00010.009610.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00080.0564100.0001
String conversion0.00000.000540.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/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: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs