Participant.editAttachment(attach)

Edits or locks the attachment. Although the most common way to handle the attachments are directly from the Work Portal instance panel, from the attachment section; you can also manage them from an FBL. For example: // First the attachments are edited or locked for each p in ProcessInstance.attachments do attok = editAttachment(participant, attach : p) display "Attachment " + p.fileName + " was edited: ?" + attok end // Treat the attachment, for example if it is text file, edited with an editor and change its content // Remember that if the file was updated on the client side, you should upload it and get it new content // Commit the new version of the attachment for each p in ProcessInstance.attachments do rematt = p.fileName + " was edited" commitok = commitAttachment(participant, remarks : rematt, localAttachmentContent : p.contents, attach : p) display "Attachment " + p.fileName + " was committed. Commit result: " + commitok end

Arguments:

Name Type Description Mode
attach Fuego.Lib.Attachment attachment to lock in