Custom attributes

The custom attributes are specific attributes that aid in extensibility.

Custom attributes enable a system integrator to register one or more attributes that are considered by Sterling Intelligent Promising for different business purposes. Each registered custom attribute can then be associated with business purposes such as sourcing, and supply.

A system integrator can associate the following business purpose to a certain supported number of custom attributes of each data type.
Sourcing
Sourcing business purpose is associated with string and double data types. It supports up to 10 custom attributes of string and double data types. Registered custom attributes of mentioned data types can be considered with sourcing business purpose for different tasks. For example, if there is a sourcing constraint for an order from a specific channel, the custom attributes can be considered for fulfilling the request by a designated node.
Supply
Supply business purpose is associated with string, double, and date data types. It supports up to 10 custom attributes of string, double , and date data types. Registered custom attributes of mentioned data types can be considered with supply business purpose for different tasks. For example, if there is a supply discrepancy and the fulfillment manager wants to improve the supply audit capability by including a Modify User ID as part of supply update. The system integrator can register Modify User ID to be considered in the supply flow, which will be recorded in the supply audit and supply change event for further review.
Following are the other business purposes to define the custom attributes:
Transfer
The transfer business purpose is meant to apply the transfer rules using the same key/value matching logic. The transfer custom attributes support string and double data types.
Inventory tag
Inventory tag business purpose is meant to capture additional batch level details by creating custom tags during supply receipt. These inventory tags represents the manufacturing or customization numbers such as lot number, batch number, or revision number based on the product. With small product extensions, the inventory tag can also represent a combination of identification numbers for cases where two inventory identification numbers together uniquely identify the product. For example, a inventory tag can be mill certificate number with its manufacturing date. The inventory tag support string, double and date data types.

Configuring custom attributes

You can configure the custom attribute by using the createCustomAttribute API. For more information, see Creating custom attributes for sourcing by using an API.

Check the example that demonstrates how to create custom attributes that are associated with different business purposes.
Example
As Systems Integrator, you want to track the third-party seller handling inbound orders so you can create an inbound attribute VendorOrganization to be considered for:
  • Supply adjustment audit and Supply change event
  • Sourcing - Constraint consideration
POST https://api.watsoncommerce.ibm.com/configuration/{tenant}/v1/attributes/{attributeId}
{
  "label": "VendorOrganization",
  "datatype": "string",
  "isEnabled": true,
  "businessPurposes": [
    "supply", "sourcing"
  ]
}
You can configure custom attributes based on the data type and create up to 20 custom attributes of any type. See the following example for configuring the custom attributes:
  • String - 20
  • Date - 20
  • Number - 20
  • String - 10 + Date - 10
  • String - 10 + Date - 5 + Number - 10
For more information about creating custom attributes by using Order Hub UI, see Configuring custom attributes.