|
From: Marco B. <m.b...@ic...> - 2006-05-09 07:39:16
|
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
> OpenFlow's ZMI pages (
> wms/GeneralWorkFlow/ProcessInstances/ABC12345147081516.99 ).
>
> We then tried creating our own activateWorkitem python script in
> wms/Openflow/activateWorkitem. It looks like this :
>
> wf = 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 = context.GeneralWorkflow
> cat = wf.Catalog
> wisActive =
> 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
> all active workitems. And if we loop through the results, we're able
> to print their actors (which come out as 'mark').
>
> We've been at this the entire day and couldn't figure it out. Hope
> someone there could help us.
>
> Regards,
> Danny
>
|