ExternalObject

simplicite~ ExternalObject

new ExternalObject(ses, name)

Source:
External object.
ou should never instanciate this class directly but rather call getExternalObject.
Parameters:
Name Type Description
ses object Session
name string Business object name

Members

(constant) metadata

Source:
Metadata

(constant) path :string

Source:
Path
Type:
  • string

Methods

call(paramsopt, dataopt, optsopt) → {promise.<object>}

Source:
Call an external object
Parameters:
Name Type Attributes Description
params object <optional>
Optional URL parameters
data object <optional>
Optional data (for 'post' and 'put' methods only)
opts object <optional>
Options
Properties
Name Type Attributes Description
error function <optional>
Error handler function
method object <optional>
Optional method 'get', 'post', 'put' or 'delete' (defaults to 'get' if data is not set or 'post" if data is set
contentType function <optional>
Optional data content type (for 'post' and 'put' methods only)
Returns:
Promise to the external object content
Type
promise.<object>

callParams(params)

Source:
Build URL-encoded parameters
Parameters:
Name Type Description
params object URL parameters as key/value pairs

getName() → {string}

Source:
Get name
Returns:
Name
Type
string

(inner) _call(callback, paramsopt, dataopt, optsopt)

Source:
Call an external object
Parameters:
Name Type Attributes Description
callback function Callback (called upon success)
params object <optional>
Optional URL parameters
data object <optional>
Optional data
opts object <optional>
Options