- Harvesting grain from a paddock.
- Marking livestock for the first time.
- Manufacturing a batch of product (like cans of tuna, or pallets of flour)
ObjectEvent
with:
action
set toADD
epcList
orquantityList
containing the identifier of the products that were created.- and often accompanied by a
bizStep
likecommissioning
orreceiving
depending on context.
Product Identifiers
At the end of a commissioning event, we need unique identifiers for the products that were created. The TrustStack supports master data concepts such as Trade Items. As a refresh, a Trade Item is anything that can be priced in sold in a supply chain. We can reference aTradeItem
when creating a Event
to generate a unique identifier for the product.
Example
Let’s say we are building a grain farm management application, and we need users to be able commission a batch of wheat. Such as, the farmer has harvested a paddock of wheat, and we need to create a unique identifier for the batch wheat.Farm and Paddock
Let’s use the TrustStack SDK to create a newFarm
and Paddock
for our example.
Farm
and Paddock
in the TrustStack for this farming enterprise.
Wheat Trade Item
This farmer is harvesting Wheat, this can be priced and sold in the supply chain, so it is aTradeItem
.
Let’s create a TradeItem
for Wheat.
Harvest Event
Now, the farmer has harvested the wheat from the paddock, and we need to create an event to record this.- The
readPoint
is the paddock that the wheat was harvested from. - The
quantityList
contains a batch/lot level identifier of the WheatTradeItem
that was harvested, and the quantity harvested. - The
eventTime
is the date and time the harvest event occurred. - The
bizStep
is the business step of the harvest event, in this caseCOMMISSIONING
. - The
disposition
is the disposition of the event, in this caseACTIVE
.