Overview
Overview of Macros
Macros are business rules that are stored in the APM Rules Library and can be invoked outside of standard record functions via URLs to support workflows and invoke actions independently of creating, updating, or deleting records.
A macro is any public static method defined in a Rules Library project and can perform any function you like. After you have created a macro, you will need to construct a URL to invoke it from the desired location (e.g., Home Page, query results, link on the Associated Pages menu).
Macros are rules that can be invoked outside of standard record functions via URLs to support workflows and invoke actions independently of creating, updating, or deleting records.
Macros are stored in the Rules Library. To create a macro, you create a Rules Library project and then write the rules that you want the macro to execute. After the macro exists, it can be invoked via a APM URL. Where you put the URL in the APM Framework application (e.g., on a Home Page or in Query results) will depend upon the workflow within which you want to execute logic defined in the macro.
A macro can be any static public method and can perform any function you like. Macros are most useful for facilitating workflows or for invoking custom functionality from the Home Page, Query Results, or a link on the Associated Pages menu. For example, you might want to develop a macro that displays a dialog box that prompts a user to make a choice and then performs an action based upon the choice that is made. Macros add extensibility and flexibility to the APM baseline features.
The URL for calling a macro:
!webmacros/macrorunner?project=public\rules library\client\macrobaseline\test¯o=macrotest&EntityKey=[enty_key]
Text | Describes |
---|---|
test | Public class name in the rule |
macrotest | Function name |
EntityKey | [enty_key] specifying the parameters passed |