Mashups in EMML : Advanced Mashup Techniques : Defining and Using Custom Mashup Statements with Macros : Calling a Macro
Calling a Macro
 
Macro Reference Namespace
Macro Domains
Passing Input Parameters to the Macro
Receiving Macro Results
Calling Macros From Another Macro
<macro:custom-macro-name>
Once you have defined macros or included a macro domain in a mashup script or another macro, you call the macro in your mashup or other macro with a macro reference statement - an element with the macro name and the Macro Reference Namespace.
For a macro named "myMacro", for example, the call to use the macro might look like this:
<macro:myMacro domain="myDomain"/>
Note:  
Examples of macro calls in this topic use macro as the prefix for the Macro Reference Namespace.
See Macro Reference Namespace, Macro Domains, Passing Input Parameters to the Macro, Calling Macros From Another Macro and Receiving Macro Results for information on the options and requirements of macro reference statements. You can also automatically insert macro reference statements in the Mashup Editor. See Adding Macro Calls Automatically in the Mashup Editor for information.
See also <macro:custom-macro-name>.
Copyright © 2006-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback