|
From: Daniele <d.t...@ic...> - 2003-09-18 15:15:17
|
Hello Mati,
On Thursday 18 September 2003 10:30, mati wrote:
> Hi,
>
> first of all, thanks for developing such a great software like OpenFlow.
Thanks a lot.
> I have a small question about Instance. For example, i want to list all
> Instances belonging to an specified process - i have created different
> process types and all are running in same Openflow.
>
> But whenever i do cat(meta_type='Instance', process_id='my process'), i get
> a empty result set. i looked up in the Catalog and found what there is no
> process_id assigned for Instances. Is this correct? I mean, Workitems have
> process_id?
Ok, I understand. The problem is that instances could be running on more than one process (due to subflows) and it would not be easy to understand what 'process_id' should mean for an Instance.
Workitems, instead, do have a process_id so you could cat them instead of instances. And you could make use of the workitem 'instance_id' metadata. Like in:
workitems = cat(meta_type='Workitem', process_id='myprocess')
instances = [w.instance_id for w in workitems]
>...
> And the other thing - i suggest a small patch for OpenFlowEditor, so it
> works also on windows platform:
>
> plotter.py:
> 43,44c43,44
> < os.system('/usr/bin/dot -T%s -o %s %s' % (format, outfile, infile))
> < out = open(outfile, 'r')
> ---
>
> > os.system('dot -T%s -o %s %s' % (format, outfile, infile))
> > out = open(outfile, 'rb')
>
> Simple as that, dot tool should be in path anyway (in unix too) and without
> 'rb' windows messes up gifs probably because dos line endings :)
Wow, thanks a lot: your patch will be integrated in the code (if it runs on our machines as well)
> Best Regards,
> Mati
>
Thanks for you interest,
Daniele =)
--
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
|