|
From: Daniele T. <d.t...@ic...> - 2002-02-25 10:46:21
|
On Friday 22 February 2002 16:28, Peter Edwards wrote: > I now have OpenFlow 0.7 (or 0.7777777 ?) downloaded from > http://www.openflow.it/wwwopenflow/EN/index_html I apologize for this: I think the 0.7 is a wrong name for that version... Mmh, I think we have OpenFlow in way too many places around. Here is a re= sume=20 of all the places you can find OpenFlow: 1) Sourgeforge: at http://sourceforge.net/projects/openflow Here you can find the updated CVS developers use for their work. As soon = as a=20 bug is fixed, a new functionality added and so on, this is the place that= =20 gets modified first. 2) Zope: at http://www.zope.org/Members/vds This place hosts some (out of date) documentation for OpenFlow as well as= the=20 latest (hopefully) stable version. 3) OpenFlow: at www.openflow.it This site is trying to keep up with development. Its main objectives are = to=20 spread knowledge about OpenFlow: general and specific documentation, late= st=20 version download. While in the future this will be the main reference for= =20 OpenFlow, at the moment it is on experimental development. We are working on keeping all the sites aligned to the latest version. In= =20 case of ambiguity the sourceforge CVS will certainly have the latest vers= ion. I just updated both OpenFlow and Zope site with the current version. I'll= =20 update the latest sourceforge release as soon as possible (though the CVS= is=20 obviously up to date!) > Currently I have 4 problems : > > 1. > I am unable to delete instances. In the 'Process instances' tab I selec= t > one or more of the instances and press 'Delete instance', and all that > happens is the selected instances remain, unselected. Can you try this again with a more recent version (either on www.openflow= =2Eit=20 or www.zope.org/Members/vds? > 2. > I tried creating an application from a DTML document, with URL > http://localhost:8080/mywf/trialdtmldoc and empty brace parameters. The= URL > is correct as I can call it directly from the browser. I then created a= n > activity to call this application (Manual start and finish, and empty b= race > parameters), and managed to get a 'Start application' action for it in = a > Work list. When I select the 'Start application', Zope fails, unable to > locate the object at ...:8080/mywf/http%3A Ok, this is easy: the url to be called should not be referred as=20 "http://localhost:8080/mywf/trialdtmldoc" but as "/mywf/trialdtmldoc" or even just "trialdtmldoc" since the search starts from workflow level i= tems=20 in the zope hirearchy anyway. > 3. > If I interrupt an OpenFlow session to browse (e.g. www.openflow.it) the= n > return by the browser 'Back' button, I usually find I have lost the > required permissions to continue, and can only retrieve the situations = by > closing and re-loading the browser. Of course I don't know if this is a= n > OpenFlow problem, or Zope, or the browser (MS IE5). Mmh, I'm not sure either. I'm sure OpenFlow product is currently not usin= g=20 any session object (like Core Session Tracking) and that might cause some= =20 session mess with browser's back button... > 4. > Please advise what is the format (or please give an example) for passin= g > parameters to applications. First of all: five parameters are always passed to the application:=20 openflow_id, process_id, activity_id, instance_id and workitem_id. With t= hese=20 parameters you can call any workflow API on the workitem you selected=20 starting the application. For additional parameters, the format is a python-like dictionary: comma separated key-values pairs expressed like '<key>':<value>, all wrap= ped=20 in braces Example 1: You want to pass "int_one" parameter with value 1 (int) and "str_one"=20 parameter with value "one" (string): You should write: {'int_one': 1, 'str_one': 'one'} You can pass items belonging to instance, activity, process and openflow,= =20 like properties, python scripts results or other. As a rule of thumb you = may=20 directly reference any attribute of an instance, activity, process or=20 openflow. Example 2: Suppose you want to pass a "myint" int property of your instance (that mi= ght=20 have been set by some other application with a manage_addProperty call) t= o=20 the application: {'instance_myint': instance.myint} You can specify parameters in two places: application definition and acti= vity=20 definition. If parameter names collide, activity parameters override the=20 application ones (so that you can redefine an application parameter in th= e=20 activity calling that application). You can also see application paramete= rs=20 as a default value for the parameters, and activity parameters as actual=20 value if they need to be different from default. Clear enough? Thanks for your contribution, =09Daniele =3D) |