Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 2.45 KB

finalize.md

File metadata and controls

28 lines (17 loc) · 2.45 KB
Contents Overview Examples Editor Forum

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.

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

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