Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "consortiumCode": "TEST_RETAILER",
- "contractThingTypeCode": "SmartContract",
- "contractName": "Basic Supply Chain",
- "fields": {
- "PO_Carrier": "XPO Logistics",
- "PO_Date": "2017-02-19T23:12:21.571Z",
- "PO_DeliveryDate": "2017-02-19T23:12:21.571Z",
- "PO_InCoTerms": "FCA",
- "PO_Number": "PO0000001057yKdx",
- "PO_Vendor": "Levis"
- },
- "stateMachine": {
- "contractThingTypeCode": "SmartContract",
- "contractName" : "Basic Supply Chain",
- "fields": [
- {
- "id": 1001,
- "name": "PO_Number",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1002,
- "name": "PO_Vendor",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1003,
- "name": "PO_Date",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1004,
- "name": "PO_InCoTerms",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1005,
- "name": "PO_Carrier",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1006,
- "name": "PO_DeliveryDate",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1007,
- "name": "ASN_Number",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1008,
- "name": "ASN_ShippingDate",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1009,
- "name": "BOL_Number",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1010,
- "name": "BOL_Date",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1013,
- "name": "palletID",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1014,
- "name": "containerID",
- "type": "string",
- "initialValue": ""
- },
- {
- "id": 1015,
- "name": "truckID",
- "type": "string",
- "initialValue": ""
- }
- ],
- "states": [
- {
- "id": 10,
- "name": "PO_ISSUED"
- },
- {
- "id": 20,
- "name": "PO_ACKNOWLEDGED"
- },
- {
- "id": 30,
- "name": "ORDER_FULFILLED"
- },
- {
- "id": 40,
- "name": "ASN_ISSUED"
- },
- {
- "id": 50,
- "name": "BOL_REQUESTED"
- },
- {
- "id": 60,
- "name": "BOL_ISSUED"
- },
- {
- "id": 70,
- "name": "ORDER_IN_TRANSIT"
- },
- {
- "id": 80,
- "name": "ORDER_VERIFIED"
- },
- {
- "id": 90,
- "name": "PO_PAID"
- }
- ],
- "initialState": 10,
- "roles": [
- {
- "id": 701,
- "name": "Retailer"
- },
- {
- "id": 702,
- "name": "Supplier"
- },
- {
- "id": 703,
- "name": "Carrier"
- }
- ],
- "accounts": [
- {
- "id": 7010,
- "roleId": 701,
- "name": "walmart",
- "address": "0x67891f98e42f1e4a683b3b2e6788c4f50b8a6627"
- },
- {
- "id": 7020,
- "roleId": 702,
- "name": "levis",
- "address": "0xb6f976803005205ce328433d9157f9ed096b766a"
- },
- {
- "id": 7030,
- "roleId": 703,
- "name": "xpo",
- "address": "0xcf6908a88b51bb3796f25c846dd61d09167b6ae3"
- }
- ],
- "transitions": [
- {
- "startState": 10,
- "endState": 20,
- "name": "ackPO",
- "roleId": 702,
- "customFields": [
- ]
- },
- {
- "startState": 20,
- "endState": 30,
- "name": "fulfillPO",
- "roleId": 702,
- "customFields": [
- 1013
- ]
- },
- {
- "startState": 30,
- "endState": 40,
- "name": "issueASN",
- "roleId": 702,
- "customFields": [
- 1007,
- 1008
- ]
- },
- {
- "startState": 40,
- "endState": 50,
- "name": "requestBOL",
- "roleId": 702,
- "customFields": [
- ]
- },
- {
- "startState": 50,
- "endState": 60,
- "name": "issueBOL",
- "roleId": 703,
- "customFields": [
- 1009,
- 1010
- ]
- },
- {
- "startState": 60,
- "endState": 70,
- "name": "transitPO",
- "roleId": 703,
- "customFields": [
- 1014,
- 1015
- ]
- },
- {
- "startState": 70,
- "endState": 80,
- "name": "verifyOrder",
- "roleId": 701,
- "customFields": [
- ]
- },
- {
- "startState": 80,
- "endState": 90,
- "name": "verifyPO",
- "roleId": 702,
- "customFields": [
- ]
- }
- ],
- "contractRules": [
- ],
- "itemListLoadStates": [
- ],
- "itemLists": [
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement