Appendix : Legacy Presto components : Mashables and Mashups : Mashups in EMML : Advanced Mashup Techniques : Defining and Using Custom Mashup Statements with Macros : Creating and Registering Macros : Create a Reusable Macro Library
Create a Reusable Macro Library
Macro libraries are XML files with the definitions or one ore several macros within one domain. Because they are file-based, macro libraries can be a good way to track macros in source control but still easily register them in Business Analytics.
To create a macro library file
1. Create a macro library file in any XML editor of your choice.
2. Add a <macros> element as the root element of the file.
For example:
<macros xmlns="http://www.openmashup.org/schemas/v1.0/EMML"
domain="myDomain">
...
</macros>>
3. Optionally, define the domain for all macros in this library in the domain attribute.
4. Define one or more macros for this library with the <macro> statement.
5. Save the macro library file.
Macro libraries typically use the *.emml-macros file extension, although thisis not required.
6. Use the macropub mashup utility command to register specific macros or all macros in this library. See Publishing and Managing Macros from the Command Line for instructions.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback