S++Business systems language
DEMO SOURCE · SPP / APP / PHYRead the book

customer.app

customer/customer.app

Download original file · Petstore source contents

1domain customer;23application customerService {4    environment testing {5        deploy customer;6        quantum {7            system: UNIFIED_STORE;8            resource: shopLedger;9        }10    }11}1213header requestContext {14    unique String globalSerialNumber;15    String callerId;16    String requestSerialNumber;17    String callMode;18    String callOrigin;19}2021header responseContext {22    String status(Default = "OK");23}2425tables entities {26    table PERSON_REGISTRY(Person) {27        primarykey(Person.customerNumber);28        auto Person.customerNumber prefix "CUSTOMER";29    }30}3132scope {33    local(in requestContext, out responseContext) {34    }35}3637web {38    start initializeCustomerDomain;39    expose registerSubject;40    expose updateSubjectProfile;41}