Using Process Folders
  • 16 Mar 2022
  • 6 Minutes to read
  • Dark
    Light

Using Process Folders

  • Dark
    Light

Article Summary

Overview

Process Folders are one of the core functions of maintaining audits trails for state-driven processes. They can keep track of a folder's state and any user comments within them. Users can add a comment to a newly created Process Folder in a Flow or retrieve a pre-existing Process Folder and add a comment to that record. 

Adding a Comment 

  1. Navigate to a Designer Project folder. Right-click the folder and select Create Folder. Click CREATE and name the new folder "Process Folder Data". Click CREATE.
  2. In the Designer Project folder, click CREATE FLOW. Select Flow, name the Flow, and click CREATE.
  3. In the Flow Designer, click the Done path on the Start step. Navigate to All Steps [Catalog[ > Process and select the Setup Process Folder step. Click ADD.
  4. On the Properties panel, click PICK under the Parent Folder field Select Process Folder Data and click PICK.
  5. On the Properties panel, enter Constant values for Folder Description and Folder Name.
  6. Click the Done path and navigate to All Steps [Catalog > Process. Select the Add Comment step and click ADD.
    This Add Comment step is meant to be used after the 'Setup Process Folder' step. The Add Comment step must be used in tandem with the 'Setup Process Folder' step.

  7. On the Properties panel under the INPUTS category, enter "This is a comment" for the Comment field and "Comment 1" in the Name field. Connect the Done path to the End step.
  8. Click Save to save changes. Click Debug on the top action bar, then click START DEBUGGING to create a record in the Process Data Folder.
  9. Navigate to the Process Folder Data and click on the newly created Process Folder. The PROCESS VIEW page will display the created comment.

Adding a Comment via Internal Services 

This example will use the Add Comment step from the Internal Services category to add another comment to the previously created Process Folder.

  1. In the Designer Project folder, click CREATE FLOW and create another Flow. 
  2. Click the Done path of the Start step. Select the Fetch Entities step and click ADD.
  3. On the Properties panel, enter "folder" in the Type Name field under the ENTITY FETCH DEFINITION category and select Folder [DecisionsFramework...].
  4. Set the Parent Folder Id to a constant and pick the Process Folder Data folder.
  5. Click the Results outcome path. Navigate to Integrations > All Integrations > Internal Services > Comment and select the AddComment step. Click ADD.
  6. Under the INPUTS category, click Unknown next to the entityid field and select Select From Flow. Click EntityResults, select First, and select Folder ID. Click DONE. For the comment field, set the mapping from Unknown to Build Data. 
  7. Scroll down and configure the Comment Name and Comment Description fields with constant string values. The Comment Name is the Data member which stores the title of the comment. The Comment Description, stores the comment text. Declare constant string values for those inputs.
  8. Connect the Done path of the Add Comment step and the No Results path of the Fetch Entities step to the End step. Click Save to save changes.
  9. Debug the Flow to have the comment created and applied to the Process Folder.

  10. Navigate back to the Process Folder Data and click on the Process Folder.
  11. On the PROCESS VIEW page, the second comment can be found underneath the first comment.

Saving a Document to a Process Folder

Process Folders can also have documents stored within them. This example will demonstrate how to configure a Flow to store a document in a Process Folder.

  1. Right-click on the Designer Project and select Create Folder. Under Create Folder, click CREATE.
  2. In the Designer Project, click CREATE FLOW and select Flow. Name the Flow and click CREATE.
  3. In the Flow Designer, select the Start step. On the Properties panel under Flow Input Data, click SHOW EDITOR.
  4. Under NAME enter "Input File" and change the TYPE to FileDate. Click Save and close the window. 
  5. Add the Setup Process Folder step to the Start step from the PROCESS category on the Toolbox panel.
  6. Set the Parent Folder to the created folder. Set the Folder Name to "Saved Folder" and the Folder Description to "Saved Description".
  7. Click the Done path. Navigate to All Steps [Catalog] > Process and select the Add File step. Click ADD.
  8. Map InputFile.Contents to the Data input field. Enter "Test File" in the Name field.
  9. Connect the Done path to the end step. Click Save to save changes to the Flow. 
  10. Debug the Flow to create the Process Folder and add a file.
  11. Navigate to the Process Folder Data and select the folder. The file should be found in that folder on the Folder Activity Panel and in the Document Header. Depending on the file type there will be actions to Download, Update, and more for the file.


Setting a Process's State and Reason

Process folders can be assigned a state and state reason by using the Set State Reason or the Set State And Reason step. It can be found in the Steps tab, under the Process category. This Flow step merely writes the user-defined reason string value in the Extension Data of the Process Folder. By default, it is not displayed on Process Folder when it is created. The reason value can be displayed in the Report Designer by displaying the 'State Reason' data member when reporting on the FlowTrackingFolderData data source.

The Set State and Reason step must be used in tandem with the Setup Process Folder step.

To set a reason on a Process Folder, configure a Flow that contains a Setup Process Folder and a Set State and Reason after it. 

After configuring the Setup Process Folder step and debugging the Flow, a Process Folder will be created. It stores the Status Reason value in the FlowTrackingFolderData data source. This allows users to be able to report on it. To do this, create a Report that is sourced from FlowTrackingFolderData. Pick the Status Reason data field.



Set State Color

A folder states color can be changed by utilizing the Set State Color step. This changes the color of the state on the Process View Page's Folder Activity Panel. This step also needs to be used in tandem with the Setup Process Folder step. 

  1. In a Designer Project, click CREATE FLOW and select Flow. Name the Flow and click CREATE.
  2. On the workspace navigate to the PROCESS category from the Toolbox panel. Add a Setup Process Folder step, a Set State step, and a Set State Color step to the workspace. 
  3. Configure the Set State to a constant value and make a note of that value.
  4. On the Set State Color step map the Color input to Constant, select a color and click PICK.
  5. On the State input, set it to Constant and make sure it matches the state value configured on the Set State step.
  6. Debug the Flow to create a Process Folder and navigate to it.

Downloading a Completed Form From a Process Folder

  1. In a Designer Project, create a new Flow.
  2. In the Flow Designer, navigate to the Toolbox > PROCESS category and drag and connect a Setup Process Folder step to the Start step.
  3. In the Properties panel, locate Parent Folder and select PICK. Select the Folder [Process Folder Data].
  4. Navigate to the Folder Description and Folder Name fields and set the input mappings to Constant. Enter "This is the description" and "Folder Name."

  5. Add a Show Form step from the FAVORITE STEPS section and connect it to the Done path of the Setup Process Folder step.
  6. In the Properties panel of the Show Form step, click PICK OR CREATE FORM. Click CREATE. In the Create New window, select Form, name it, and click CREATE.
  7. In the Form Designer, add a Button (Done), a Check Box (Can You See Me?), and an Image component. Click Save and close the Form Designer.

  8.  In the Flow Designer, set the Assignment Type to Assigned
  9. Assign the Form and add an Assignment Name and assign a name for the action to be taken on the Assignment.
  10. Set the fields in INPUTS to Ignore.
  11. Connect the Done outcome of the Show Form step to the End step.
  12. Select Debug from the top action panel.
  13. Complete the Form after the debugger runs. Navigate to Process Folder Data and select the process data.
  14. On the PROCESS VIEW page, select VIEW COMPLETED FORM to see the Form. 
  15. In the View Completed Form window, click Download.



For further information on Flows, visit the Decisions Forum.

Was this article helpful?