Let’s expand the process by using some of the other Form-related steps.
Let’s use the Form definition “TestFormFile,” which looks as follows:

Let’s use the process definition “TestFormFileDef,” which looks as follows:

Let's move the “getFormFieldValues” step to the designer and connect it to the final step in the process. The red alert sign indicates that the step property configuration is incomplete.

Click the new step and configure the properties below. Provide the variable reference that stores the Form Instance ID. Click the button to map form fields to variables.

The pop-up window appears for configuration. Click the AddRow (+) button to insert a blank row. Enter the Form field reference in the textbox and the mapping variable reference in the adjacent textbox, as shown below. You will need to repeat this mapping for each required Form field. Click the Save button to confirm this configuration.

Let’s define a few variables to store userFullName and email as strings.

Save the process definition.

Generate and execute a new process instance.

Let’s render the instance to see its execution by clicking on the View > Render menu option.

The process instance is displayed on the new page, as shown below. Use the Select Steps to Exclude drop-down list to summarize a large instance execution path.

As the rendered workflow shows, the route form step will create a task for the user. Let’s open the task list and complete the Form within the task. Then navigate to the Engage > Tasks page, as shown below. Select the Instances search filter and choose the process instance from the drop-down list. The incomplete task assigned to the user is shown below. You can also search for the task using the Search textbox.

The displayed task with the Form appears as follows. You can enter values into the Form fields and click the Submit button to finish. The Form instance now saves the field values in XML format, and the process instance completes them.

Once the task is completed, the process instance should be “Completed.”

Click Items > Variables > Latest Variables to view variable values. Alternatively, select the “getFormFieldValues” step to see its properties.

The latest variables pop-up window shows the list of variables and their values, as illustrated below. You might need to scroll through the list to find the process variable values.
