Log Error

Use this step to log errors to FlowWright system log.

Last published at: February 24th, 2025

LogError Step

Description:

This step logs errors to the FlowWright System log.

 

Inputs

  • Source - Error Source
  • MessageData - Error message to log
  • Priority - Priority
 

 

Errors

  • True – step executed successfully
  • False – step failed to execute
 

 

 

Usage:

 

 

Example:

Let’s build and execute the “clsLogErrorDef” example.         

  • Create a new process definition called “clsLogErrorDef” and open the definition in designer mode. 
  • Drag a "clsLogError" step to the canvas.
  • Connect the dots between the “Start” and "clsLogError" steps, as shown above. 
  • Click the "clsLogError" step to configure its “Required” properties. Provide a name for the step. Provide the source of the error message. Provide the message to log. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the "clsLogError" step to configure its “Optional” properties. Select the priority from the dropdown list (Low, Medium, High). Click the Save button. 

 

  • The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create an instance, and then execute it. As configured, the process step should log the error message to the System log. Navigate to the Status—System log page and select the log by type and error.

 

Note: If the error log table exceeds a specific size, it is automatically trimmed (records are deleted). This scheduled job is defined on the server and is triggered by the event of a growing table size. 

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after import. Then, save the definition to confirm the changes.

Click here to download the sample file.