Loading...
Loading...
Compare original and translation side by side
global-configs.xmlglobal-configs.xmlflowchart TD
Start{User Intent} -->|connector, config, connection| CC[Connector Config]
Start -->|TLS, SSL, certificate| TLS[TLS Context]
Start -->|object store, key-value| OS[Object Store]
Start -->|caching, cache strategy| CS[Caching Strategy]
Start -->|error handler, on-error| EH[Error Handler]
Start -->|autodiscovery, API gateway| AD[API AutoDiscovery]
Start -->|import project, shared library| IMP[Import]
Start -->|properties, config.yaml, env| PROP[Properties]
Start -->|global-property, inline| GP[Global Property]
Start -->|list all, show all configs| LIST[List All]
Start -->|find usages, where is used| FIND[Find Usages]
Start -->|validate, dangling ref| VAL[Validate]
Start -->|consolidate, centralize| CON[Consolidate]
CC --> OP{Operation}
TLS --> OP
OS --> OP
CS --> OP
EH --> OP
AD --> OP
IMP --> OP
PROP --> OP
GP --> OP
OP -->|Create| CREATE[Generate XML + config.yaml + pom.xml]
OP -->|Get| GET[Scan & Display]
OP -->|Edit| EDIT[Modify & Validate]
OP -->|Delete| DELETE[Remove & Cleanup]flowchart TD
Start{User Intent} -->|connector, config, connection| CC[Connector Config]
Start -->|TLS, SSL, certificate| TLS[TLS Context]
Start -->|object store, key-value| OS[Object Store]
Start -->|caching, cache strategy| CS[Caching Strategy]
Start -->|error handler, on-error| EH[Error Handler]
Start -->|autodiscovery, API gateway| AD[API AutoDiscovery]
Start -->|import project, shared library| IMP[Import]
Start -->|properties, config.yaml, env| PROP[Properties]
Start -->|global-property, inline| GP[Global Property]
Start -->|list all, show all configs| LIST[List All]
Start -->|find usages, where is used| FIND[Find Usages]
Start -->|validate, dangling ref| VAL[Validate]
Start -->|consolidate, centralize| CON[Consolidate]
CC --> OP{Operation}
TLS --> OP
OS --> OP
CS --> OP
EH --> OP
AD --> OP
IMP --> OP
PROP --> OP
GP --> OP
OP -->|Create| CREATE[Generate XML + config.yaml + pom.xml]
OP -->|Get| GET[Scan & Display]
OP -->|Edit| EDIT[Modify & Validate]
OP -->|Delete| DELETE[Remove & Cleanup]src/main/mule/src/main/resources/pom.xml@mulesoft/anypoint-cli-dx-mule-plugindx mule describe-connectorsrc/main/mule/src/main/resources/pom.xml@mulesoft/anypoint-cli-dx-mule-plugindx mule describe-connectorprojectDirconnectorNameprojectDirelementTypeprojectDirprojectDirprojectDirconnectorNameprojectDirelementTypeprojectDirprojectDirsearch_assetget_assetdescribe-connectorget_latest_connector.shpick_connector.shglobal-configs.xmlreferences/global-config-conventions.mdpom.xmlpom.xml<dependency><dependencies>scripts/Bash| Script | Purpose |
|---|---|
| Search Exchange for connector candidates (one GAV per line) |
| Record chosen GAV as a draft |
| Run |
| Turn a saved connector JSON into |
<skill-root>/scripts/<skill-root>Read| File | Content | When to Read |
|---|---|---|
| XML templates, namespace URIs, XSD URLs, pom.xml dependencies, attribute tables, validation rules, and connector config generation rules for ALL element types. | Before generating ANY XML — verify structure, required attributes, namespace, and dependency. |
| Element ordering, namespace management, centralization rules, default project structure, consolidation decision matrix. | When placing elements in |
| Property file formats, | When creating/editing properties files, setting up environments, or validating placeholders. |
search_assetget_assetdescribe-connectorget_latest_connector.shpick_connector.shglobal-configs.xmlreferences/global-config-conventions.mdpom.xmlpom.xml<dependencies><dependency>scripts/Bash| 脚本 | 用途 |
|---|---|
| 在Exchange中搜索连接器候选(每行一个GAV) |
| 将选定的GAV记录为草稿 |
| 执行 |
| 将保存的连接器JSON转换为 |
<skill-root>/scripts/<skill-root>Read| 文件 | 内容 | 读取时机 |
|---|---|---|
| 所有元素类型的XML模板、命名空间URI、XSD URL、pom.xml依赖项、属性表、验证规则和连接器配置生成规则。 | 生成任何XML之前——验证结构、必填属性、命名空间和依赖项。 |
| 元素排序、命名空间管理、集中化规则、默认项目结构、整合决策矩阵。 | 在 |
| 属性文件格式、 | 创建/编辑属性文件、设置环境或验证占位符时。 |
AskUserQuestion| Keywords | Domain |
|---|---|
| connector, config, connection, Salesforce, HTTP, DB, database, Slack, S3, ServiceNow, Jira, NetSuite, oauth, credentials | → CONNECTOR CONFIG |
| TLS, SSL, trust store, key store, certificate, mTLS | → TLS CONTEXT |
| object store, key-value store, persistent store, os:config | → OBJECT STORE |
| caching, cache strategy, cache scope | → CACHING STRATEGY |
| error handler, global error, default error handler, on-error | → ERROR HANDLER |
| autodiscovery, API gateway, API ID, API Manager | → API AUTODISCOVERY |
| import project, reference project, shared library, JAR import | → IMPORT |
| properties, config.yaml, .properties, placeholder, environment, dev/QA/prod, multi-env, check placeholders, unresolved properties | → PROPERTIES |
| global-property, inline property, name-value | → GLOBAL PROPERTY |
| list all, what global elements, show all configs | → LIST ALL |
| find usages, where is used, which flows reference | → FIND USAGES |
| validate, check config exists, dangling reference | → VALIDATE |
| consolidate, centralize, move to global-config | → CONSOLIDATE |
| Intent | Operation |
|---|---|
| Create / add / set up / configure (new) | → CREATE |
| Get / list / show / view | → GET |
| Edit / update / modify / change | → EDIT |
| Delete / remove / drop | → DELETE |
What would you like to do? (create, view, edit, delete, validate, consolidate)
AskUserQuestion| 关键词 | 领域 |
|---|---|
| connector, config, connection, Salesforce, HTTP, DB, database, Slack, S3, ServiceNow, Jira, NetSuite, oauth, credentials | → CONNECTOR CONFIG |
| TLS, SSL, trust store, key store, certificate, mTLS | → TLS CONTEXT |
| object store, key-value store, persistent store, os:config | → OBJECT STORE |
| caching, cache strategy, cache scope | → CACHING STRATEGY |
| error handler, global error, default error handler, on-error | → ERROR HANDLER |
| autodiscovery, API gateway, API ID, API Manager | → API AUTODISCOVERY |
| import project, reference project, shared library, JAR import | → IMPORT |
| properties, config.yaml, .properties, placeholder, environment, dev/QA/prod, multi-env, check placeholders, unresolved properties | → PROPERTIES |
| global-property, inline property, name-value | → GLOBAL PROPERTY |
| list all, what global elements, show all configs | → LIST ALL |
| find usages, where is used, which flows reference | → FIND USAGES |
| validate, check config exists, dangling reference | → VALIDATE |
| consolidate, centralize, move to global-config | → CONSOLIDATE |
| 意图 | 操作类型 |
|---|---|
| Create / add / set up / configure (new) | → CREATE |
| Get / list / show / view | → GET |
| Edit / update / modify / change | → EDIT |
| Delete / remove / drop | → DELETE |
你想要执行什么操作?(create, view, edit, delete, validate, consolidate)
bash scripts/get_latest_connector.sh salesforce sfdcAskUserQuestionpom.xmlbash scripts/pick_connector.sh sfdc com.mulesoft.connectors:mule-salesforce-connector:11.1.0pom.xmlbash scripts/get_latest_connector.sh salesforce sfdcAskUserQuestionpom.xmlbash scripts/pick_connector.sh sfdc com.mulesoft.connectors:mule-salesforce-connector:11.1.0pom.xmlbash scripts/describe_connector.sh sfdcconfigs[]connectionProvidersbash scripts/describe_connector.sh sfdcconfigs[]connectionProvidersWhat name for this connector configuration? (e.g.,)salesforceConfig
此连接器配置的名称是什么?(例如:)salesforceConfig
anypoint-cli-v4 dx mule describe-connector \
--connector "$(bash scripts/build_gav.sh tmp/connector-choices/sfdc.json)" \
--type connection-provider \
--name basic-connection \
--config-name sfdc-config \
--output json > tmp/connector-metadata/sfdc-config.jsonoauthCallbackConfiganypoint-cli-v4 dx mule describe-connector \
--connector "$(bash scripts/build_gav.sh tmp/connector-choices/sfdc.json)" \
--type connection-provider \
--name basic-connection \
--config-name sfdc-config \
--output json > tmp/connector-metadata/sfdc-config.jsonoauthCallbackConfig${connectorNamespace.fieldName}Provide values for required fields, or choose "placeholders" forreferences.${property}
${connectorNamespace.fieldName}请提供必填字段的值,或选择“placeholders”使用引用。${property}
references/global-elements-catalog.mdreferences/global-elements-catalog.md${namespace.attributeName}${namespace.attributeName}src/main/mule/global-configs.xmlreferences/global-config-conventions.mdsrc/main/resources/config.yamlpom.xml<artifactId><dependencies><dependencies><dependency>
<groupId>{groupId}</groupId>
<artifactId>{artifactId}</artifactId>
<version>{version}</version>
<classifier>mule-plugin</classifier>
</dependency>groupIdartifactIdversionpick_connector.shtmp/connector-choices/pom.xmlcd <project-dir> && mvn clean package -DskipTestsBUILD SUCCESSsrc/main/mule/*.xml<*:*-config>config-ref="{name}"src/main/mule/global-configs.xmlreferences/global-config-conventions.mdsrc/main/resources/config.yamlpom.xml<artifactId><dependencies><dependencies><dependency>
<groupId>{groupId}</groupId>
<artifactId>{artifactId}</artifactId>
<version>{version}</version>
<classifier>mule-plugin</classifier>
</dependency>groupIdartifactIdversionpick_connector.shtmp/connector-choices/pom.xmlcd <project-dir> && mvn clean package -DskipTestsBUILD SUCCESSsrc/main/mule/*.xml<*:*-config>config-ref="{name}"references/global-elements-catalog.mdreferences/global-elements-catalog.mdglobal-configs.xmltlsglobal-configs.xmltlsos:configglobal-configs.xmlosxmlns:os="http://www.mulesoft.org/schema/mule/os"mule-objectstore-connectorpom.xmlmule-objectstore-connector<dependencies><dependencies><dependency>
<groupId>org.mule.connectors</groupId>
<artifactId>mule-objectstore-connector</artifactId>
<version>1.2.5</version>
<classifier>mule-plugin</classifier>
</dependency>pom.xmlcd <project-dir> && mvn clean package -DskipTestsos:configglobal-configs.xmlosxmlns:os="http://www.mulesoft.org/schema/mule/os"mule-objectstore-connectorpom.xmlmule-objectstore-connector<dependencies><dependencies><dependency>
<groupId>org.mule.connectors</groupId>
<artifactId>mule-objectstore-connector</artifactId>
<version>1.2.5</version>
<classifier>mule-plugin</classifier>
</dependency>pom.xmlcd <project-dir> && mvn clean package -DskipTestseeee<configuration defaultErrorHandler-ref="..."/>ee<ee:transform><configuration defaultErrorHandler-ref="..."/><ee:transform>eeglobal-configs.xml<api-gateway:autodiscovery apiId="${api.id}" flowRef="{flow-name}" doc:name="API AutoDiscovery" />api-gatewayxmlns:api-gateway="http://www.mulesoft.org/schema/mule/api-gateway"mule-api-gatewaypom.xmlmule-api-gateway<dependencies><dependencies><dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-api-gateway</artifactId>
<version>${app.runtime}</version>
<classifier>mule-plugin</classifier>
<scope>provided</scope>
</dependency>pom.xmlapi.idsrc/main/resources/config.yamlapi.id: "YOUR_API_ID"cd <project-dir> && mvn clean package -DskipTestsglobal-configs.xml<api-gateway:autodiscovery apiId="${api.id}" flowRef="{flow-name}" doc:name="API AutoDiscovery" />api-gatewayxmlns:api-gateway="http://www.mulesoft.org/schema/mule/api-gateway"mule-api-gatewaypom.xmlmule-api-gateway<dependencies><dependencies><dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-api-gateway</artifactId>
<version>${app.runtime}</version>
<classifier>mule-plugin</classifier>
<scope>provided</scope>
</dependency>pom.xmlapi.idsrc/main/resources/config.yamlapi.id: "YOUR_API_ID"cd <project-dir> && mvn clean package -DskipTests<import><import file="{artifactId}.xml"/><import><import file="{artifactId}.xml"/>references/global-elements-catalog.mdreferences/global-elements-catalog.mdreferences/properties-patterns.mdreferences/properties-patterns.md<configuration-properties>src/main/resources/global-configs.xml<configuration-properties>src/main/resources/global-configs.xmlconfig.yaml<global-property name="env" value="{default}"/><configuration-properties file="${env}.yaml"/>config.yaml<global-property name="env" value="{default}"/>global-configs.xml<configuration-properties file="${env}.yaml"/><configuration-properties file="..." doc:name="..."/><configuration-properties file="..." doc:name="..."/><global-property name="..." value="..." doc:name="..."/>${name}global-configs.xml<global-property name="..." value="..." doc:name="..."/>${name}src/main/mule/<mule><flow><sub-flow>config-reftlsContextobjectStorecachingStrategy-refdefaultErrorHandler-referrorHandler-reflistenerConfigglobal-configs.xmlsrc/main/mule/<mule><flow><sub-flow>config-reftlsContextobjectStorecachingStrategy-refdefaultErrorHandler-referrorHandler-reflistenerConfigglobal-configs.xmlconfig-ref="{name}"listenerConfig="{name}"tlsContext="{name}"objectStore="{name}"cachingStrategy-ref="{name}"<ee:cache>defaultErrorHandler-ref="{name}"<configuration>errorHandler-ref="{name}"config-ref="{name}"listenerConfig="{name}"tlsContext="{name}"objectStore="{name}"cachingStrategy-ref="{name}"<ee:cache>defaultErrorHandler-ref="{name}"<configuration>errorHandler-ref="{name}"config-reftlsContextobjectStorecachingStrategy-refdefaultErrorHandler-referrorHandler-reflistenerConfigsrc/main/mule/config-ref="X"tlsContext="X"objectStore="X"cachingStrategy-ref="X"defaultErrorHandler-ref="X"errorHandler-ref="X"listenerConfig="X"nameconfig-reftlsContextobjectStorecachingStrategy-refdefaultErrorHandler-referrorHandler-reflistenerConfigsrc/main/mule/config-ref="X"tlsContext="X"objectStore="X"cachingStrategy-ref="X"defaultErrorHandler-ref="X"errorHandler-ref="X"listenerConfig="X"namereferences/global-config-conventions.mdglobal-configs.xmlmvn clean package -DskipTestsreferences/global-config-conventions.mdglobal-configs.xmlmvn clean package -DskipTestsdescribe-connectorget_latest_connector.shpick_connector.shglobal-configs.xmlreferences/global-config-conventions.mdpom.xmlreferences/global-elements-catalog.mdmvn clean package${property.name}src/main/resources/config.yamlapi.iddescribe-connectorget_latest_connector.shpick_connector.shglobal-configs.xmlreferences/global-config-conventions.mdpom.xmlreferences/global-elements-catalog.mdmvn clean package${property.name}src/main/resources/config.yamlapi.idget_latest_connector.shtmp/connector-choices/<configuration-properties>global-configs.xmlsrc/main/resources/get_latest_connector.shtmp/connector-choices/<configuration-properties>global-configs.xmlsrc/main/resources/