Shipping Cargo & Voyage Network · a reference build
From the voyage and the booking to the invoice, the agent's account and the cargo leaving the yard.
A coastal shipping line books cargo onto a voyage, lists it on a manifest, prices it, moves the containers through the yard and onto the ship, and bills the customer. When something has to be corrected, the original must stay as it was. In most organisations these steps sit in separate systems that pass work to each other by email or by re-typing. The voyage and its port calls, the agent who collects and pays on the line's behalf, the port suppliers, the road contractors and the release of cargo to its owner add five more. The port and its terminals, customs, the stevedores who handle the cargo, the storage and detention charges, and the accounting system add five more again. This network connects all sixteen, and you can watch it work.
A network is a group of separate applications that cooperate.What is a network?
16 applications and an Orchestrator: Booking, Manifest, Tracking, Yard, Rating and billing, Assurance, Voyage and port calls, Agent accounts, Port costs, Cartage, Cargo release, Port interface, Customs, Stevedoring, Storage and detention, Finance interface.
Fictional scenario and synthetic data, on a DSLCore reference build; the ports, tariffs, customers and containers are invented. The steps a person would take on a screen, such as approving a correction or recording a gate-out, are made by a script that edits the applications the way their screens do; what follows from each step is carried out by the applications and the orchestrator. Every replay is a real recorded run of the network; nothing on these pages is live. The connections to the port, customs and the accounting system are simulated: no real authority, broker or ledger is contacted, and a simulated answer never counts as a real clearance, acceptance or posting. The network can also be run over several simulated days in the DSLCore control panel; those runs are not on this site.
The story: a voyage, its cargo, its money and its release, and what goes wrong
Each step is its own recording, shown here in an order that builds the story. They are separate runs of the network, each starting from the same data, not one continuous run.
1
A voyage and its port calls
A voyage is set up with its ordered port calls and confirmed, and every other application is told. When the vessel calls at Port Moresby twice, a line of cargo cannot be placed by its port code; it waits until a person says which call it is loaded and discharged at.
A booking reserves space for tractors on a voyage. The manifest takes the cargo as a line and asks Rating for its price. When the manifest is frozen, booking locks the allocation and Rating receives the charges, which are invoiced once.
A new container is opened at the Lae yard, collected empty, packed by the customer, received full on a separate authorisation, loaded on the vessel and discharged at Port Moresby. The yard records each gate fact and tracking confirms it; every movement is accepted against the container's current state.
A line that is already frozen and invoiced turns out to have 12 pallets, not 10. The correction is approved; the old charges are reversed exactly, the new ones are calculated at the original rate date, and a credit note and a debit note correct the invoice. Nothing that was frozen is edited.
The yard records a gate-out against a container state that has since moved on. Tracking refuses it and the yard keeps the physical fact. Assurance opens one case, asks tracking to reconcile it, and closes the case only after a different person has verified the evidence.
A manifest line is sent for pricing with a commodity class Rating does not know. Rating does not guess: it rejects the request, raises an exception, and assurance opens a case so that the missing rate is not overlooked.
A command is sent to an application that has no handler for it. Delivery fails, the orchestrator records a dead letter and tells assurance, which opens a case for the destination that could not take the message.
An agent at Port Moresby has collected 1,000.00, paid 240.00 in port and cartage costs, earned 50.00 commission and remitted 600.00, so 110.00 is due to the shipping line. A 275.00 berthage cost the line paid directly is left out. A cost that is approved is an obligation, not cash, and the statement is issued only after someone else approves it.
A tug movement at Madang is verified, the supplier's invoice is matched to the order and the evidence, and a second person approves it. The cost is published once. Entering the same invoice again is refused, so it cannot become a second payable.
A job is refused while the cargo's release authority is suspended and dispatched under an active one. The pickup is recorded only after the gate-out is confirmed, the proof of delivery is verified by a different person, and the contractor's cost is approved once, at the contractor's rate and not the customer's price.
Before the gate-out, the yard reserves the quantity and the release application checks it afresh. The gate fact is confirmed only when tracking has accepted the movement and the release has been consumed, once.
A gate fact dated before its reservation is refused by the release application, but the physical movement stays recorded. A correction to the manifest then suspends the unused authority without touching any movement, and assurance routes the exception, has it resolved and closes it after independent verification.
The manifest's cargo is prepared for the port. The first submission is rejected, so the call cannot complete, and assurance opens a case. The replacement is sent but the answer is lost, so its outcome is uncertain until it is reconciled. Only an accepted submission lets the voyage call complete. The port is simulated.
An imported consignment needs customs clearance, and a domestic coastal one does not. A hold is placed, so release refuses the reservation and tracking holds the container. Lifting the hold does not clear it: a new current clearance is needed. A hold that arrives after the gate-out is recorded as a conflict, and the physical movement stays recorded. Customs is simulated.
The stevedores count one package fewer than the manifest expects. The shortage is recorded as a discrepancy and the count is kept. Nothing in the manifest, the container movements or the money changes by itself; people resolve it with evidence, and the voyage call completes only when the handling reconciliation matches. The verified work is passed to Port Costs as evidence for the supplier's invoice, and only Port Costs approves the cost.
A detention charge, from the container's days to the ledger
A container is kept nine days; three are free, so six are charged: three at PGK 20 and three at PGK 35, PGK 165.00 before tax. Storage and Detention signs the entitlement once, Billing turns it into one invoice without inventing a manifest line, and Finance builds the journal for the ledger. When the ledger's answer is lost the posting stays unresolved until a matching answer arrives. The ledger is simulated and the rates are invented.
The customer disputes the charge and some of the days are approved as suspended. The original entitlement is reversed exactly, with its stored tax, and a replacement of PGK 66.00 is issued. The original invoice of PGK 181.50 is credited in full, so the customer's net adjustment is a credit of PGK 115.50. Finance posts both documents, and a payment that began in the ledger is reconciled and not sent again.
The manifest holds each voyage's list of cargo, asks Rating for every price, and freezes the list. After a freeze, a mistake is corrected by a reversal and a replacement, never by editing.
Tracking keeps every container's position, custody, load and condition as a ledger of movements that is never rewritten, and refuses a movement that does not fit.
Rating and billing calculates each price from tariffs, agreements and taxes, reverses a price exactly when a line is corrected, and issues invoices, credit notes and debit notes.
The voyage application holds each vessel, voyage and ordered port call, matches cargo to the call where it is loaded and discharged, and records what was actually loaded and discharged.
Accounts keeps what the agent collected, paid, earned and remitted apart from what was invoiced, and issues a settlement statement that cannot be edited afterwards.
Port costs orders port services, keeps the evidence they were performed, matches the supplier's invoice and publishes one approved cost for each invoice line.
Documents and release issue shipping documents, check entitlement, freight and holds, and hold a reservation so the same cargo cannot be released twice.
Assurance turns an exception into a case, has the fix reported with evidence, and has someone other than the person who did the work verify it before the case is closed.
The port interface prepares each submission from the manifest's current cargo, keeps exactly what was sent and every answer, and treats a sent submission as different from an accepted one.
Customs records the movement as import, export, transit or coastal, holds declarations and regulatory holds, and tells release whether a consignment is cleared right now. Acceptance of a declaration is not clearance.
Stevedoring holds the handling plan, shifts, equipment and the tally of what was physically handled, and records shortages, overlanded cargo and damage without changing the manifest or any money.
Storage and detention works out the chargeable days from confirmed container movements under a configurable policy, and signs an entitlement that cannot be edited afterwards.
The finance interface maps issued invoices, approved costs and committed agency cash to accounts, builds balanced journals, and counts a document as posted only when the ledger's answer matches. It is an interface, not a ledger.
Carries every message between the applications, retries when one is down, keeps a record of what was sent and received, and tells assurance when a message could not be delivered.
Why connect them
History is corrected, not edited
A frozen manifest line is reversed exactly and replaced, so the invoice that was issued can be traced and corrected by a credit note and a debit note.
A price is calculated once
Rating prices a line once and stores the result; billing uses the stored charges and never recalculates them.
A refused movement does not lose the fact
When tracking cannot accept a gate movement, the yard still has the physical record, and the exception is visible in both applications.
Problems become cases that someone else checks
Assurance opens one case per problem and closes it only after a different person has verified the evidence.
A failed delivery is not lost
When a message cannot be delivered after its retries, it is kept as a dead letter and assurance is told.
Invoiced is not collected
A credit note changes what an agent is expected to collect without moving any cash; the account counts only money that was actually received, paid or remitted.
Nothing is released twice
A short-lived reservation is taken before the gate-out and consumed once, and a late or refused reply never removes the physical movement.
Sent is not accepted
A submission to the port is accepted only when the port says so; a timeout leaves it uncertain, and nothing is sent twice until a second person has reconciled it.
A hold does not erase a fact
A customs hold stops a release, and a hold that arrives late is recorded as a conflict, but the physical gate-out that already happened stays recorded.
Counted is not charged
A shortage found at the quay is a discrepancy for people to resolve; it never changes the manifest or the money by itself.
One charge, three jobs
Storage calculates a charge, Billing invoices it and Finance posts it, so the same charge is never produced in three places and a correction reverses the original exactly.
Each system keeps its job
The owner of each kind of data keeps it and its rules. Systems cooperate by passing messages; none reaches into another’s database.
The recordings are separate runs on synthetic data, each starting from the same data, shown in an order that builds the story rather than as one continuous run.
How the applications connect
Each application says which messages it sends and which it listens for. The orchestrator carries them from one to the other, and nothing else: it holds no business logic of its own. This is read from the network's own description, so it is the same list the orchestrator routes by.
An arrow means one application sends a message that the other listens for. Every message in fact travels through the orchestrator in the middle; the arrows show who it is for. Select an application to see its connections.
Select an application on the map to see what it sends and what it listens for.
assuranceAction requestedto Booking, Manifest, Tracking, Yard, Rating and billing, Voyage and port calls, Agent accounts, Port costs, Cartage, Cargo release, Port interface, Customs, Stevedoring, Storage and detention, Finance interface
assuranceClosedNo one in this network listens for it
A shell that carries messages from one application to the next. It holds no business logic: it takes each message in, works out which applications asked to hear it, delivers it, and keeps the record.
What is specific to this network
Routes 75 kinds of message between 16 applications.
Waits 10 seconds for an answer. If none comes it tries again after 2 s, 10 s, 30 s, 2 min, 10 min, and after 5 attempts holds the message as a dead letter for someone to look at.
Sends commands on a timetable: Allocation unconfirmed sweep, Customs clearance expiry sweep, Daily billing documents, Held batch retry sweep, Overdue obligation sweep, Port submission deadline sweep, Release reservation expiry sweep, Settlement variance sweep, Unconfirmed gate sweep, Unmapped cargo sweep, Unmatched service fact sweep, Unrated line sweep, Unreconciled posting sweep, Yard expire authorisations, Yard retry unanswered.
Knows 17 reference flows, which the recorded simulations are checked against.
None of these applications knows another's address or how it works inside. Each one only publishes what happened and says what it wants to hear. That is what lets an application be added, replaced or left out without changing the others, and it is why each can also run on its own.
5 of the 75 kinds of message have no listener in this network. The orchestrator records them and delivers them to no one.
The messages against the applications(75 kinds, 5 that nothing listens for)
sendslistens forA dash in the last column means the orchestrator has no one to deliver it to.
Message
Booking
Manifest
Tracking
Yard
Rating and billing
Assurance
Voyage and port calls
Agent accounts
Port costs
Cartage
Cargo release
Port interface
Customs
Stevedoring
Storage and detention
Finance interface
Heard by
Accounts
Appointment changed
3
Exception raised
1
Exception resolved
1
Financial fact committed
1
Statement issued
2
Assurance
Action requested
15
Closed
–
Exception raised
–
Booking
Allocation reserved
–
Exception raised
1
Exception resolved
1
Cartage
Cost approved
3
Exception raised
1
Exception resolved
1
Job changed
1
Pod verified
2
Customs
Clearance changed
2
Clearance checked
1
Exception raised
1
Exception resolved
1
Hold changed
3
Finance
Exception raised
1
Exception resolved
1
Payment notice
2
Posting status
5
Handling
Activity verified
2
Exception raised
1
Exception resolved
1
Reconciled
2
Tally verified
2
Manifest
Allocation accepted
1
Effective cargo
7
Exception raised
2
Exception resolved
1
Line corrected
4
Revision frozen
3
Portcost
Cost approved
4
Exception raised
1
Exception resolved
1
Portinterface
Exception raised
1
Exception resolved
1
Submission status
2
Terminal notice
3
Rating
Billing charge detail issued
1
Billing document issued
3
Entitlement acknowledged
1
Exception raised
1
Exception resolved
1
Posting snapshot
1
Result created
1
Supplemental detail issued
2
Release
Authority changed
3
Document issued
2
Exception raised
1
Exception resolved
1
Reservation changed
1
Reservation consumed
2
Reservation validated
1
Storage
Entitlement approved
2
Exception raised
1
Exception resolved
1
Tracking
Exception resolved
1
Hold placed
–
Hold released
–
Movement accepted
5
Movement rejected
4
Voyage
Activity verified
1
Cargo call mapped
5
Exception raised
1
Exception resolved
1
Portcall snapshot
7
Snapshot
8
Yard
Gate exception raised
1
Gate exception resolved
1
Gate recorded
3
Watch it happen
Each recording is a real run of the network. Play it, pause it, step through it, and open any message to see who sent it and who received it.
Cargo booked, manifested, rated and invoiced
A booking reserves space for tractors on a voyage. The manifest takes the cargo and has it priced; when the manifest is frozen, booking locks the allocation and rating receives the charges, which are invoiced.
A new container is opened at the Lae yard, collected empty, packed by the customer, received full, loaded on the vessel and discharged at Port Moresby. The yard records each gate fact and tracking confirms it.
A frozen, already invoiced line turns out to have 12 pallets, not 10. The correction is approved, the old charges are reversed exactly, the new ones calculated, and a credit note and a debit note are issued.
The yard records a gate-out against an out-of-date container state. Tracking refuses it, the yard keeps the physical fact and records an exception, and assurance opens one case, routes the action, has the evidence verified by someone else and closes it.
A command that the manifest has no handler for is sent through the orchestrator. Delivery fails, the orchestrator dead-letters it and tells assurance, which opens a case.
A new voyage with ordered port calls is confirmed and published to every application that needs it. On the seeded voyage a second call at Port Moresby is added; the manifest is frozen and publishes its effective cargo, and because the port appears twice the voyage application waits for a person to map the cargo line to explicit load and discharge calls.
A tug movement at Madang is verified by the voyage application. Port costs matches it to the approved service order as evidence, a supplier invoice is matched and approved by a second person, and the one immutable cost reaches the agent account as an obligation.
A delivery that cannot be dispatched without a valid release authority is picked up only after the yard's gate-out is confirmed by tracking. The proof of delivery is verified by a second person and the contractor's cost is approved once at the purchase rate.
The yard asks the release application to reserve and validate the quantity just before the gate, records the physical fact, and the fact is confirmed only when tracking accepts the movement and release acknowledges that it consumed the reservation.
The Port Moresby agent account reproduces the settlement example: 1000.00 collected less 240.00 paid, 50.00 commission and 600.00 remitted leaves 110.00 due to the carrier, and the carrier-direct berthage is excluded. A new port cost is only an obligation; the reopened account is approved and its revision issued.
A gate fact is dated before its reservation, so release refuses to consume it while tracking accepts the movement. A manifest correction suspends the unconsumed authority. Assurance opens a case, routes it to release, which resolves it; a different person verifies and the case closes.
The manifest is frozen and the port interface prepares a submission of its positive cargo for the port authority. The authority, SIMULATED, rejects the first one; a replacement times out and is uncertain, and is not sent again. Its response is retrieved and the replacement is accepted. Only the accepted answer lets the voyage application complete the port call.
A simulated customs decision gates a commercial release. While clearance is only pending, release refuses the gate-out; a simulated hold stops the container and suspends the authority, a lift and then a new clearance let it resume, and the gate-out is consumed. A later hold raises conflicts that assurance routes to release, has verified independently and closes.
A verified tally at the load port counts fewer packages than the handling plan expected. The shortage is recorded as a discrepancy, assurance opens a case and the difference is accepted with evidence. At the discharge port a recount finds the missing pallet and the handling reconciles; the voyage application reconciles the call after that, and the verified handling activity becomes evidence for a port supplier cost.
A container is gated out to a customer and returned later. Tracking confirms the movements and storage approves one detention charge from them (165.00 before tax). Rating issues one invoice (181.50 with tax) with a snapshot for finance, and the finance interface sends documents to a SIMULATED ledger: a lost answer leaves them uncertain, not posted, until the ledger acknowledges them with matching figures.
A detention charge is invoiced and posted on the SIMULATED ledger, then disputed because a port closure kept the container from being returned. Storage publishes the exact reversal (-165.00) and a replacement charge (60.00), billing issues a credit note and a replacement invoice, and finance posts both. An outside payment notice and an agent statement follow without any new posting.
It is a working reference build showing how separate applications can be connected so that cargo is carried from the booking to the invoice, with the agent's account, port costs, road transport, cargo release, the port and customs interfaces, handling, storage charges and the accounting interface alongside, and with corrections and problems handled without losing the original record. The people in each run are played by a script, and the data is synthetic, on a single machine. Beyond these single stories, the control panel can run the network over a number of simulated days: containers move through the yards, new voyages are confirmed, port costs reach the agent's account, containers are released and carted to the customer, and some gate facts, price requests and messages go wrong and become cases. Those runs are not recorded here, and the one-off situations in the stories above, such as the frozen-line correction and the late gate fact, are not part of them. The port, customs and accounting connections are simulations: no real authority, customs broker or ledger is contacted and no wire format is used. It does not cover live customs lodgement, a general ledger, or payment of the customer. The port tariffs, taxes and agency terms are invented and would have to be replaced with the operator's own. It is not presented as compliant with any named standard.