evalDBDecisionTable Step

Use DB decision table in process

Last published at: November 12th, 2024

Description:

Learn to use the DB Decision table in a process. 

 

Inputs

  • tableName – Decision DB table name
  • inputDBCol – DB Input Column
  • outputDBCols – Db Output Columns
  • defaultValues – Default values if no match is found
 

 

Returns

  • Matched – evaluation finds a match
  • NoMatch – evaluation does not find a match
 

 

Usage:

 

 

Example:

Let’s build and execute the “evalDBDecisionTableDef” example.          

  • Create a new definition called “evalDBDecisionTableDef”
  • Select the definition and click the “design” button
  • Drag a “UpdateVariable, evalDBDecisionTable” step from the toolbox
  • Connect the dots between the Start and other step as above
  • Define a variable/global to store the result after execution
  • Click the "UpdateVariable" step to configure its "Settings" properties. Provide a step name. 
  • Click the "UpdateVariable" step to configure its "Advanced" properties. Provide a variable reference and the value to store. Select Yes if the value is an expression to be evaluated. 

 

  • Click the "evalDBDecisionTable" step to configure its "Settings" properties. Provide a name to the step. Provide a table name for the decision evaluation. Click the button to map the DB input and output columns.

 

  • Click the button to map the DB Input columns.  Click the Add Row (+) button to insert an empty row. Provide the input DB column and variable/global reference to be mapped. Select the Contains checkbox if the value is a string to be searched within another. Click the Save button to confirm. You may use the Add Row button to insert multiple DB input columns and variable references. 

 

  • Click the button to map the DB output columns. Click the Add Row (+) button to insert an empty row. Provide the output DB column and variable/global reference to be mapped. Click the Save button to confirm. You may use the Add Row button to insert multiple DB output columns and variable references. 

 

  • Click the "evalDBDecisionTable" step to configure its "Advanced" properties. Click the button to map the DB output columns. Click the Add Row (+) button to insert an empty row. Provide the output DB column and variable/global reference to be mapped for no match. Click the Save button to confirm. You may use the Add Row button to insert multiple DB output columns and variable references. 

 

  • 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 instance, and execute. Render the process instance. Click on the process step to view its properties. The step should use the DB decision table in the process. Below, the step properties show the values for an evaluated match.  

 

 

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.