From: Daniele T. <d.t...@ic...> - 2004-05-12 14:54:17
|
Hello masseyni , I'm afraid the "leave.zexp" is a bit outdated since it's using an old way to retrive an instance from the openflow. The instances have been moved to a 'ProcessInstances' btree-folder rather than being kept inside the openflow itself. To retrive and instance, instead of doing: getattr(open_conge,inst) try doing: open_conge.getInstance(inst) Cheers, Daniele On Wednesday 12 May 2004 16:41, masseyni wrote: > Madam ,Sir > Im a computer science student and im intersted in OpenFlow. > I 've downloaded the example:"leave.zexp" from your website > and tried it but i encouter some problems. > I developped another workflow process to handle a leave > process with contains more stages than in "leave.zexp" i've > downloaded. > the matter is that: > when the employee feels the form and submit it, i get errors > in this kind: > Error Type: AttributeError > Error Value: ice1084372381.58 > "ice" is my login name and "ice1084372381.58" would be the > process instance id. > I think that the Error comes from the flowing DTML code : > "<dtml-let obj="_.getattr(open_conge,inst)">" > here is my DTML Method that process the StartLeaveForm: > """"" > <dtml-var standard_html_header> > <h2><dtml-var document_title></h2> > <p> > <dtml-let inst="open_conge.addInstance('conge_annuel', > AUTHENTICATED_USER.getUserName(), > 'no comment', > 'Demande de congé de : ' + AUTHENTICATED_USER.getUserName(), > activation=0)"> > <dtml-let obj="_.getattr(open_conge,inst)"> > <dtml-call "obj.manage_addProperty('soumise', '', 'string')"> > <dtml-call "obj.manage_addProperty('Ok_chef', '', 'string')"> > <dtml-call "obj.manage_addProperty('remp', '', 'string')"> > <dtml-call "obj.manage_addProperty('approuve', '', 'string')"> > <dtml-call "obj.manage_addProperty('decision', '', 'text')"> > <dtml-call "open_conge.startInstance(inst)"> > Demande Envoyée > </dtml-let> > </dtml-let> > </p> > <p> > <a href="index_html">ACCUEIL</a> > </p> > <dtml-var standard_html_footer> > """""" > I hope you'll help > Best reagards > Ps: im french native speaker then my english would not be so > expressful > and i apologize for that > En esperant vous lire bientot > > Accédez au courrier électronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34/mn) ; tél : 08 92 68 13 50 (0,34/mn) -- Daniele Tarini - Research & Development - Icube S.r.l. Address: Via Ridolfi 15 - 56124 Pisa (PI), Italy E-mail: d.t...@ic... Web: http://www.icube.it Phone: (+39) 050 97 02 07 Fax: (+39) 050 31 36 588 |