|
From: Sinang, D. <D.S...@sp...> - 2006-05-09 08:49:31
|
We're using Zope v2.7.6-final and Plone 2.0.5 .
=20
-----Original Message-----
From: Marco Bizzarri [mailto:m.b...@ic...]=20
Sent: Tuesday, May 09, 2006 3:39 PM
To: Sinang, Danny
Cc: ope...@li...
Subject: Re: [Openflow-dev] activateWorkitems () - having trouble
finding active workitems for a given actor
What release of Zope/Python are you using?
Regards
Marco
Sinang, Danny ha scritto:
>
> Hello,
>
> We're able to successfully Activate and Inactivate workitems via the=20
> OpenFlow's ZMI pages (
> wms/GeneralWorkFlow/ProcessInstances/ABC12345147081516.99 ).
>
> We then tried creating our own activateWorkitem python script in=20
> wms/Openflow/activateWorkitem. It looks like this :
>
> wf =3D container.GeneralWorkflow
> wf.activateWorkitem(instance_id, str(workitem_id), 'mark')
>
> This script is called from a TAL webpage we created.
>
> Although our activateWorkitem script is able to activate the workitem,
> we have problems searching for the active workitem (for a particular
> actor) from the catalog.
>
> The catalog search looks like this :
>
> wf =3D context.GeneralWorkflow
> cat =3D wf.Catalog
> wisActive =3D
> cat.searchResults({'meta_type':'Workitem','status':'active',
> 'actor':'mark'})
>
> We don't get any results from the catalog search at all.
>
> But if we remove the 'actor':'mark' search criteria, we get a list of=20
> all active workitems. And if we loop through the results, we're able=20
> to print their actors (which come out as 'mark').
>
> We've been at this the entire day and couldn't figure it out. Hope=20
> someone there could help us.
>
> Regards,
> Danny
>
|