Programming Guide



receive_args

Receives in and in/out parameters for a method

Synopsis

receive_args argList

Arguments

argList
Specifies a comma-delimited list of target variables to receive the incoming data for the method.

Environment

COM, EJB

Scope

Server

Description

The receive_args command processes a list of in and in/out parameters that have been passed by a client when calling a method. Since the method's parameters cannot be passed directly to a JPL procedure, this command is how the method receives incoming data.

When processing the targets on the list, the command skips the out only parameters, and takes the other parameters in the order in which they were provided.

Example

// This JPL procedure implements the GetCustomer method.
// The parameters are defined as:
	// [in, out]				CompanyName
// [in] CompanyID
// [out] CustomerID
// [out] Phone
proc GetCustomer
{
receive_args (CompanyName, CompanyID)
call sm_tm_command ("VIEW")
return_args (CompanyName, CustomerID, Phone)

See Also

return_args, raise_exception