Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 2.78 KB

content.md

File metadata and controls

59 lines (43 loc) · 2.78 KB
Contents Overview Examples Editor Forum

Video version

A container element holding data to be passed to an external service.

Example:

<send event="Event1">
	<content>{ 1, 2, 3}</content>
</send>

<send event="Event2">
	<content expr="'Text message'"/>
</send>

Attribute Details

NameRequiredAttribute ConstraintsTypeDefault ValueValid ValuesDescription
exprfalsemust not occur with child contentValue expressionnoneAny valid value expressionA value expression. See 5.9.3 Legal Data Values and Value Expressions for details.

Children

When present, the children of <content> may consist of text, XML from any namespace, or a mixture of both.

A conformant SCXML document must not specify both the 'expr' attribute and child content.

When the SCXML Processor evaluates the content element, if the 'expr' value expression is present, the Processor MUST evaluate it and use the result as the output of the content element.

test527

If the evaluation of 'expr' produces an error, the Processor MUST place error.execution in the internal event queue and use the empty string as the output of the content element.

test528

If the 'expr' attribute is not present, the Processor MUST use the children of content as the output.

test529

TOP Contents Overview Examples Editor Forum