SCXML-tutorial

Contents Overview Examples Editor Forum

<finalize>

The element enables an invoking session to update its data model with data contained in events returned by the invoked session. <finalize> contains executable content that is executed whenever the external service returns an event after the <invoke> has been executed. This content is applied before the system looks for transitions that match the event. Within the executable content, the system variable '_event' can be used to refer to the data contained in the event which is being processed. In the case of parallel states, only the finalize code in the original invoking state is executed.

W3C IRP tests

1. Test 233

If there is a finalize handler in the instance of invoke that created the service that generated the event, the SCXML Processor MUST execute the code in that finalize handler right before it removes the event from the event queue for processing.

test233

test233 - child

2. Test 234

It MUST NOT execute the finalize handler in any other instance of invoke besides the one in the instance of invoke that created the service that generated the event.

test234

test234 - child 1

test234 - child 2

TOP Contents Overview Examples Editor Forum