Using Workflow in JUEL Expressions - Teradata Analytic Apps - Vantage Analyst

Vantage Analyst with Machine Learning Engine User Guide

Product
Teradata Analytic Apps
Vantage Analyst
Release Number
1.1
Published
December 2019
Language
English (United States)
Last Update
2020-08-06
dita:mapPath
ezh1551894635141.ditamap
dita:ditavalPath
wsp1565965728073.ditaval
dita:id
B035-3805
lifecycle
previous
Product Category
Teradata Vantageā„¢

Two-Integer Variable Example

This example includes two Integer variables in a workflow (VarInt1=20 , VarInt2=3). The following options to use JUEL expressions are used in a workflow node's parameters:
  • "${VarInt1} + ${VarInt2}" returns the string "20 + 3"

    ${VarInt1} and ${VarInt2} is replaced with the actual workflow variable values but NO arithmetic calculation is completed. The string with the replaced values is the result.

  • "${VarInt1 + VarInt2}" will return the calculated value "23"

    The variables will be resolved to values and arithmetic calculation on values is completed. The calculated value is the result.

The JUEL expression that returns a string with the replaced workflow variables, and the JUEL expression that returns a calculated value, can be used in applicable node parameters based on business needs for the corresponding workflow node.

The input parameter in Stored Procedure or Macro nodes always requires a calculated value. This means a JUEL expression in a Formula input parameter must return a value such as "${VarInt1 + VarInt2}" (returns the calculated value of "23").