amarbajric / EBUSA-AIM17

BPMaaS. Platform for buying, selling and reviewing processes
MIT License
2 stars 3 forks source link

Store service #30 #96

Closed stfnltnr closed 6 years ago

stfnltnr commented 6 years ago

WIP Changes to ProcessStore Service

ProcessStore Repo

Added approver columns are now stored within the ProcessStore table, modified ProcessStoreDTO. is_approved is false by default.

{
        "processId": 1,
        "processName": "name1",
        "processDescription": "test desct asldfasd",
        "processCreator": "test1",
        "processCreatedAt": 993052800000,
        "processVersion": 1,
        "processPrice": 123.123,
        "processApprover": "approver1",
        "processApproverComment": "well done approved",
        "processApprovedDate": 1213977600000,
        "approved": false
}

TestData

INSERT INTO ippr_store.processstore 
VALUES (1, true,'08.06.2018','approver1','well done approved','01.06.2018', 'test1', 'test desct asldfasd', 'name1', 123.123, 1);
INSERT INTO ippr_store.processstore 
VALUES (2, false, null,null,null, '20.06.2018', 't1231est', 'testasdas asda as asd as ad asd ad asd ad asd dd', 'name2', 222.222, 2);
INSERT INTO ippr_store.processstore 
VALUES (3, false, '09.06.2018','approver1','error', '20.06.2018', 'test3', 'testprocess nummer 3', 'name2', 222.222, 2);

Endpoints

At the moment the following endpoints are available

ToDo

amarbajric commented 6 years ago

As this PR contains WIP changes, the CHANGELOG.md can be left out and changes should be added at completion