Tools, FAQ, Tutorials:
What Is CTO Modeling Language
What is Business Network CTO Modeling Language?
✍: FYIcenter.com
Business Network CTO Modeling Language is a special data modeling language
to define complex data types from primitive data types.
CTO source code can be stored in a single or multiple files with the *.cto file extension.
Each CTO source code file should have the following structure.
"namespace" statement - required
"import" statements - optional
Resources declaration statements - optional
"participant" declaration statements
"asset" declaration statements
"transaction" declaration statements
"event" declaration statements
"concept" declaration statements
"enum" declaration statements
Here is an example of a CTO file, models/model.cto:
/* Copyright (c) FYIcenter.com
*/
namespace com.fyicenter.hyperledger
import com.fyicenter.common
participant Customer identified by customerId {
o String customerId
o String firstName
o String lastName
--> Address address
}
asset Car identified by vin {
o String vin
o String maker
o String model
o Double value
o Currency currency
--> Customer owner
}
transaction Trasfer {
--> Car car
--> Customer newOwner
}
event CarOwnerChanged {
--> Car car
--> Customer newOwner
--> Customer oldOwner
}
concept Address {
o String street
o String city
o String state
}
enum Currency {
o USD
o CAN
o EUR
}
Â
⇠Business Network CTO Modeling Language
2021-08-01, ∼1865🔥, 0💬
Popular Posts:
How to pull NVIDIA CUDA Docker Image with the "docker image pull nvidia/cuda" command? If you are ru...
How to build a test service operation to dump everything from the "context.Request" object in the re...
Where can I download the EPUB 2.0 sample book "The Problems of Philosophy" by Lewis Theme? You can f...
How to how to use matched string and groups in replacements with re.sub()? When calling the re.sub()...
What is EPUB 3.0 Metadata "dcterms:modified" property? EPUB 3.0 Metadata "dcterms:modified" is a req...