Example: Decision Tables Using Collections and Variables in the Inputs

Decision Tables using Collections and Variables in the Inputs

Overview

Intended audience: Process designers, Web designers

Tags: Decision Table; Request Variables; Magic Variables; Collections; Mustache Syntax

This example shows Decision Table Inputs calling Collections through mustache syntax. And you can call specific rows and fields delimited by dots.

This example also shows Decision Table Inputs calling Request variables and Magic variables through mustache syntax.

This example compares a loan ratio, which is stored in a Request variable with credit scores, that are stored in a Collection. Then, this Decision Table rates a loan ratio and credit scores to see if lenders are creditworthy for a loan.

Follow these steps to add a Decision Table:

  1. To use the Decision Table with a variable, create an Environment Variable called loanRatio that works on a Screen to enter data.

  2. Import a Collection with data about credit scores. Find it on the page MyFico.

  3. Import the Decision Table, which is at the end of this example. The editor displays the imported Decision Table.

    A Decision Table example in the Decision Table Editor

    It displays the following:

    • The input Borrower Credit Score, which conditions the number score from the Collection FICO Score that has been previously imported. The Collection is called using mustache syntax, calls the row number, and the Collection field score.

    • The input Front-End Ratio conditions the variable loanRatio by entering mustache syntax and selecting the variable.

    • According how the Inputs rate, the Borrower Rating output displays features for lenders and its creditworthiness.

8KB
Decision Table v4.json

Last updated

Logo

© 2024 ProcessMaker, Inc. All Rights Reserved. Except as otherwise permitted by ProcessMaker, this publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose.