Alle 01:14, sabato 3 gennaio 2004, hai scritto:
> >1 - extract from the workflow Instance the workitem related to task
> >using the activity id attribute (or you can query the catalog with
> >appropriate index: meta_type=3D'Workitem', instance_id, process_id,
> >acitivity_id) and so call the push method. This work only if you have =
> >workitem for one activity.
> I don't think I can be guaranteed that there is only workitem can I?
The model of workflow must not have loop.
> >2 - Create a 'push' application (see dev manual: http://www.reflab.it/communi=
> >Store the user in a property, and use the 'push' app to assign the
> > workitem.
> I create the instance like this.
> oftool =3D container.portal_openflow
> instance_id =3D oftool.addInstance(process_id=3D container.pd_name ,
> comments=3D"New Driver",
> How do I get the workitem ID so I can push it? Or maybe you are saying =
> don't need the workitem ID if I store the user as a property of the
> workflow... Is that right?
in "Auto push application" section.
If you tie an activity with an "auto push application" the workflow engin=
call it with the correct parameter (included workitem id) when it forward=
workitem to the another one. This is the rigth way to assign a workitem, =
other one is to do it ttw with the worklist action 'push'.