|
From: Sinang, D. <D.S...@sp...> - 2006-05-08 23:58:23
|
Hello,
=20
I was able to add a "jobname" property to instances as one is created as
follows :
=20
wf =3D context.GeneralWorkflow
=20
instance_id =3D wf.addInstance( process_id=3Dprocess, =
customer=3Djobname,
comments=3Dcomment, title=3Dsubject, activation=3D1)
=20
wf.getInstance(instance_id).manage_addProperty('jobname', jobname,
'string')
wf.Catalog.manage_reindexIndex (ids=3D['jobname'], REQUEST=3DNone,
RESPONSE=3DNone, URL1=3DNone)
=20
No problem getting jobnames of active workitems.
=20
However, I can't get the jobnames of inactive workitems. I get "Missing
value" whenever I do this :
=20
wf =3D context.GeneralWorkflow
cat =3D wf.Catalog
wisInactive =3D cat.searchResults({'meta_type':'Workitem',
'status':'inactive'})
=20
jobnames =3D [each.jobname for each in wisInactive]
return jobnames
Any idea on what we're doing wrong ?
=20
Regards,
Danny
=20
=20
|