Feedback

  • Contents
 

Use a Conditional node

Use a Conditional node after a Server Search node to include one API object or another based on whether or not a condition is true.

To configure a conditional node:

  1. On the script toolbar, click the Conditional btn_Conditional button.

    ScriptAssist displays the Conditional dialog box.

    Conditional_tabCondition_01c
  2. In the Available ServerSearch Tokens list (1), select the token name to use in the conditional expression.

  3. In the Condition Evaluation group box (2), construct the expression:

    1. The Token Name text box shows the token that will be evaluated for the condition.

    2. In the Operator combo box, select the desired operator for the expression.

    3. In the Record Count box, use the up and down buttons to enter the value for the expression.

    Note:
    Although you can create a conditional step that checks if the token contains more than twenty results and then takes the true path, ScriptAssist currently has a limit of twenty screen pops. If a screen pop script requests more than twenty screen pops to occur at runtime, then an overflow condition is met and an error is traced to the logs. In this case, the rest of the script is abandoned. It is therefore important to create screen pop scripts that are focused and pop only a small number of records. You can create a pre-configured report in Oracle Service Cloud that pops if more than twenty records are returned.

  4. On the True Action tab:

    Conditional_tabTrueAction_01
    1. Select the Include object for true condition check box.

    2. In the API Objects list, select the type of object to create if the conditional expression is true.

  5. On the False Action tab:

    Conditional_tabFalseAction_01
    1. Select the Include object for false condition check box.

    2. In the API Objects list, select the type of object to create if the conditional expression is false.

  6. Click OK.