|
From: Sinang, D. <D.S...@sp...> - 2006-05-09 01:24:29
|
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 =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
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.=20
Regards,
Danny
|