Description:
This step retrieves the Form Instance data as an XML or JSON value.
Inputs
- formInstID – form instance ID
- resultType - result format as JSON or XML
- varGlobalStoreID - variable or global to store the form instance value
Returns
- True – expression evaluates to a true result
- False – expression evaluates to a false result
Usage:

Example:
Let’s build and execute the “clsGetFormInstanceDataDef” example.
- Create a new process definition named “clsGetFormInstanceDataDef" and open it in designer mode.
- Drag “RouteForm, clsGetFormInstanceData” steps to the canvas.
- Connect the dots between the “Start” step and other steps, as shown above.
- Define a variable or a global to store the result.
- Click the “RouteForm” step to configure its “Required” properties. Provide a step name and a task description. Select the Form definition from the drop-down list. Specify a variable or a global to store the Form Instance ID. Click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description.

- Click the “RouteForm” step to configure its “Optional” properties. Select the users to route to. Set the task priority and completion duration. Click the Save button.

- Click the “clsGetFormInstanceData” step to configure its “Required” properties. Provide a name for the step. Provide the variable or global reference that contains the Form Instance ID. Select the result format from the drop-down list (XML or JSON). Provide the variable or global reference to store the result value. Click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description.

- The “Logging” configuration is necessary for documentation and to measure workflow progress and percent complete. This is done by configuring the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties.

- Save the process definition, create a new instance, and execute it.

- The Form task is routed to the user, who shall complete and submit it.

- The “clsGetFormInstanceData” step should retrieve the Form Instance data and store it in the configured variable or global reference.

Definition Sample:
You may download and extract the sample definition(s) from the provided link, then import them (drag-and-drop) into your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
Note: Please verify and complete the import process steps for any missing configurations, including file path references and database connections. Then, save the definition to confirm the changes.
Click here to download the sample file.