Test Instance for Workflow Customization: To Turn On Workflow Validation

The following activity will walk you through the process of preparing an instance of MYOB Acumatica for the validation of a workflow that you create by using Workflow API.

The code written by using Workflow API is declarative. As a result, the usual approaches to debugging do not work with the workflow code. To catch errors that occur in a workflow, you need to turn on workflow validation. This way, when an error occurs on a form that uses the workflow, you can see detailed information about the error on the System Events tab of the System Monitor (SM201530) form of MYOB Acumatica.

Story

Suppose that you need to develop a workflow by using Workflow API. In this case, you need to learn how to debug the code and catch errors.

Process Overview

You will enable workflow validation in the Web.config file of your instance.

Step: Enabling Workflow Validation

To enable workflow validation, do the following:

  1. In the instance folder, open the Web.config file.
  2. In the appSettings tag of the file, find the EnableWorkflowValidationOnStartup key, and set its value to True, as the following code shows.
    <add key="EnableWorkflowValidationOnStartup" value="True" />
  3. Save your changes.