Participant.commitAttachment(remarks,localAttachmentContent,attach)

Commits 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. In order to use this method, the attachment has to be previously edited by the participant and it is committed with the new content. If successful, it returns true and a new attachment version is created. 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
remarks String comments for the new version of the attachment in
localAttachmentContent Binary new content to check in in
attach Fuego.Lib.Attachment attachment to commit in