Skip to main content

Stream Lookup

Description

Stream Lookup is a step in the Lookup Plugin for Process Studio Workflows. The Stream lookup step looks up data and adds it to information coming from other source steps in the workflow. The data coming from the Source steps is cached into memory and then a common key field is used to look up data from the lookup table. In the example below, database table input is the primary input. The workflow looks up data in a text-file based on a common key field.

Note: Consider using the Database Lookup step when the Lookup step originates from a table. In this case, it is faster to use the Database Lookup step and enable the option. Load all data from table that preloads the cache.

If there are multiple matching records in the Lookup step data having same keys, then by default the last matched record will be fetched by the step. Enable the Fetch First Matched Record checkbox to fetch the first matched record

Configurations

No.Field NameDescription
1Step nameSpecify the name of the step this name has to be unique in a single workflow
2Lookup stepSpecify the step name where the lookup data is coming from
3The keys to lookup...Specify the names of the fields that are used to look up values. Values are always searched using the "equal" comparison
4Fields to retrieveSpecify the names of the fields to retrieve here, as well as the default value in case the value was not found or a new field name in case you didn't like the old one.
6Preserve memoryEnabling this checkbox encodes rows of data to preserve memory while sorting.
7Radio Button 1: Key and value are exactly one integer fieldPreserves memory while executing a sort by. Note: Works only when "Preserve memory" is checked. Cannot be combined with the "Use sorted list" option below.
8Radio Button 2: Use sorted listEnable to store values using a sorted list; this provides better
memory usage when working with data sets containing wide row. Note: Works only when "Preserve memory" is checked. Cannot be combined with the "Key and value are exactly one integer field" option.
9Fetch First Matched RecordEnabling this checkbox will fetch the matched record from the Lookup Step.
10Button: Get fieldsAutomatically fills in the names of all the available fields on the source side (A); you can then delete all the fields you don't want to use for lookup.
11Button: Get lookup fieldsAutomatically inserts the names of all the available fields on the lookup side (B). You can then delete the fields you don't want to retrieve