<nuance:taskend>

Identifies the completion of a task.

This element will generate an entry in the call log as follows:

TIME=time | CHAN=channel|EVNT=SWItrxe| NAME=name| RSLT=result| RESN=reason|INFO=info

For example:

TIME=20061107170022513|CHAN=10.3.21.100,SWMS-117|EVNT=SWItrxe|NAME=localityDialog|RSLT=SUCC|RESN=|INFO=1.Disambiguation anchor

The time and channel are supplied by the system. The name, result, reason, and info are determined by the corresponding attribute entries in the element.

Attributes

This section describes the attributes you can set for this element.

Name

Data type

Default

cond

CDATA

optional

info

CDATA

optional

name

NMTOKENS

required

reason

CDATA

optional

reasonexpr

CDATA

optional

result

CDATA

optional

resultexpr

CDATA

optional

name

The name attribute specifies the name of the task.

cond

The cond attribute is a Boolean expression that indicates whether the task completed successfully. If true, the result of the task is “SUCC” for success; if false, the result is “FAIL” for failure. If no cond is specified, defaults to “true”.

The cond, result, and resultexpr attributes are mutually exclusive. Only one at a time is allowed.

info

The info attribute provides additional information.

reason

The reason attribute specifies the reason why the task ended with the specified result. If the reason is not specified or is defined as a blank value, the string value defaults to “success” if the task result was successful (RSLT=SUCC), failure if the task was unsuccessful (RSLT=FAIL), or “unknown” if the result is not known (RSLT=UNKN).

The reason and reasonexpr attributes are mutually exclusive. Only one at a time is allowed.

reasonexpr

The reasonexpr attribute is a JavaScript expression that evaluates to a string that indicates the reason the task ended with the specified result.

The reason and reasonexpr attributes are mutually exclusive. Only one at a time is allowed.

Note: If the reasonexpr attribute is not specified or evaluates to a blank string, the <nuance:taskend> element uses the default for the reason attribute (“success”, “failure”, or “unknown”).

result

The result attribute indicates the outcome of the task. In the call log, the result can be successful (SUCC), a failure (FAIL), or not known (UNKN). Any outcome other than success or failure is treated as unknown. If not specified, the default result is success.

The cond, result, and resultexpr attributes are mutually exclusive. Only one at a time is allowed.

resultexpr

The resultexpr attribute is an expression that evaluates to a string indicating the outcome of the task.

The cond, result, and resultexpr attributes are mutually exclusive. Only one at a time is allowed.

Children

None.

Parents

Sample code

<nuance:taskend name="place_order" 
cond="credit_card == 'approved'" reason="credit_card_rejected"/>