clsGetLookUpData Step
Description:
This step gets a value from the LookUp Data list.
Inputs
- Category—Lookup category
- text—Lookup item text
- varGlobal--Variable/Global to store the value
Returns
- True – step executed successfully
- False – step failed to execute
Usage:
The clsGetLookUpData step requires the FlowWright Lookup Data to be pre-configured. To create a list, navigate to the Create—Lookup Data page. A lookup data list is included here for reference.
Example:
Let’s build and execute the “clsGetLookupDataDef” example.
- Create a new definition called “clsGetLookupDataDef”
- Select the definition and click the “design” button
- Drag the “UpdateVariable” and "clsGetlookUpData" steps to the canvas
- Connect the dots between the steps as shown above
- Define variable/globals to store the value and the result after execution
- Click the "updateVariable" step to configure its “Settings” properties. Provide a name to the step.
- Click the "updateVariable" step to configure its “Advanced” properties. Click on the button to configure multiple variables.
- Click on (+) Add Row to include new variables and values. On each row, provide the variable name and mapping variable values. Click on the Save button to confirm.
- Click the "clsGetlookUpData" step to configure its “Settings” properties. Give the step a name and provide a lookup item text or a variable reference.
- Click on the "clsGetlookUpData" step to configure its “Advanced” properties. Provide a lookup category reference. Provide a lookup item filter reference. Provide a variable/global to store the value.
- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.
- Save the process definition, create a new process instance, and execute. Render the process instance. Click on the process step to view its properties. The step should get the lookup data value and store the result in a variable.storeValue as configured.
Definition Sample:
You may download the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.
Click here to download the sample file.