DSLCore

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.

Reference applications: Coastal Shipping →

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.

    See it happen →
  2. Cargo is booked, manifested, priced and invoiced

    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.

    See it happen →
  3. A container's journey

    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.

    See it happen →
  4. A frozen line is corrected without editing it

    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.

    See it happen →
  5. A gate fact tracking will not accept

    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.

    See it happen →
  6. A price that cannot be given

    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.

    See it happen →
  7. A message that cannot be delivered

    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.

    See it happen →
  8. The agent's account, and what was actually paid

    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.

    See it happen →
  9. A port cost becomes one payable

    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.

    See it happen →
  10. A delivery by a road contractor

    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.

    See it happen →
  11. Cargo released against a reservation

    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.

    See it happen →
  12. A fact that does not fit the reservation

    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.

    See it happen →
  13. A port submission that is sent but not accepted

    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.

    See it happen →
  14. A customs hold stops a release

    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.

    See it happen →
  15. A shortage at the quay

    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.

    See it happen →
  16. 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.

    See it happen →
  17. A charge corrected without editing it

    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.

    See it happen →

Who does what

Sixteen applications, each doing one job. They are connected, not combined, and an orchestrator carries the messages between them.

Each card opens its application. To see them all, with their descriptions and demos: Coastal Shipping reference applications →

  • Book the cargo

    Booking holds the bookings and reserves space on a voyage for each cargo line, and is told when the manifest has accepted, frozen or corrected it.

    View application: Cargo Booking & Allocation

  • List it on a manifest

    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.

    View application: Cargo Manifest & Corrections

  • Follow the containers

    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.

    View application: Container Movement Ledger

  • Control the gate

    The yard authorises and records gate-ins and gate-outs, keeps the physical fact whatever happens next, and asks Tracking to confirm each one.

    View application: Yard Gate & Interchange

  • Price and bill

    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.

    View application: Freight Rating & Billing

  • Run the voyage

    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.

    View application: Vessel, Voyage & Port Calls

  • Settle with the agent

    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.

    View application: Voyage Accounts & Agency Settlement

  • Pay the port

    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.

    View application: Port Costs & Disbursements

  • Move it inland

    Cartage assigns road contractors at their own rates, records pickup, delivery and proof of delivery, and approves each contractor's cost once.

    View application: Inland Transport & Cartage

  • Release the cargo

    Documents and release issue shipping documents, check entitlement, freight and holds, and hold a reservation so the same cargo cannot be released twice.

    View application: Documents & Cargo Release

  • Watch for trouble

    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.

    View application: Shipping Assurance

  • Talk to the port

    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.

    View application: Port & Terminal Electronic Interface

  • Clear customs

    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.

    View application: Customs & Border Clearance

  • Handle the cargo

    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.

    View application: Cargo Handling & Stevedoring

  • Charge for time

    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.

    View application: Storage, Demurrage & Detention

  • Post to the books

    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.

    View application: Finance & Accounting Interface

  • Orchestrator

    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.

OrchestratorBookingManifestTrackingYardRating and billingAssuranceVoyage and port callsAgent accountsPort costsCartageCargo releasePort interfaceCustomsStevedoringStorage and detentionFinance interface
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.

OrchestratorRuns inside the network

Orchestrator · Shipping Cargo & Voyage Network

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.

Why this matters

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.

MessageBookingManifestTrackingYardRating and billingAssuranceVoyage and port callsAgent accountsPort costsCartageCargo releasePort interfaceCustomsStevedoringStorage and detentionFinance interfaceHeard by
Accounts
Appointment changed3
Exception raised1
Exception resolved1
Financial fact committed1
Statement issued2
Assurance
Action requested15
Closed–
Exception raised–
Booking
Allocation reserved–
Exception raised1
Exception resolved1
Cartage
Cost approved3
Exception raised1
Exception resolved1
Job changed1
Pod verified2
Customs
Clearance changed2
Clearance checked1
Exception raised1
Exception resolved1
Hold changed3
Finance
Exception raised1
Exception resolved1
Payment notice2
Posting status5
Handling
Activity verified2
Exception raised1
Exception resolved1
Reconciled2
Tally verified2
Manifest
Allocation accepted1
Effective cargo7
Exception raised2
Exception resolved1
Line corrected4
Revision frozen3
Portcost
Cost approved4
Exception raised1
Exception resolved1
Portinterface
Exception raised1
Exception resolved1
Submission status2
Terminal notice3
Rating
Billing charge detail issued1
Billing document issued3
Entitlement acknowledged1
Exception raised1
Exception resolved1
Posting snapshot1
Result created1
Supplemental detail issued2
Release
Authority changed3
Document issued2
Exception raised1
Exception resolved1
Reservation changed1
Reservation consumed2
Reservation validated1
Storage
Entitlement approved2
Exception raised1
Exception resolved1
Tracking
Exception resolved1
Hold placed–
Hold released–
Movement accepted5
Movement rejected4
Voyage
Activity verified1
Cargo call mapped5
Exception raised1
Exception resolved1
Portcall snapshot7
Snapshot8
Yard
Gate exception raised1
Gate exception resolved1
Gate recorded3

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 container's journey

    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 line corrected

    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.

  • A gate fact tracking rejects

    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 rating request rejected

    A manifest line is sent for pricing with a commodity class rating does not know. Rating rejects it, raises an exception, and assurance opens a case.

  • A message that cannot be delivered

    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 voyage, its port calls and its cargo

    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 port service cost approved once

    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 cartage delivery

    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.

  • Commercial release at the gate

    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.

  • Agent account and settlement

    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 conflict and a correction after release

    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.

  • A port submission rejected, then accepted

    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 customs hold and release

    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 cargo tally that falls short

    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.

  • Detention charged, invoiced and journalled

    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 disputed detention charge corrected

    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.

What this is, and is not

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.