execute
Call a named section as a subroutine. Execution continues in the called section, then returns to the
caller when the section completes (via return or by
reaching the end of the section).
The destination must be the name of a section defined in the current document — execute does not
accept URLs or inline documents in the messaging context.
Properties
execute
An object that accepts the following properties.
execute.dest
Name of the section to execute. Must reference a section defined in the current document.
execute.params
Parameters accessible as params.* in the called section. Replaces (does not merge with) any outer
params from the caller.
Variables
After the called section completes, execute exposes the following variable in the caller’s
context. Variables that the subroutine itself set via reply
or request — reply_result, reply_message_id,
request_result, request_response, request_response_code, request_response_body — are
also propagated back to the caller automatically; see those methods for details.
return_value
The value supplied to return inside the called
section. Set only when the subroutine called return with an argument. Absent when the
subroutine ran to completion without return.