
General Information on POST/PUT/DELETE actions in CubeConnect
All reading processes in CubeConnect are handeled synchronous.
All writing processes in CubeConnect are handeled asynchronous. The processing of the data is not handled within the request. For any PUT/POST/DELETE-action a transaction with transaction status is created. This transaction status can be requested at any time.
In detail:
CubeConnect receives data by PUT/POST/DELETE
CubeConnect checks the data for technically correctness
If the data is correct, CubeConnect creates a transaction with transaction status = 2 (processing) and returns the transaction id
CubeConnect answers the request with status code 202 (accepted) or 405 (invalid input)
The PUT/POST/DELETE-request now is finished - but the data has not been processed yet
CubeConnect now sends data to Cube ERP
Cube ERP processes the data and sends the result to CubeConnect
CubeConnect inserts/updates/deletes processed data
CubeConnect finishes the transaction and updates the transaction status
Transaction Status
List of transaction statuses: GET /transaction/statuses (optional parameter languageId (string(2))
Transaction statuses:
1 = pending
2 = processing (transaction just had been created, data is processing)
3 = successful
4 = partially successful
5 = error
Transaction status is part of Cube response (cubeResponseId, cubeResponseDescription). Cube response additionally provides information on failed requests as ResponseInformationText.
For every writing request CubeConnect supplies a status-controller with transaction id as parameter.