Parallel Lookup Strategy
Learn how to use Lookup Table in Decision Flow for retrieval of comprehensive records, followed by the precise deconstruction of data points.
Ivan Peresta
Template author
This project demonstrates how to effectively utilize a Lookup Table within a workflow to perform multiple, distinct data retrieval functions based on a single key. The flow initializes necessary variables and then queries the Lookup Table to check for an object's existence, retrieve the full object's data, and extract a specific value.
Solution Components:
The Lookup Table (Implicit Reference): This acts as the external data source or reference database that the flow queries. It contains the key records and columns used for all lookup operations.
The Flow (The Execution Engine): This is the workflow itself, which sequences the logic for interacting with the Lookup Table:
Variables Node (
declare): Initialises the primary key and the desired output column that define the lookup target.Business Rule Nodes (The Lookup Operators): These nodes all reference the Lookup Table and demonstrate three primary lookup capabilities:
isObjectExist: UsesLOOKUP_EXISTSto perform a foundational Boolean check.getObject: UsesLOOKUP_VALUE(with PK only) to retrieve the full data object (a complete record).getValue: UsesLOOKUP_VALUE(with PK and output column) to retrieve a specific field value.
Data Manipulation Node (
assignOutput): Collects and structures the varied results from the Business Rule lookups into the final workflow outputs (doesObjectExist, object, value).
Use this template to learn how to:
Query a Lookup Table for Existence: How to use the
LOOKUP_EXISTSfunction within a Business Rule to quickly verify if a primary key is present in the table.Retrieve Full Data Objects: How to use the
LOOKUP_VALUEfunction with only the primary key to fetch an entire record from the Lookup Table.Extract Specific Values: How to use the
LOOKUP_VALUEfunction with both the primary key and a column name to precisely retrieve a single data point from a record.
More Templates
See Other Templates
A/B Testing
Discover a simple way to assign a test group for performing A/B Testing on your decisions.
Risk Based Pricing
Discover a simple way to apply a suitable Risk Based Pricing matrix based on a type of client.
Eligibility and Policy Rules
Discover a simple way to define and execute various sets of rules and get the final decision outcome.