Set Step

Use the Set step to change the value of a variable.

Set Customizer Window

The Set step supports type casting (with possible loss of precision) from any Number data type (Integer, Float, Long, Double, BigInteger, BigDecimal) to any other Number data type.

You can also use the Set step to convert a String variable to any Number data type. For String conversions, the system replaces all “*” characters with a decimal point (“.”) before performing the conversion.

The Set step also supports the following conversions:

  • Time expressions to string with selection of the type of encoding between Short, Medium, Long and Full format.

  • Date expressions to string with selection of the type of encoding between Short Date, Medium Date, Long Date, Full Date, Short Time, Medium Time, Long Time and Full Time format.

  • Any other type to a string

  • String expression to a Prompt by using the string to represent the user prompt name.

  • A string expression to a Date by parsing the string

  • A string expression to a Time by parsing the string

  • A string expression to a Boolean by accepting yes, true, y, t, or 1 in any case as true values and no, false, n, f, 0 as false values.

  • A document expression into a prompt by using the document content as if it was an audio document.

  • A prompt expression into a document by processing the prompt and storing its content into the specified variable of type document.

Note

For more information on type casting and variables, see Cisco Unified CCX Scripting and Development Series: Volume 3, Expression Language Reference

The following table describes the properties of the Set customizer window:

Property

Description

Variable

Variable for which the value will be set.

Value

Value for the specified variable.