Hello A., and all,
In fact: Currently, on PlantUML, we can not go to a label not previously defined!
Just to avoid the `NPE`, here is a proposal with rearrange the order, as:
@startuml
start
title /api/v1/operations/initializations/{schema}/{table}/batch/{batchUID}
if (Validate payload format) then (Not OK)
:Set http code = 404 ;
label sp
label sp
label sp
label sp
label sp_label1
:Generate errorCodeUid;
:Log error with errorCodeUid to Devo;
stop
else (OK)
:Search the possible match batch record in DB
__log possible match__
- {batchUid} -> batchUid
;
If (log record > 0) then (No)
:Set http code = 403 ;
'label sp_label0
goto sp_label1
else (Yes)
:Prepare the initial load reponse;
endif
endif
if (Record filter Provided?) then (Yes)
:__Filter by__
- recordFrom
- recordTo
;
else (No)
endif
:Set http code = 200;
:Return Http response;
stop
@enduml
Enjoy,
Regards,
<a fan user>
Th.