0.2.5 • Published 5 years ago

trade-network v0.2.5

Weekly downloads
123
License
Apache-2.0
Repository
github
Last release
5 years ago

Trade Network

This Business Network illustrates commodity trading.

This business network defines:

Participant Trader

Asset Commodity

Transaction(s) Transaction

Event TradeNotification

To test this Business Network Definition in the Test tab:

Create two Trader participants:

{
  "$class": "org.acme.trading.Trader",
  "tradeId": "TRADER1",
  "firstName": "Jenny",
  "lastName": "Jones"
}
{
  "$class": "org.acme.trading.Trader",
  "tradeId": "TRADER2",
  "firstName": "Amy",
  "lastName": "Williams"
}

Create a Commodity asset:

{
  "$class": "org.acme.trading.Commodity",
  "tradingSymbol": "ABC",
  "description": "Test commodity",
  "mainExchange": "Euronext",
  "quantity": 72.297,
  "owner": "resource:org.acme.trading.Trader#TRADER1"
}

Submit a Trade transaction:

{
  "$class": "org.acme.trading.Trade",
  "commodity": "resource:org.acme.trading.Commodity#ABC",
  "newOwner": "resource:org.acme.trading.Trader#TRADER2"
}

After submitting this transaction, you should now see the transaction in the transaction registry. As a result, the owner of the commodity ABC should now be owned TRADER2 in the Asset Registry.

Congratulations!

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.1.14

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.13

6 years ago

0.1.11

6 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago