Saving a Document to a Process FolderLast Updated: 05/02/2018 Introduced in Version: 2.0
Process folders allow process states, files and other flow data to be stored in a way that is easy to manage through the portal. Process folders can also contain files input by users, forms, outside systems, or any other entity capable of outputting them.
The Add File component stores an inputted file inside of a process folder. It can be found in the Flow Designer, in the Toolbox panel, under the category Flow Management > Data.
Our example will prompt us to input a file (ClaimHistory.txt) which will then be stored persistently inside of a new process folder.
We start with our system in a state similar to the one at the end of Setting Up a Process Folder to Save Flow Data. We have a root-level folder called Insurance Requests, inside of which are several process folders following the naming convention: [AP-000002] Insurance Request Submitted by [initiating user email].
We already have a flow that creates a new and unique process folder following the naming convention introduced above. It also contains an Add Comment step, that inserts a reminder comment into the process folder.
In the resulting Edit Object pop-up, define our input as having the Name “inputfile,” and the type FileData, then click OK.
Next, from the Components panel, under the category Flow Management > Data, drag and drop the Add File component into the workspace. This is the step that adds our inputted file to our process folder. Connect it to the other steps of our flow.
Next, map the inputs for Add File by right-clicking Add File and selecting the menu item Edit Input Mappings.
Inside the Mapping Editor, map the FileName property of inputfile to name, and the Contents property to data.
Our flow is now complete and ready to save.
When we run our flow in the debugger, in the debugger setup screen, Select Choose File on the right hand side.
and select, from our local file system, ClaimHistory.txt.
In the portal, under the entities Insurance Requests, find the latest addition to our list of process entities.