Process Flow: Condition

Last Updated: Version R2607

A condition indicates a decision point in the process flow that is placed either both or after a task and is based on whether documents match specific criteria. A condition may be true or false and may be combined with a task. Or, a condition may require a branch in the process flow depending on if the condition is met.

You could create a condition that examines the Extraction confidence. If the confidence percentage exceeds 95%, you may want to skip a Validation step in the process flow. In this case, you need a condition that is the Type true/false and sets "All documents are true" for Extraction confidence to Greater Than or Equals 95.

The process flow will branch based on if the condition is met, and you need two rules or tasks to complete the flow. The image below shows the result of adding the true/false condition to the flow. You could add a Task to the True side of the flow that routes the documents directly to OneDrive with no further review or validation required. You could also add a Review or Validation task on the false side of the flow that requires further human intervention.

Alternatively, a condition could require a branch of the process flow into two unique paths that are based on document information rather than a true/false condition. For example, if dealing with invoices from two countries and you need to route the invoices based on the country of origin, you could create a condition that branches the documents when a variable is identified. In this example, Path 1 will route invoices from Canadian companies, whereas Path 2 will route invoices from USA companies. Because the document routing requires two different locations, a condition easily splits the flow based on the country name that is found within the document.

The resulting process flow will look like the image below. You can then add the routing tasks to each outcome of the flow.

If the Create Full-Text Value is enabled within the Batch - Document Settings, a "Full Text" system value is available to use as a condition. When used as a condition rule, note that OCR results are stored per page, whereas condition rules are evaluated at the document level (for example, any document matches or all documents match). Therefore, when retrieving the Full Text value, the system will concatenate the OCR results of all pages in the document.

In this example, the condition states that Full Text contains 'abc'. If the document has three pages with OCR results:

  • Page 1: content is 'xyz'

  • Page 2: content is 'abc'

  • Page 3: content is '123'

The system will combine the content and the Full Text becomes 'xyzabc123'.

Change a condition target

As you work with conditions, you can easily modify the target for each result of the condition. Click on the condition branch you want to modify, and you will see an option to 'Change target step'.

A message popup appears instructing you to 'Click a step to change the target. Click outside to exit the mode'.

You can click any existing target within the condition flow, prior to the convergence. The connection is redirected to your selection. In this example, if the extraction confidence is lower than 95, the process is routed back to the Review stage. If it is higher than 95, it proceeds to the Validation stage.