Reporting Attended Workflow Progress to the Automation Portal

The NICE Automation Portal is a browser-based portal that allows you to monitor, manage, and control attended and unattended automation solutions.

When developing a workflow that will be executed on an agent's machine as part of an attended automation solution, you can optionally choose to expose its execution status and other information through the Automation Portal.

This functionality is supported for attended automation solutions only (i.e. solutions that run on an agent's desktop, as opposed to unattended solutions that run on robots).

The table below lists the information that the Automation Portal can present for each workflow. The table also indicates what the automation developer is required to do for that piece of information to be displayed.

Information

Requirements to Expose

Execution Status, Start Time, End Time, Last Executed Step
The reason why the workflow was terminated
Whether the workflow was terminated because of a business reason
The business reason why the workflow was terminated

Note on Workflow Termination

Automation Studio does not require that workflows end with an End step - the End step does not have to be connected. However, unless the workflow is properly terminated, the Automation Portal will not display its End Time, Duration, and Last Executed Step. The workflow must therefore be terminated in one of the following ways:

  • The workflow reached the End step.

  • The workflow reached a step where its End method was performed.

  • The workflow's End method was performed somewhere else in the solution.

  • When running a workflow through Automation Studio, the developer stopped the workflow manually by clicking Stop Workflow or Stop Project.

Configure a Workflow For Status Display in Automation Portal

No status information will be displayed for a workflow unless it has been configured to allow its status to be displayed in the Automation Portal.

Note that status information cannot be displayed in the Automation Portal for workflows that have been configured for execution by robots. Therefore:

  • If the workflow is configured to be executed by robots, you cannot select to display the workflow's status information in the Automation Portal, as shown below.

  • If you have selected to display the workflow's status information in the Automation Portal, you will be able to configure the workflow to be executed by robots, but your selection to display the workflow's status in the Automation Portal will be canceled, as shown below.

  • If you have selected to display the workflow's status information in the Automation Portal, and at least one of the properties Workflow Exit Reason or Business Exception Reason is in use, you will not be able to configure the workflow to be executed by robots. Click the In Use button to open the Usage Reference Panel for a list of locations where those properties are used.

To display a workflow's status information in the Automation Portal:

  1. Open the workflow.

  2. Click Workflow Settings.

  3. Open the Properties tab.

  4. Check Display workflow execution information in the Automation Portal.

    This checkbox is disabled if the option Make the workflow available for execution by robots has been checked.

Specify Workflow Termination Reason

A workflow can follow any number of paths when being executed, and can also end at any number of workflow steps. It is useful to display the reason for termination in the Automation Portal.

To specify the workflow termination reason, set the workflow's Workflow Exit Reason property. Set the value of this property in the step at which the workflow ends.

The Workflow Exit Reason property is not available for workflows that are configured for execution by robots.

This information can be viewed in the Automation Portal only for workflows run on the agent's machine, but not for workflows run by robots.

Specify Whether the Workflow Terminated for Business Reasons

Workflows are sometimes terminated for business reasons. For example, a workflow that processes a purchase might be terminated early because the customer's outstanding balance is too high. When viewing a workflow's status in the Automation Portal, it is important to know if the workflow terminated for a business reason or not.

To specify that the workflow was terminated for business reasons, set the workflow's Business Execution OK property to False. By default, that property is set to True. As long as its value is True, the Automation Portal will assume that the workflow has not terminated for business reasons. (There is no need to set its value to True.)

This information can be viewed in the Automation Portal for workflows run on the agent's machine and those run by robots. You do not have to configure the workflow to allow its status information to be displayed in the Automation Portal.

For an example, see the example in the next section below.

Specify the Business Reason for Workflow Termination

When terminating a workflow for a business reason, in addition to specifying that the workflow was terminated for a business reason, it is also useful to provide a business reason for termination to display in the Automation Portal.

To specify the business reason for workflow termination, use the workflow's Business Exception Reason property.

The Business Exception Reason property is not available for workflows that are configured for execution by robots.

Note that the value of the Business Exception Reason property will not be transmitted to the Automation Portal unless the workflow's Business Execution OK property is first set to False.

This information can be viewed in the Automation Portal only for workflows run on the agent's machine, but not for workflows run by robots.

Testing Guidelines

When testing solutions that report workflow execution information to the Automation Portal, note that:

  • Automation Studio must be connected to the Real-Time Server for this information to be transmitted. (When the solution is run on an agent's machine, if the Real-Time Client is not connected to the Real-Time Server, the information is stored and then transmitted the next time a connection to the Real-Time Server is established.)

  • The Automation Portal is not always updated with information on workflows you test immediately. It may take some time, typically minutes, before information on a workflow that was run is displayed in the Automation Portal.