|
From: Jean-Luc M. <mu...@te...> - 2002-02-27 08:17:45
|
unsubscribe, please At 12:21 26-02-2002 -0800, you wrote: >Send Openflow-dev mailing list submissions to > ope...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/openflow-dev >or, via email, send a message with subject or body 'help' to > ope...@li... > >You can reach the person managing the list at > ope...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Openflow-dev digest..." > > >Today's Topics: > > 1. Quick start (Juan David =3D?ISO-8859-1?Q?Ib=3DE1=3DF1ez?=3D Palomar) > 2. completeWorkitem (Peter Edwards) > 3. Re: Quick start (=3D?ISO-8859-1?Q?Juli=3DE1n_Mu=3DF1oz?=3D) > 4. Re: Quick start (Juan David =3D?ISO-8859-1?Q?Ib=3DE1=3DF1ez?=3D= Palomar) > 5. Re: Quick start (=3D?ISO-8859-1?Q?Juli=3DE1n_Mu=3DF1oz?=3D) > 6. OpenFlow 0.7 simple demo available (Daniele Tarini) > >--__--__-- > >Message: 1 >Date: Tue, 26 Feb 2002 15:03:34 +0100 >From: Juan David =3D?ISO-8859-1?Q?Ib=3DE1=3DF1ez?=3D Palomar= <jd...@nu...> >To: ope...@li... >Subject: [Openflow-dev] Quick start > > >Hi all, > >I'm new to this mailing list. > >Is there an example that shows how to use OpenFlow? > >I'd like to know how looks an application based on OpenFlow. > >Perhaps a .zexp, or a Python product, or a step by step explanation >to set up a very simple application with OpenFlow. > > >The only workflow tool I've used is DCWorkflow. I guess you >already know it, probably better than me. > >In DCWorkflow objects can be in one of the states defined by the >workflow. The main thing that defines an state is a permission >mapping, so moving from one state to another means to change the >permission settings of the object. Does OpenFlow modify the >permission settings too? > > >Thank you very much, > >-- >J. David Ib=E1=F1ez, Nuxeo.com >Libre Software zealot (http://www.fsf.org) > > > > >--__--__-- > >Message: 2 >From: Peter Edwards <P.E...@er...> >To: "'ope...@li...'" > <ope...@li...> >Date: Tue, 26 Feb 2002 14:15:37 -0000 >Organization: DERA >Subject: [Openflow-dev] completeWorkitem > >I still can't puzzle out how to automate continuation from a DTML= application. > >First, attempting to follow Daniele's instruction, I tried ><dtml-call "_['openflow_id'].completeWorkitem(instance_id, workitem_id)"> >directly in the application, but this causes the following Zope error. > >(if the application has manual start, this happens when I press 'Start >application' from the Worklist) > > Error Type: AttributeError > Error Value: completeWorkitem > >Traceback (innermost last): > File D:\Zope\PWETRI~1\lib\python\ZPublisher\Publish.py, line 150, in >publish_module > File D:\Zope\PWETRI~1\lib\python\ZPublisher\Publish.py, line 114, in=20 > publish > File D:\Zope\PWETRI~1\lib\python\Zope\__init__.py, line 158, in >zpublisher_exception_hook > (Object: mywf) > File D:\Zope\PWETRI~1\lib\python\ZPublisher\Publish.py, line 98, in= publish > File D:\Zope\PWETRI~1\lib\python\ZPublisher\mapply.py, line 88, in= mapply > (Object: trivdoc) > File D:\Zope\PWETRI~1\lib\python\ZPublisher\Publish.py, line 39, in >call_object > (Object: trivdoc) > File D:\Zope\PWETRI~1\lib\python\OFS\DTMLDocument.py, line 127, in= __call__ > (Object: trivdoc) > File D:\Zope\PWETRI~1\lib\python\DocumentTemplate\DT_String.py, line=20 > 473, in >__call__ > (Object: trivdoc) > File D:\Zope\PWETRI~1\lib\python\DocumentTemplate\DT_Util.py, line 159,= in >eval > (Object: _['openflow_id'].completeWorkitem(instance_id, workitem_id)) > (Info: instance_id) > File <string>, line 2, in f > File D:\Zope\PWETRI~1\lib\python\AccessControl\DTML.py, line 29, in >guarded_getattr > (Object: trivdoc) > File D:\Zope\PWETRI~1\lib\python\AccessControl\ZopeGuards.py, line 47,= in >guarded_getattr >AttributeError: (see above) > > >I then thought this is the wrong time to call completeWorkitem, as it= happens >when rendering the page for the user. The user should select something or >pressing a button to do it, i.e. making a decision to complete the= Workitem. > >So I tried creating another document (or a Script may be better), and made= =20 >the >first document access that either by <a href=3D(etc)> or <form (etc)>. But= I >couldn't see how to pass in the OpenFlow parameters to that other=20 >document. Is >this anything like the right idea? > >Help please! > >Peter > > > >--__--__-- > >Message: 3 >Date: Tue, 26 Feb 2002 15:06:57 +0000 (GMT) >From: =3D?ISO-8859-1?Q?Juli=3DE1n_Mu=3DF1oz?=3D <jm...@so...> >To: Juan David =3D?ISO-8859-1?Q?Ib=3DE1=3DF1ez?=3D Palomar= <jd...@nu...> >Cc: <ope...@li...> >Subject: Re: [Openflow-dev] Quick start > >Hello (hola) > > > > Is there an example that shows how to use OpenFlow? > >No (there was one, but it is for an old version). > > > > I'd like to know how looks an application based on OpenFlow. > >Uhmm, >the better is to install Openflow. >An application based on Openflow looks like a list of things to do. > > > The only workflow tool I've used is DCWorkflow. I guess you > > already know it, probably better than me. > >I don't know it, but I know what is a state based workflow, it is good for >defining telecomunitacions protocols, where is it clear than an object >must give responses to external signals, depending of its state. The >workflow marcs the path of the states. I think it is the way DCWorkflow >works, isn't it ? > > > permission settings of the object. Does OpenFlow modify the > > permission settings too? > >Openflows gives the list of activities for each differente user, and >limits who can say "I have finished this activity". > > >--=3D20 > > __o > _ \<_ > (_)/(_) > >Saludos de Juli=3DE1n >EA4ACL >-.- > >Foro Wireless Madrid >http://opennetworks.rg3.net > > > >--__--__-- > >Message: 4 >Date: Tue, 26 Feb 2002 17:09:44 +0100 >From: Juan David =3D?ISO-8859-1?Q?Ib=3DE1=3DF1ez?=3D Palomar= <jd...@nu...> >To: =3D?ISO-8859-1?Q?Juli=3DE1n=3D20Mu=3DF1oz?=3D <jm...@so...>, > openflow-dev <ope...@li...> >Subject: Re: [Openflow-dev] Quick start > > >Hola, ;-) > > > >Juli=E1n Mu=F1oz wrote: > > >Hello (hola) > > > > > >>Is there an example that shows how to use OpenFlow? > >> > > > >No (there was one, but it is for an old version). > > > > > >>I'd like to know how looks an application based on OpenFlow. > >> > > > >Uhmm, > >the better is to install Openflow. > >An application based on Openflow looks like a list of things to do. > > > >I installed it, created a process definition, a transition between the >two default >activities, added a process instance, ... > >DCWorkflow has the concept of worklists. I think (I'm not a strong >DCWorkflow >user) that a worklist is just a list of things to do. An allowed user >looks at a working >list and sees the objects that are in a given state, and can change >their state. > >Is something like this the "list of things to do" of Openflow? > > > > >>The only workflow tool I've used is DCWorkflow. I guess you > >>already know it, probably better than me. > >> > > > >I don't know it, but I know what is a state based workflow, it is good= for > >defining telecomunitacions protocols, where is it clear than an object > >must give responses to external signals, depending of its state. The > >workflow marcs the path of the states. I think it is the way DCWorkflow > >works, isn't it ? > > > >Yes, I think so. Is OpenFlow different? > > > >>permission settings of the object. Does OpenFlow modify the > >>permission settings too? > >> > > > >Openflows gives the list of activities for each differente user, and > >limits who can say "I have finished this activity". > > > > > >I don't understand well, I'm not familirized with the jargon, what is an >"activity" for example? Things that are obvious for you are difficult for >me. > >I'm familirized, however, with the Zope's jargon, users, roles,= permissions, >objects, etc.. > > >Let's see an example, imagine that I want to add moderation to a weblog. >The weblog has a Zope meta type named "Article". I would like to have >this: > > 1. An anonymous user posts a new article; > > 2. A reviewer sees the new article in his list of articles pending of > review; > > 3. The reviewer can accept or reject the article. > > >I know how to do this with DCWorkflow. An article is an object that can >be in two states, "pending" and "public". The "Anonymous" role only has >the permission "View" if it's in the "public" state. This is a simple way= to >filter the articles that are shown in the weblog, users only show the >articles >they're allowed to see. > >How to do this with Openflow? > > >Thanks, > >-- >J. David Ib=E1=F1ez, Nuxeo.com >Libre Software zealot (http://www.fsf.org) > > > > >--__--__-- > >Message: 5 >Date: Tue, 26 Feb 2002 16:53:29 +0000 (GMT) >From: =3D?ISO-8859-1?Q?Juli=3DE1n_Mu=3DF1oz?=3D <jm...@so...> >Cc: openflow-dev <ope...@li...> >Subject: Re: [Openflow-dev] Quick start > > > > Let's see an example, imagine that I want to add moderation to a weblog. > > The weblog has a Zope meta type named "Article". I would like to have > > this: > > > > 1. An anonymous user posts a new article; > > > > 2. A reviewer sees the new article in his list of articles pending of > > review; > > > > 3. The reviewer can accept or reject the article. > > > > > > I know how to do this with DCWorkflow. An article is an object that can > > be in two states, "pending" and "public". The "Anonymous" role only has > > the permission "View" if it's in the "public" state. This is a simple= way=3D > to > > filter the articles that are shown in the weblog, users only show the > > articles > > they're allowed to see. > > > > How to do this with Openflow? > > >In Openflow you define the process this way: > >1) An anonymous POST an article =3D3D First activity > >2) A reviewer REVIEW the article =3D3D Second activity > > >If the reviewer accepts the acticle there is 3 things to do: > > a) The secretary must phone to my mother, and say "Your soon will arrive >late tonight, we have an important article". > b) The article must me put on the web, automatically > c) A remote methods must be called automatically, via xml-rpc, to send > a hash of this article to a copyright database, in New York. > > >You see, this this activity bases. Activities =3D3D Actions to do > >This can be related to the main object (b), but this can also be a call to >a method (c), or an action than an human must do (phone to my mother). > >It is the classic definition of an algoritm. The diagram process, things >to do... It is the way you draw something on a paper when you define a >process. > > >The difference is that the diagram is not related to any object. Generally >it will, but this is not mandatory. > > > >--=3D20 > > __o > _ \<_ > (_)/(_) > >Saludos de Juli=3DE1n >EA4ACL >-.- > >Foro Wireless Madrid >http://opennetworks.rg3.net > > > >--__--__-- > >Message: 6 >From: Daniele Tarini <d.t...@ic...> >Organization: icube >To: Peter Edwards <P.E...@er...>, > "'ope...@li...'"=20 > <ope...@li...> >Subject: [Openflow-dev] OpenFlow 0.7 simple demo available >Date: Tue, 26 Feb 2002 17:59:41 +0100 > >On Tuesday 26 February 2002 15:15, Peter Edwards wrote: > > I still can't puzzle out how to automate continuation from a DTML > > application. > > > > First, attempting to follow Daniele's instruction, I tried > > <dtml-call "_['openflow_id'].completeWorkitem(instance_id, workitem_id)= =3D >"> > > directly in the application, but this causes the following Zope error. > >Ok, ok, my fault! =3D3D) I'm sorry. > >that should have been: ><dtml-call "_[openflow_id].completeWorkitem(instance_id, workitem_id)"> > >instead of ><dtml-call "_['openflow_id'].completeWorkitem(instance_id, workitem_id)"> > > > > >Anyway, since a lot of people seem to ask, I zexp-ed a simple demo for=3D20 >openflow on the Zope pages at http://www.zope.org/Members/vds/ > >The demo was originally written in italian but I translated it in english= =3D >,=3D20 >even thought zope items still have their italian names =3D3D( > >This small deme should be useful to know how to call the openflow API and= =3D > how=3D20 >to handle applications linked to activities. > >As soon as I can I'll be posting a slide or two as a demo description. Ma= =3D >inly=3D20 >it is a issue tracking: it all starts from the submit/index_html where=3D20 >someone (named Alex) submits issues. Other workflow partecipants (Barbara= =3D >,=3D20 >Charles, Cherry and Clint) are assigned to activities) and check their=3D20 >worklist callling either worklist/bug or worklist/responsabile > >If you are a manager you can see all th above worklists (worklist/bug =3D20 >worklist/responsabile) and submitter (submit/index_html) > >If you want to monitor the process remember to sign in in the monitor rol= =3D >e in=3D20 >the users_and_roles tab of the workflow. > >Suggestions and opinions are welcome, > >=3D09Daniele =3D3D) > > > >--__--__-- > >_______________________________________________ >Openflow-dev mailing list >Ope...@li... >https://lists.sourceforge.net/lists/listinfo/openflow-dev > > >End of Openflow-dev Digest Jean-Luc Muller Laboratoire de T=E9l=E9communication et T=E9l=E9d=E9tection B=E2timent St=E9vin - Place du Levant 2 B-1348 Louvain-La-Neuve Tel : +32 (0)10 478551 E-mail : mu...@te... |