Martini Video Tutorials - Basic Services
This section provides a comprehensive overview of creating and managing basic services within the Martini platform. These tutorials will help you understand the fundamentals of service creation, invocation, and error handling, empowering you to build effective integrations and workflows.
Topics Covered
-
Basic Services Introduction: Get started with an overview of basic services in Martini. This tutorial introduces you to the core concepts and benefits of using basic services to build integrations.
-
Creating Basic Services: Learn how to create basic services from scratch. This tutorial covers the steps involved in defining and implementing a service within the Martini platform.
-
Invoking Services: Explore different methods for invoking services, including:
- Manually: Understand how to invoke services manually for testing and debugging purposes.
- Via HTTP: Learn how to invoke services using HTTP requests.
-
Via a Trigger: Discover how to set up various triggers for automatic service invocation, including:
-
Scheduler Trigger: Automate service invocation based on a schedule.
- JMS Trigger: Invoke services based on JMS messages.
- Email Trigger: Set up services triggered by incoming emails.
- FTP Trigger: Trigger services based on FTP events.
- HTTP Filter Trigger: Invoke services based on HTTP request filtering.
- XMPP Trigger: Trigger services using XMPP messages.
- Redis Listener Trigger: Invoke services from events in Redis.
- RSS Trigger: Trigger services based on RSS feed updates.
- Tracker Resubmit Trigger: Resubmit tracker events to a service.
-
URL Alias Trigger: Trigger services based on URL aliases.
-
Via an API: Learn how to invoke services programmatically via the Martini API.
-
Step Operations: Delve into the various step operations available in Martini services, including:
- Map Step: Use the Map Step to transform data as it flows through your service.
- Fork Step: Create parallel execution paths in your workflows.
- Block Step: Group steps and wrap them in TryCatch or TryFinally parts.
- Iterate Step: Loop through collections of data and process each item.
- While Step: Create conditional loops that execute while a condition is true.
- Break Step: Exit a loop prematurely based on specific conditions.
- Script Step: Execute custom scripts within your workflow.
- Concurrent Step: Execute multiple steps in parallel to optimize performance.
- Random Step: Randomly select one of several configured paths for variability.
-
Error Handling: Learn how to effectively handle errors in your services. This section covers the basics of error handling, logging, and custom exceptions:
- Basics: Understand fundamental principles of error handling in Martini services.
- Logging to Console: Log errors to the console for immediate feedback.
- Logging to Service: Centralize error reporting by logging to an external service.
- Handling Errors: Discover best practices for anticipating and handling errors in your services.
-
Custom Exceptions:
-
Using Validate Expression: Use Validate Expression to throw custom exceptions when validation fails.
- Explicitly in a Service: Learn how to throw custom exceptions within your service logic.
- Creating Exception Class: Create your own exception classes for better error management.
-
Debugging Basic Services: Explore techniques for debugging your basic services to efficiently troubleshoot and resolve issues.