reuse::partial$beta-banner.adoc
Configure connectors and processors within your implementation and integration projects from the canvas or configuration XML.
Common tasks include the following:
-
Determine which connectors and processors you intend to use.
-
Review Get Familiar with the Basics to ensure that you are familiar with important concepts and features.
Understand the basics of Mule flows, the Mule event structure, including the payload, attributes, and Mule variables. To transform data and add expressions to your components, have some familiarity of the DataWeave language.
To set custom metadata for a component, add or open the component in the canvas and then apply the metadata using the custom metadata options from the Metadata tab, Expression Builder, or dataweave functions. For more information, see Set Custom Metadata on the Metadata or Data Tab and see Set Custom Metadata in Transformation Builder.
You can copy components and paste them in the same flow or in a different file or project.
To copy a component:
-
Right-click the component. To copy multiple components, press and hold Ctrl (Windows) or Cmd (macOS), select the components, and then right-click a selected component.
-
Click Copy Component. Or press Ctrl+c (Windows) or Cmd+c (macOS).
-
Right-click the
icon in the current flow or in a different file or project and select Paste Component or press Ctrl+v (Windows) or Cmd+v (macOS). The component and its configuration are pasted in the new location. If multiple components are copied, they’re pasted in the same order as they’re copied.
|
Note
|
Some components, like an HTTP Listener, can’t be pasted to certain locations. An error message shows if a component can’t be pasted to the location. |
You can temporarily remove components from your flow without deleting them by disabling them directly from the canvas. This action is equivalent to commenting out code in the XML editor.
To disable a component:
-
Right-click a component in the canvas.
-
Select Disable Component.
Disabled components appear with a dashed outline and a disabled icon. In the XML editor, the component is wrapped in an XML comment (<!-- … -→), preserving the code but preventing it from executing. Disabled components appear greyed out in the canvas and are ignored at runtime.
To restore a component: . Right-click the disabled component. . Select Enable Component.
This also removes the comment from the XML view.
If you previously set a breakpoint on a component and then disable it, the breakpoint remains associated with the component but is inactive.
You can’t add new breakpoints to a disabled component until it’s re-enabled.
If a component references another flow (for example, via a Flow Reference connector), you can quickly access the target flow in the canvas by pressing Ctrl+Alt+g (Windows) or Cmd+Option+g (macOS).
Anypoint Code Builder opens the target flow either in the application canvas or the MUnit canvas, depending on the context. In the MUnit canvas, you can use Flow Reference components to invoke or simulate execution of other flows. To help you trace and validate the logic, navigate to the referenced flow from within the test by pressing Ctrl+Alt+g (Windows) or Cmd+Option+g (macOS).
Anypoint Code Builder opens the target flow in the application canvas (or in another MUnit test flow if that’s the target). Right-click a Flow Reference in the MUnit canvas to navigate to its target flow.
