Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | 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 © 2019 | 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