MashZone NextGen 10.2 | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Advanced Mashup Techniques | Defining and Using Custom Mashup Statements with Macros | Calling a Macro | Macro Domains
 
Macro Domains
For macros that are registered in a user-defined domain, you must:
*Supply the name of the domain in the macro call to uniquelyidentify the macro to invoke. The domain is not required for macros publishedas global macros.
*Add this domain to the mashup or macro using <include>.
The Mashup Editorautomatically adds this <include> statement. See Adding Macro Calls Automatically in the Mashup Editorfor details.
Note: If you omit the domain name in a macro call and the macro name is not unique, the MashZone NextGen Server calls the last macro found with that name.
For example:
<!-- call global macro -->
<macro:myGlobalMacro input="$myDoc" outputvariable="$macroResult"/>

<!-- call to macro in another domain -->
<include domain="Finance"/>
<macro:myMacro domain="Finance" input="$myDoc" outputvariable="$macroResult"/>

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