Lococo icon

Lococo

Connect to Domain as a Service and call domain functions

Overview

This node allows users to interact with a selected app by calling its domain services and executing specific use cases. It is useful for scenarios where you need to perform operations such as calculating product prices, checking availability, reserving stock, or authenticating users within a domain-driven application environment. For example, you can use it to calculate the price of a product by providing the product ID and quantity, or authenticate a user by providing their username and password.

Use Case Examples

  1. Calculate the price of a product by selecting the app, domain service, and use case 'calculatePrice', then providing the product ID and quantity.
  2. Authenticate a user by selecting the app, domain service, and use case 'authenticateUser', then providing the username and password.

Properties

Name Meaning
Select App Choose the app you want to interact with.
Select Domain Service Choose the domain service to call within the selected app.
Use Case Choose the specific use case to execute within the selected domain service.
Product ID ID of the product, required for use case 'calculatePrice'.
Quantity Quantity of the product, applicable for use cases 'calculatePrice', 'checkAvailability', and 'reserveStock'.
Username Username for authentication, required for use case 'authenticateUser'.
Password Password for authentication, required for use case 'authenticateUser'.

Output

JSON

  • result - The response or result returned from the called domain service use case.

Dependencies

  • Requires connection to the selected app's domain service, which may involve API authentication credentials such as an API key or token.

Troubleshooting

  • Ensure that the selected app, domain service, and use case are correctly chosen and supported by the backend system.
  • Verify that required parameters for the chosen use case (e.g., productId, quantity, username, password) are provided and valid.
  • Authentication failures may occur if username or password are incorrect; verify credentials.
  • Network or API errors may occur if the domain service is unreachable or misconfigured.

Discussion