Mashups in EMML : Advanced Mashup Techniques : Defining and Using Custom Mashup Statements with Macros : Calling a Macro : Passing Input Parameters to the Macro
Passing Input Parameters to the Macro
In most cases, you also need to pass in input parameters to the macro. Input parameters are defined as attributes on the macro reference statement with a name corresponding to the <input> declarations defined in the macro.
For example:
<macro name="myMacro"
xmlns:presto="http://www.jackbe.com/v1.0/EMMLPrestoExtensions"
xmlns:macro="http://www.openmashup.org/schemas/v1.0/EMMLMacro">
<input name="email" type="string"/>
<input name="message" type="string"/>
...
</macro>
...
<macro:myMacro email="myTeam@myOrg.com" message="$myMsg"/>
As with any EMML attribute, the attributes of the macro reference statement accept references to mashup variables or input parameters.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback