Business Entity Management SKILL

Updated at:

You can use natural language commands to instruct agents like Qoder and CodeX to manage the full lifecycle of Dataphin business entities (business objects and business activities), including querying, creating, updating, publishing, unpublishing, and deleting them. This document describes the SKILL's features, prerequisites, usage examples, and results, and includes an appendix with a list of required inputs for your reference.

Overview

The Business Entity Management SKILL lets you use natural language commands to manage the full lifecycle of business entities within Dataphin's data planning module. A business entity describes a core business concept in the logical model of a data warehouse and is divided into two types: business objects (such as customer, product, and store), which are used for dimensional modeling with logical dimension tables, and business activities (such as place order, pay, and ship), which are used for fact modeling with logical fact tables and metrics.

Use cases:

  • Create business objects, such as customer, product, or store, under a data plate and subject area for dimensional modeling.

  • Create business activities, such as place order, pay, or ship, for fact modeling with logical fact tables and metrics.

  • Query and modify business entities, or publish, unpublish, and delete them.

Note

Limitations: A business entity must belong to a data plate and a subject area. These parent containers must exist before you can create or update an entity. After creation, a business entity is typically in the development or draft state. It must be published before it can be used for downstream modeling. The delete operation is irreversible and will be rejected if it is referenced by logical tables, metrics, or other business entities. You must remove these downstream dependencies first.

Prerequisites

  • Your account has the necessary permissions to manage business entities.

  • The target data plate and subject area already exist, as the business entity will be placed under them.

  • Before updating a business entity, query its current configuration, especially the list of associated business entities. If you do not include this list during an update, its contents will be cleared.

Usage examples

You can describe your requirements to the agent using natural language. Here are some example commands you can copy and use directly:

  • Under the 'Trade' data plate and 'Order' subject area, create a business object named 'Customer' for dimensional modeling.

  • Under the 'Trade' data plate, create a new business activity named 'Place Order' of the business event subtype.

  • Publish the newly created 'Customer' business object, with the remark "For dimensional modeling use."

  • Find all business entities under the 'Order' subject area.

Interaction flow:

  1. After you issue a command, the agent first confirms the type of the business entity (business object or business activity) and the data plate and subject area it belongs to.

  2. If you are unsure about the parent containers, the agent queries the available data plates and subject areas and presents them for you to choose from.

  3. The agent populates the details for the business entity, such as its code, display name, subtype, and owner, based on your request.

  4. Before executing a create, update, publish, unpublish, or delete operation, the agent summarizes the actions and their potential impact, including whether the operation can be rolled back, and asks for your confirmation.

  5. After you confirm, the agent performs the operation and then verifies that the business entity's status is updated as expected.

Results

The completed operation produces the following results:

  • Response: Upon successful execution, the system returns the identifier and status of the business entity. The agent then performs a follow-up check to confirm the result.

  • Final status: After a create or update operation, the business entity's fields match your specifications. A new entity is typically in the development or draft state. Publishing or unpublishing changes the entity's lifecycle status. After deletion, the business entity can no longer be queried.

  • Verification: You can log in to Dataphin and navigate to the business entity page in the data planning module to view the entity and its status. After creating or updating an entity, you can verify it by searching by its data plate, subject area, and keywords, or by querying the entity's fields.

Note

A success message from the command line only indicates that the request has been accepted. Operations like publish and unpublish may involve asynchronous status changes. The status in the Dataphin UI is the final source of truth.

Appendix: Input information

The following table lists the information that may be required when managing business entities. In practice, the agent automatically identifies the necessary information from your commands and will prompt you if any details are missing. You do not need to provide information that is generated by the system.

Parameter

Required

Description

Example

tenant ID

Yes

The ID of the target Dataphin tenant. It is a 19-digit number.

1234567890123456789

business entity type

Yes

business object (e.g., customer, product) or business activity (e.g., place order, pay).

business object

data plate

Required for write operations

The data plate to which the business entity belongs. The system locates it automatically by its name.

Trade data plate

subject area

Required for create and update

The subject area to which the business entity belongs. The system locates it automatically by its name.

Order subject area

target business entity

Required when operating on an existing entity

The business entity to query, update, publish, unpublish, or delete. You can provide its code or name.

Customer

business entity information

Required for create and update

Details of the business entity, such as its code, display name, subtype, owner, and description.

display name: Customer, owner: John Smith

publish or unpublish remark

Required for publish and unpublish

A note explaining the reason for the publish or unpublish operation.

For dimensional modeling use.