Process Instance Agent Tested

An automated AI agent that can thoroughly test a process

Last published at: November 25th, 2025

The goal of automated process testing is to develop a computerized AI agent that can thoroughly evaluate a process. 

Here are some scenarios to consider:

  • The starting point could simply be the process
  • Begin with a form; once the form is submitted, initiate the process.
  • The process can follow many different paths.
     

What do we want the AI agent to accomplish?

  • Assess the flow and develop a testing plan.
  • Complete the forms and submit them.
  • Keep track of tasks, choose options, and finish the tasks.
  • Explore different routes, try all options
  • Identify problems

This example demonstrates the following process workflow.

 

This example uses the following form. 

 

On the Form Definitions page, select the Form and click the View - Execute with params menu option. We are instantiating a new process instance by submitting a Form.  

 

On the Configuration page, select the Form Definition from the drop-down list. Then, select the Process Definition from the drop-down list. Choose the process variable to hold the Form Instance ID. Pick the language to render the Form from the drop-down list. Set “AI Agent” as the test mode. Check the box to save the process instance. Select the user to run this test mode from the drop-down list. Click the “Save Form URL” button to initiate a new process instance with a single click. Finally, click the Execute button to start a new process execution. 

 

The form appears on a new page. Enter the required information and click the Submit button to finish. 

 

The process instance invokes the “AI Agent Test” to validate the process workflow by exploring various paths. It monitors tasks, makes decisions, and completes both regular and form tasks. A pop-up window appears when the test is finished. 

This example shows a successful test for the agent. Click the View Instance link to see the result.

 

The process instance is shown below. You will see that all workflow paths have been tested and the steps have been completed without errors.  

 

This example shows that an agent test has failed because one of the steps returned an error. Click the View Instance link to see the result.

 

The process instance is shown below. You will see that all workflow paths have been tested, and one step has resulted in an error. Click the error step to view its properties. 

 

The step properties appear on a new page. Choose the View - Errors menu option to see the details. 

 

The error message is shown below. In this example, the process step has encountered an error due to an incorrect configuration. You can click the “AI - How to fix” button for assistance. 

 

The "AI - How to fix" advice might not always be accurate. It offers potential solutions for the step-return error as follows: 

 

Go back to the Process Instances page and note that the instance has finished with “AgentTested” status.