Lococo icon

Lococo

Connect to Domain as a Service and call domain functions

Overview

This node allows users to interact with an application by calling aggregate functions within the app's domain. It supports selecting an app, choosing an aggregate, and executing specific use cases such as creating, updating, retrieving, or deleting products, orders, or customers. This node is useful for automating domain-driven operations in an app, such as managing product catalogs, customer data, or order statuses.

Use Case Examples

  1. Create a new product by specifying its name, description, and price.
  2. Update an existing customer's email address using their ID.
  3. Retrieve order details by providing the order ID.

Properties

Name Meaning
Select App Choose the app you want to interact with.
Select Aggregate Choose the aggregate to call within the selected app.
Use Case Choose the specific use case or operation to execute on the selected aggregate.
ID The ID of the item to interact with, required for use cases like update, get, or delete operations on products, orders, or customers.
Name Name of the item, used in creating or updating products and customers.
Description Description of the product, used when creating or updating a product.
Price Price of the product, used when creating or updating a product.
Email Customer email address, used when creating or updating a customer.

Output

JSON

  • result - The response or result from calling the aggregate use case, typically containing the outcome of the domain operation.

Dependencies

  • Requires connection to the Domain as a Service platform with appropriate API credentials to authenticate and authorize calls.

Troubleshooting

  • Ensure the selected app, aggregate, and use case are valid and available in the connected domain service.
  • Verify that required fields like ID, name, or email are provided when needed for the chosen use case.
  • Check API credentials and network connectivity if calls to the domain service fail.

Links

Discussion