This page demonstrates all custom components available in the MuleSoft Forge documentation. These components enable rich, interactive documentation that mirrors the functionality previously provided by GitBook.
The Hint component creates callout boxes for important information, tips, warnings, and errors. Use these to draw attention to critical information in your documentation.
Use success hints to confirm successful operations or indicate positive outcomes.
Connector installation completed successfully! You can now use the connector in your Mule flows.Use info hints for general information, tips, or additional context.
The IDP Connector supports multiple document formats including PDF, PNG, JPG, and TIFF. Check the connector documentation for a complete list of supported formats.Use warning hints to alert users about potential issues or important considerations.
Make sure to configure your API credentials before deploying to production. Missing credentials will cause runtime errors.Use danger hints for critical information, errors, or actions that cannot be undone.
Deleting this configuration will permanently remove all associated data. This action cannot be reversed.The Tabs component allows you to present multiple code examples or platform-specific instructions in an organized, space-efficient way.
Here's how to configure a connection in different programming approaches:
::: tabs
== Java Configuration
@Configuration
public class MuleConfig {
@Bean
public ConnectionProvider getConnectionProvider() {
return new ConnectionProvider()
.withHost("api.example.com")
.withPort(443)
.withUsername("admin");
}
}== XML Configuration
<mule xmlns="http://www.mulesoft.org/schema/mule/core">
<connection-config name="apiConnection">
<connection
host="api.example.com"
port="443"
username="admin" />
</connection-config>
</mule>== Properties File
# Connection Configuration
api.host=api.example.com
api.port=443
api.username=admin
api.password=${secure::password}:::
Platform-specific implementations for the same functionality:
::: tabs
== Java
public class DocumentProcessor {
public Document extractText(InputStream input) {
PDFTextExtractor extractor = new PDFTextExtractor();
String text = extractor.extract(input);
return new Document(text);
}
}== Python
def extract_text(input_stream):
"""Extract text from PDF document."""
extractor = PDFTextExtractor()
text = extractor.extract(input_stream)
return Document(text)== JavaScript
function extractText(inputStream) {
const extractor = new PDFTextExtractor();
const text = extractor.extract(inputStream);
return new Document(text);
}:::
The Stepper component creates sequential, numbered step-by-step instructions for workflows and tutorials.
Add the connector dependency to your project's `pom.xml` file:<dependency>
<groupId>com.mulesoft.connectors</groupId>
<artifactId>mule-idp-connector</artifactId>
<version>1.0.0</version>
<classifier>mule-plugin</classifier>
</dependency>Run mvn clean install to download and install the connector.
<idp:config name="IDP_Config">
<idp:connection
apiKey="${secure::idp.apiKey}"
endpoint="https://api.idp-service.com" />
</idp:config><flow name="documentProcessingFlow">
<http:listener path="/process" config-ref="HTTP_Config" />
<idp:extract-document config-ref="IDP_Config">
<idp:document>#[payload]</idp:document>
</idp:extract-document>
<logger level="INFO" message="#[payload]" />
</flow>curl -X POST http://localhost:8081/process \
-H "Content-Type: application/pdf" \
--data-binary "@sample-document.pdf"mvn clean test
mvn packageVerify the generated JAR file exists in the target directory.
# CloudHub Deployment Configuration
cloudhub.environment=production
cloudhub.region=us-east-1
cloudhub.workerType=MICRO
cloudhub.workers=1::: tabs
== Maven Plugin
mvn deploy -DmuleDeploy \
-Dcloudhub.environment=production \
-Dcloudhub.workerType=SMALL== Anypoint CLI
anypoint-cli runtime-mgr cloudhub-application deploy \
--environment production \
myapp target/myapp-1.0.0.jar:::
Monitor the deployment status in Anypoint Platform Runtime Manager.Once deployed:
- Check application logs for errors
- Verify health check endpoints respond correctly
- Test API endpoints with sample requests
- Monitor application metrics and performance
Here's a real-world scenario combining multiple components:
Before proceeding with troubleshooting, ensure you have admin access to Runtime Manager and can view application logs. Check the Runtime Manager logs for error messages:::: tabs
== Via UI
- Navigate to Runtime Manager
- Select your application
- Click on "Logs" tab
- Filter by "ERROR" level
== Via CLI
anypoint-cli runtime-mgr cloudhub-application tail-logs \
--environment production myapp:::
Common error patterns and their causes: Connection timeout errors often indicate firewall rules blocking outbound traffic or incorrect endpoint URLs. Out of memory errors require immediate attention and usually indicate a worker size upgrade is needed. After identifying and fixing the issue, redeploy your application:mvn clean package deploy -DmuleDeploy- Hint (Success): Confirmations, successful completions, positive outcomes
- Hint (Info): Additional context, tips, non-critical information
- Hint (Warning): Cautions, important considerations, potential issues
- Hint (Danger): Errors, critical warnings, irreversible actions
- Tabs: Multi-platform code examples, alternative approaches, language-specific implementations
- Stepper: Sequential tutorials, installation guides, deployment workflows, troubleshooting procedures
- Keep hints concise - One or two sentences is ideal
- Use appropriate hint types - Match the severity to the content
- Organize tabs logically - Put the most common option first
- Make steps actionable - Each step should have a clear objective
- Combine components thoughtfully - Use hints within steps to highlight important details
These components form the foundation of rich, interactive documentation for MuleSoft Forge connectors. Use them to create engaging, professional documentation that helps users succeed.