MashZone NextGen 10.2 | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Writing Mashups in EMML | Declaring Mashup and Macro Variables and Parameters | <input>
 
<input>
Optional element to declare parameters that can be used as input to mashup, operation or macro. Input parameters can be used to provide values for EMML statements including input parameters for component mashables.
See also Declaring Mashup and Macro Variables and Parameters for more information and examples.
Can Contain
Typically empty. The input data can be defined as text and any well-formed literal XML.
Allowed In
mashup | macro | operation
Attributes
Name
Required
Description
name
yes
The required name for a variable, input parameter or output parameter.
Parameter names must be unique within the scope of the mashup script. Names for variables must be unique within the scope of the mashup, if the variable has a global scope, or within the statement in which the variable is declared.
See also Valid Names for Variables and Parameters for reserved names and other rules.
type
yes
The required data type for this input parameter. Valid values for this include:
*boolean
*date (deprecated, use datetime instead)
*datetime
*document (complex, structured data)
*number
*string
*Any token that identifies a data type defined by a published mashable. Tokens are typically used for input or output parameters where the service has metadata for a named datatype.
See also subtype.
subtype
For document-type input parameters, optionally defines the content as JSON. For JSON inputs, subtype ensures that the JSON input is not converted to XML.
Currently, input parameters with a JSON subtype are supported only for the POST body for <directinvoke>. See Handling JSON Responses or Inputs for more information and examples.
service
The optional name of the published mashable that has metadata defining the data type for this parameter or variable. This is required if the value of the type attribute is a token.
default
The optional, simple default value to use for this variable, input parameter or output parameter. You cannot set default values for document-type variables or parameters.
label
The optional label to display for this input parameter. Typically, this is used in Wires or in apps.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release