MashZone NextGen 10.2 | Appendix | Legacy Presto components | Mashables and Mashups | Working in the Mashup Editor | Adding Macro Calls Automatically in the Mashup Editor
 
Adding Macro Calls Automatically in the Mashup Editor
To use a macro in a mashup script or another macro, you add an <include> statement for the domain the macro belongs to and add the custom statement for that macro. You can automatically generate both the <include> and custom statement for a macro in Mashup Editor.
1. Open the mashup script in the Mashup Editor and move the cursor to the line where you want to call the macro.
2. Expand the Macros menu and click on the macro you want to call.
This inserts both an <include> statement for the domain that the macro belongs to and the custom statement to invoke the macro itself. For example:
3. If the macro has input parameters, add attributes for each input you want to use with this call to the macro.
You can enter literal values, XPath expressions or references to variables from this mashup for the input parameters. For example:
4. In the outputvariable attribute, enter a reference to the variable that should receive the results of the macro.

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