Show TOC

Executing a Search QueryLocate this document in the navigation structure

Prerequisites

You have got the decision table where you want to perform search.

Procedure

  1. Create a search query.
                      IDecisionTableQuery query = dt.createQuery();
                   
  2. To set the value on the query, perform any of the following sub steps as required:
    • If your search depends on the condition value, then enter the condition header name and the condition values.

                              query.setConditionValue("ConditionHeaderName","ConditionValue");
                           
    • If your search depends on the action value, then enter the action header name and action values.

                              query.setActionValue("ActionHeaderName","ActionValue");
      
                           
    • If your search depends on both condition and action values, then enter both the condition and action header names and values.

                              query.setConditionValue("ConditionHeaderName_1","ConditionValue_1");
              query.setConditionValue("ConditionHeaderName_2","ConditionValue_2");
              query.setActionValue("ActionHeaderName_1","ActionValue_1");
              query.setActionValue("ActionHeaderName_2","ActionValue_2");
      IDecisionTableRow[] dtRow = dt.getRows(query);