Skip to content

Commit 0330e81

Browse files
Removing code snippets, references, and procedures
1 parent d21245e commit 0330e81

7 files changed

Lines changed: 44 additions & 45 deletions

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,19 +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-
.. In the configuration XML, place your cursor before the opening `<flow>` tag, and type `http`.
242-
+
243-
Ensure that the cursor is not inside the `<flow/>` element.
244-
+
245-
.. Type `http`, and select the `http:listener-config` snippet:
246-
+
247-
image::anypoint-code-builder::add-http-config-snippet.png["http:listener-config snippet highlighted in the configuration XML menu"]
248-
+
249-
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"]
250242
+
251243
[source,xml]
252244
----

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/int-ai-gen-flow-examples.adoc

Lines changed: 4 additions & 4 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,add configurations for your Salesforce instance.
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

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/tut-af-integrate-connect-to-a-db.adoc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,8 @@ image::add-mysql-driver-dependency.png["pom.xml with new dependency highlighted"
7070
== Add a Database Connector Configuration
7171

7272
. In Anypoint Code Builder, open `american-ws-anypoint-code-builder.xml`.
73-
. In the configuration XML, add the global `<db:config/>` snippet.
74-
.. Place your cursor before the opening <flow> tag.
75-
.. Press Ctrl+Spacebar (Mac) or Cmd+Spacebar (Windows).
76-
.. Type `mysql` to search for the snippet.
77-
.. Select the snippet `db:mysql-config`.
73+
. In the configuration XML, add the following global `<db:config/>` configuration before the opening <flow> tag:
7874
+
79-
.Snippet XML before the opening <flow> tag:
8075
[source,xml]
8176
----
8277
<db:config name="Mysql_Database_Config" >
@@ -131,7 +126,7 @@ NOTE: The `getFlights` flow contains an expected error: `The content of element
131126
. Add the *Select* operation for Anypoint Connector for Database (Database Connector).
132127
+
133128
Either search for *Select* or navigate to the operation from *Connectors* > *Database* > *Select*.
134-
. Provide this configuration for the snippet:
129+
. Provide this configuration for the Select operation:
135130
+
136131
[tabs]
137132
====

modules/ROOT/pages/tut-graphql-test-first-implementation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ curl --request POST \
4444
If you receive the error `curl: (7) Failed to connect to localhost port 8081 after 0 ms: Couldn't connect to server`, stop and rerun the application in debug mode. For guidance with stopping the application, see xref:int-debug-mule-apps.adoc[].
4545
+
4646
TIP: Tools such as Postman provide a way to build GraphQL queries. For example,
47-
in Postman, you can place your query in the *Body* tab and find the code snippet for a `curl` request. The resulting command includes newline (`\\n`) and tab (`\\t`) characters that you can delete from the `curl` command's `--data` value. For more information, see https://learning.postman.com/docs/sending-requests/graphql/graphql-http/[Make an HTTP call with GraphQL] in the Postman documentation.
47+
in Postman, you can place your query in the *Body* tab and copy the example `curl` request. The resulting command includes newline (`\\n`) and tab (`\\t`) characters that you can delete from the `curl` command's `--data` value. For more information, see https://learning.postman.com/docs/sending-requests/graphql/graphql-http/[Make an HTTP call with GraphQL] in the Postman documentation.
4848
+
4949
Anypoint Code Builder returns the following output in the terminal (manually reformatted to enhance readability):
5050
+

modules/ROOT/pages/tut-slack-create-config-files-sfdc.adoc

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,50 @@ email:
3737
slack:
3838
token: "yourSlackToken"
3939
--
40-
. Navigate to your `new-case-salesforce.xml` file, add a new line before the `</mule>` tag, type `configuration` and select *mule:configurationProperties*:
40+
. Navigate to your `new-case-salesforce.xml` file, add a new line before the `</mule>` tag, and paste this line:
4141
+
42-
image::select-mule-config-properties-contacts-sync.png["Code snippet with *mule:configurationProperties* highlighted in search results"]
42+
[source,XML]
43+
--
44+
<configuration-properties file="config.yaml" doc:name="Configuration properties" />
45+
--
46+
// image::select-mule-config-properties-contacts-sync.png["Code snippet with *mule:configurationProperties* highlighted in search results"]
47+
48+
////
4349
. Scroll through the attributes and set the value of `file` to `config.yaml`:
4450
+
4551
[source,XML]
4652
--
4753
<configuration-properties file="config.yaml" doc:name="Configuration properties" />
4854
--
55+
////
4956

5057
== Configure Your Salesforce Connector
5158

5259
Use the values in your `config.yaml` file to connect the Salesforce Connector to your Salesforce environment:
5360

54-
. In your `new-case-salesforce.xml` file, create a new line after the `<configuration-properties/>` element, type `salesforce`, and select *salesforce:sfdc-config*:
61+
. In your `new-case-salesforce.xml` file, create a new line after the `<configuration-properties/>` element, and paste the following code:
5562
+
56-
image::sync-api-select-sfdc-config.png["Code snippet with *Salesforce:sfdc-config* highlighted in search results"]
57-
. Set the *name* field to `Salesforce-Config`.
58-
. Create a new line, type `basic` and select *Salesforce:Basic*:
59-
+
60-
image::basic-auth-sfdc-connector.png["Code snippet with *Salesforce:basic* highlighted in search results"]
61-
. Configure the `username` and `password` properties to use your configuration file values:
63+
[source,XML]
64+
--
65+
<salesforce:sfdc-config name="Salesforce-Config" doc:name="Config">
66+
<salesforce:basic-connection username="${salesforce.username}" password="${salesforce.password}" />
67+
</salesforce:sfdc-config>
68+
--
69+
70+
// image::sync-api-select-sfdc-config.png["Code snippet with *Salesforce:sfdc-config* highlighted in search results"]
71+
// . Set the *name* field to `Salesforce-Config`.
72+
// . Create a new line, type `basic` and select *Salesforce:Basic*:
73+
//+
74+
// image::basic-auth-sfdc-connector.png["Code snippet with *Salesforce:basic* highlighted in search results"]
75+
//. Configure the `username` and `password` properties to use your configuration file values:
6276
+
77+
////
6378
[source,XML]
6479
--
6580
<salesforce:basic-connection username="${salesforce.username}" password="${salesforce.password}" securityToken="${salesforce.token}" />
6681
--
6782
+
83+
////
6884
[NOTE]
6985
--
7086
When you move your cursor over the `${salesforce.username}` and `${salesforce.password}` elements, Anypoint Code Builder shows the values from the configuration file.
@@ -95,7 +111,7 @@ If you get an error, verify the error message to troubleshoot further.
95111
* `objectType`: *Case*
96112
* `config-ref`: *Salesforce-Config*
97113
* `name`: *On New Case*
98-
. In the `<salesforce:new-object-listener/>` element, replace `<scheduling-strategy/>` with the following snippet:
114+
. In the `<salesforce:new-object-listener/>` element, replace `<scheduling-strategy/>` with the following XML:
99115
+
100116
[source,XML]
101117
--
@@ -112,7 +128,7 @@ image::add-logger-end-flow-canvas.png["The flow canvas with the *Add Flow* plus
112128
+
113129
image::drag-logger-canvas.png["A workflow with the *Logger* component added"]
114130
+
115-
A `logger` component is added to the `flow` snippet in the code editor.
131+
A `logger` component is added to the flow in the code editor.
116132
+
117133
. Replace the `logger` component in the code editor with the following:
118134
+

0 commit comments

Comments
 (0)