Skip to content

Commit f1bc8cb

Browse files
Merge pull request #605 from mulesoft/W-21369029-remove-snippets
W-21369029 remove snippets
2 parents e7ac020 + e7507cc commit f1bc8cb

15 files changed

Lines changed: 63 additions & 569 deletions

modules/ROOT/nav.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
* xref:int-developing-integrations.adoc[]
8383
** xref:int-create-integrations.adoc[]
8484
** xref:int-configure-components.adoc[]
85-
*** xref:int-work-with-code-snippets.adoc[]
8685
*** xref:int-configure-components-add.adoc[]
8786
*** xref:int-configure-dw-expressions.adoc[]
8887
*** xref:int-configure-components-check-connection.adoc[]

modules/ROOT/pages/_partials/acb-component-info.adoc

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ For reference documentation on specific connector and component configurations,
5252

5353
//
5454
// tag::note-component-add-config[]
55-
When adding components, you can start from xref:int-work-with-code-snippets.adoc[code snippets], the canvas, or the configuration XML for your app.
55+
When adding components, you can start from the canvas or the configuration XML for your app.
5656
You can configure components from their configuration panels in the canvas or from the XML.
5757
// end::note-component-add-config[]
5858
//
@@ -234,21 +234,11 @@ The configuration XML file now includes the XML for the HTTP Listener within the
234234

235235
</flow>
236236
----
237-
. Add another component, this time using the XML configuration menu.
237+
. Add another component, this time using the configuration XML.
238238
+
239-
For example, add the `<http:listener-config/>` component from a snippet.
239+
In the configuration XML, place your cursor before the opening `<flow>` tag. Ensure that the cursor is not inside the `<flow/>` element. Add the following code:
240240
+
241-
For more information about snippets, see xref:anypoint-code-builder::int-work-with-code-snippets.adoc[].
242-
+
243-
.. In the configuration XML, place your cursor before the opening `<flow>` tag, and type `http`.
244-
+
245-
Ensure that the cursor is not inside the `<flow/>` element.
246-
+
247-
.. Type `http`, and select the `http:listener-config` snippet:
248-
+
249-
image::anypoint-code-builder::add-http-config-snippet.png["http:listener-config snippet highlighted in the configuration XML menu"]
250-
+
251-
The snippet adds the following code:
241+
// image::anypoint-code-builder::add-http-config-snippet.png["http:listener-config highlighted in the configuration XML menu"]
252242
+
253243
[source,xml]
254244
----

modules/ROOT/pages/af-project-files.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ The `ref` element is used in different elements in the agent network YAML, and i
11451145

11461146
The `ref` element represents another asset that exists in Exchange. The type of asset referenced depends on the context (such as agent, MCP server, LLM provider). The semantic is always that of referencing an asset that exists in Exchange, or will exist when the agent network is published (meaning, it's defined in the file). If referenced, it's in the `dependencies` section of `exchange.json`.
11471147

1148-
This snippet represents a link to an HR agent. The `name` attribute doesn't point to the agent's human friendly or logical name (which can change); instead, it references the `assetId` that `hr-agent` has in Exchange.
1148+
This example represents a link to an HR agent. The `name` attribute doesn't point to the agent's human friendly or logical name (which can change); instead, it references the `assetId` that `hr-agent` has in Exchange.
11491149

11501150
[source,yaml]
11511151
----

modules/ROOT/pages/index.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ A flow reference enables you to trigger execution of a flow or subflow from anot
8383
[[business-groups]]
8484
* Business groups organize APIs, Mule applications, and other resources within an Anypoint Platform organization. Organization administrators create and control access to business groups. For details about business groups, organizations, and related management features, see xref:access-management::business-groups.adoc[].
8585

86-
[[snippets]]
87-
== Code Snippets
88-
89-
Snippets are code patterns that you can insert from the IDE into the configuration XML files of your Mule applications. Using code snippets for reusable code patterns helps you work more efficiently and reduces the potential for configuration errors.
90-
91-
The IDE provides built-in snippets, and you can create your own user snippets. To use and create code snippets, see xref:int-work-with-code-snippets.adoc[].
92-
9386
== Anypoint Platform Product Integrations
9487

9588
//relationships to our other products

modules/ROOT/pages/int-ai-gen-flow-examples.adoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ After reviewing and inserting the generated flow into your project:
7171
----
7272
+
7373
This example flow is configured to poll for new cases every 5000 milliseconds.
74-
. Use built-in snippets to add configurations for your Salesforce instance and email inbox.
74+
. Add the required configurations for your Salesforce instance and email inbox in your configuration XML.
7575

7676
The following is an example of the completed flow:
7777

@@ -165,7 +165,7 @@ The `type` attribute is set to `Account` to specify the object type to update.
165165

166166
=== Complete the Flow
167167

168-
To run this flow, use built-in snippets to add configurations for your Salesforce instance. For more information about built-in snippets, see xref:int-work-with-code-snippets.adoc[].
168+
To run this flow, add the required configurations for your Salesforce instance in your configuration XML.
169169

170170
The following is an example of the completed flow:
171171

@@ -265,7 +265,7 @@ output application/java
265265
After reviewing and inserting the generated flow into your project:
266266

267267
. Update the name of the database table and fields to match what is configured in your MySQL database.
268-
. To run this flow, use built-in snippets to add configurations for your Salesforce instance.
268+
. To run this flow, add the required configurations for your Salesforce instance in your configuration XML.
269269

270270
The following is an example of a completed flow:
271271

@@ -372,7 +372,7 @@ After reviewing and inserting the generated flow into your project:
372372
. Update the `watermarkColumn` in the Database *Listener* to whichever database column is used to indicate new records.
373373
+
374374
The values that are taken from this column are used to filter the contents of the next poll, so that only rows with a greater watermark value are processed.
375-
. To run this flow, use built-in snippets to add configurations for your database and email inbox.
375+
. To run this flow, add the required configurations for your database and email inbox in your configuration XML.
376376

377377
The following is an example of the completed flow:
378378

@@ -430,7 +430,6 @@ The following is an example of the completed flow:
430430

431431
== See Also
432432

433-
* xref:int-work-with-code-snippets.adoc[]
434433
* xref:vibes-create-integrations.adoc[]
435434
* xref:acb-reference.adoc[]
436435
* xref:acb-component-scheduler.adoc[]

modules/ROOT/pages/int-configure-components.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
= Configuring Components
22
:page-deployment-options: cloud-ide, desktop-ide
3+
:page-aliases: int-work-with-code-snippets.adoc, work-with-code-snippets.adoc, create-xml-snippets.adoc
34
:open-config-xml: In the Explorer, open the configuration XML file for your project:
45

56
include::reuse::partial$beta-banner.adoc[tag="anypoint-code-builder"]
@@ -8,7 +9,6 @@ Configure connectors and processors within your implementation and integration p
89

910
Common tasks include the following:
1011

11-
* xref:int-work-with-code-snippets.adoc[Work with Code Snippets]
1212
* <<add-components>>
1313
* xref:int-configure-dw-expressions.adoc[Configure Expressions]
1414
* <<check-connection>>
@@ -17,7 +17,7 @@ Common tasks include the following:
1717
1818
== Before You Begin
1919

20-
* Determine which connectors, processors, and snippets you intend to use.
20+
* Determine which connectors and processors you intend to use.
2121
+
2222
// Note on ways to start component configs:
2323
include::partial$acb-component-info.adoc[tags="note-component-add-config"]

modules/ROOT/pages/int-create-integrations.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,4 @@ The file's canvas provides the same options for building your project file that
132132

133133
* xref:start-workspaces.adoc[]
134134
* xref:acb-reference.adoc[]
135-
* xref:int-work-with-code-snippets.adoc[]
136135
* xref:debugging-mule-apps.adoc[]

modules/ROOT/pages/int-create-secure-configs.adoc

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,9 @@ The POM file includes dependencies for the components in the configuration XML.
391391

392392
To use an encrypted value in a Mule application:
393393

394-
. Before the `<flow/>` element in the configuration XML, add the Secure Configuration Properties _snippet_ (`<secure-properties:config/>`) by pressing Cmd+Space (Mac) or Ctrl+Space (Windows), typing the initial letters of the element name, such as `secu`, and then selecting the snippet:
394+
. Before the `<flow/>` element in the configuration XML, add the following Secure Configuration Properties configuration (`<secure-properties:config/>`):
395395
+
396-
image::acb-snippet-secure-config-prop.png["Selecting Secure Configuration Properties Snippet"]
397-
+
398-
The XML for an unmodified snippet looks like this before a `<flow/>` element:
396+
// image::acb-snippet-secure-config-prop.png["Selecting Secure Configuration Properties"]
399397
+
400398
[source,xml]
401399
----
@@ -409,12 +407,10 @@ The XML for an unmodified snippet looks like this before a `<flow/>` element:
409407
...
410408
----
411409
+
412-
The snippet preconfigures parts of the element that the basic XML configuration does not, so be sure to select the _snippet_ and _not_ the basic XML for this element, which has the same name but a different icon. Like all snippets, this snippet is identified by a two-dimensional box icon, while the basic XML for this element has a three-dimensional box icon.
413-
+
414-
When you _first_ add the `<secure-properties:config/>` snippet to the configuration XML, you can tab to the `algorithm` attribute to select another algorithm, or you can change the value manually:
410+
. Optionally change the `algorithm` attribute to select another algorithm:
415411
+
416412
image::int-secure-config-algorithms.png["List of supported algorithms in Secure Configuration Properties module."]
417-
. Configure the snippet with values for the `file`, `key`, and `algorithm` attributes, for example:
413+
. Configure the element with values for the `file`, `key`, and `algorithm` attributes, for example:
418414
+
419415
[source,xml]
420416
----
@@ -431,7 +427,7 @@ If you want to use the variable `$\{env}` in your filename configuration, see <<
431427
* `name`: A name of your choice for the encryption key (defaults to `${encryption.key}`)
432428
+
433429
This name serves as the key for the encryption value (password) used to encrypt your secure properties with the Secure Properties Tool.
434-
* `algorithm`: Algorithm you used to encrypt your secure properties (defaults to Blowfish in the snippet). Other <<algorithms, algorithms>> are available.
430+
* `algorithm`: Algorithm you used to encrypt your secure properties (defaults to Blowfish in the previous example). Other <<algorithms, algorithms>> are available.
435431
. In the connector or component XML, add the key of an encrypted property as the value of an XML attribute, for example:
436432
+
437433
[source,xml]
@@ -510,7 +506,7 @@ Before you begin:
510506

511507
To hide sensitive values from the Runtime Manager UI when you deploy to CloudHub or CloudHub 2.0:
512508

513-
. In the `mule-artifact.json` file for your application, provide the _name_ of the encryption key (`encryption.key` by default) that you provided in the global `<secure-properties:config/>` snippet within your configuration XML, for example:
509+
. In the `mule-artifact.json` file for your application, provide the _name_ of the encryption key (`encryption.key` by default) that you provided in the global `<secure-properties:config/>` element within your configuration XML, for example:
514510
+
515511
----
516512
{

modules/ROOT/pages/int-developing-integrations.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Some common use cases are:
2222
After you xref:int-create-integrations.adoc[create your integration project],
2323
you can optionally:
2424

25-
* xref:int-work-with-code-snippets.adoc[Work with code snippets].
2625
* xref:int-create-secure-configs.adoc[Define and secure properties for your Mule application].
2726
* xref:int-trigger-flows.adoc[Trigger flows in your development environment].
2827
* xref:int-use-dw-to-transform-data.adoc[Use the DataWeave language].

0 commit comments

Comments
 (0)