Accessing Attachments on the first Action in a 7.2 WF


a user fills out form in form manager , have attached files workflow. first step in workflow script qpac needs manipulate attachments (need extract attachments, reader extend them , put back...). if first step user task in 7.2, can copy attachments document list previous step if first step in workflow script, how access attachments?

ideally have of attachemnts available in document list @ first step of workflow or @ lest mechanism put them document list.

i'm assuming you're talking task attachments , not pdf attachments (in case won't @ :p). here's code retrieve intial task of processs instance, can attachments , whatever want them.

pofobjectmanager om = patservicecontext.getobjectmanager();

// check task started process
pofquery taskqry = om.newquery(boitask.object_type);
taskqry.addfilter(boitask.a_process_instance_id, poffilter.equals, patexeccontext.getprocessid());
taskqry.addfilter(boitask.a_action_instance_id, poffilter.equals, (string)null);

boitask task = (boitask) om.retrieveboiobject(taskqry);

chris
adobe enterprise developer support


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments