In the Recipe panel, select the step or steps to include in your macro.
NOTE: Source steps from your recipe do not have to be consecutive. In the macro, steps are listed in the order in which they appear in the recipe.
From the recipe toolbar context menu, select Create or replace macro.
NOTE: The dialog name and options vary based on the selection of create or replace macros.
From the drop-down, select Create a macro. Enter a Name and an optional Description.
NOTE: The Name of the macro appears in the
. Please verify that the Name is unique.
D s webapp
In the Create macro dialog, you can review the selected steps and the inputs for the macros:
Create macro inputs
- For each step in the macro:
- Left column: Select the step.
- Middle column: For the selected step, review the values that were specified for the step in the original recipe.
- Right column: As needed, you can provide values for the currently selected inputs from the middle column. For a selected value, you can choose to create a new input or use an existing input.
- You can review the macro inputs separately in the Inputs tab. For more information, see "Define macro inputs" below.
- When you have finished specifying your macro and its inputs, click Create.
- The macro is created.
- In the recipe location where you created it from, the steps from which you created your macro are replaced with an Apply transformation step that references your macro name.
NOTE: This operation converts the selected instance of the macro to a set of steps. It does not modify the definition of the macro. If preferred, you can delete the macro from the Macros page, which forces all instances of the macro in the workspace to be automatically converted to steps. For more information, see Macros Page.
To modify the steps in your macro, you must perform a replacement of all steps in the current definition.
- Export a macro definition to your desktop.
- In the Macros page, find the macro whose steps you'd like to replace with a macro that you've exported to your desktop. From its context menu, select Replace.
- You may need to remap macro inputs in the imported steps to the existing references. See "Update macro inputs" below.
For more information, see Macros Page.
Replace macro with steps
The following method can be used to replace a macro definition with steps that you have created in a recipe.
Tip: You can see the raw
You can use macros that you have created in other recipe locations. See Apply a Macro.
You can manage macros through the Library page. See Macros Page .
|D s also|