Skip to main content

Shipment_Delivered_String

Shipment_Delivered_String = 'Delivered'

Example

procedure ScriptEvent(var Value: variant);
begin
Value := GetShipmentStatusNum(Shipment_Delivered_String); // 6
end;

Usage

Shipment_Delivered_String provides the canonical Delivered text paired with Shipment_Delivered for the Velox shipment lifecycle state.

Value

PropertyValue
Script typeString
Text valueDelivered
Paired numberShipment_Delivered = 6
Database domainShipment_Status.Num
Data fieldsShipment_Manifest.StatusNum, Shipment_Hdr.StatusNum and Shipment_Event.StatusNum

Additional Technical Info

Shipment_Delivered_String is the canonical script-visible String for the Delivered shipment lifecycle state. Its exact value is Delivered, paired with Shipment_Delivered value 6.

It identifies shipment manifests, shipment headers and their event history. It does not load a row, validate a transition, persist a value or trigger delivery processing.

Implementation

Velox declares and registers the exact text Delivered. GetShipmentStatusNum compares text with Delphi SameText and returns 6 for this token; GetShipmentStatusCode performs the reverse mapping. The String name is not added to the Velox tag map.

Fresh-build SQL seeds all seven Shipment_Status rows with the same values and text as these constants. Manifest, header and shipment-event StatusNum fields reference that table.

Behaviour

Use the token when a Velox API expects the Shipment status code rather than its number. Text-to-number conversion is case-insensitive, so variants such as DELIVERED are recognised, but the converter does not trim leading or trailing whitespace. Unsupported text returns Null.

Shipment lifecycle StatusNum is separate from the general issue/presentation Status column used on shipment records and events.

Edge cases and quirks

  • Shipment values overlap other lifecycle families; for example 1 means Draft here but Delivered for POD and tracking.
  • PascalScript integers and strings retain no lifecycle-domain type information after evaluation; using a value with the wrong converter or field can silently express another meaning.
  • The text-to-number converter is case-insensitive but non-trimming. An empty string, surrounding whitespace or unsupported text returns Null.
  • The number-to-text converter returns Null for a Null or unsupported number rather than selecting a default.
  • Shipment_Delivered_String is not a tag-map entry. Use the numeric identifier's tag only when an integer expansion is required.
  • Shipment_Event_Type separately configures event behaviour by manifest type and lifecycle status. Reading or assigning this constant does not select an event row or guarantee that any send or notification event is configured.

Side effects

Reading Shipment_Delivered_String, comparing it or using the fixed converter has no I/O or state-changing side effect. Database writes, event creation and workflow transitions come from the caller.

Errors

Reading the constant does not raise an error. Converter misses return Null. A database write can still fail validation or a foreign-key constraint, particularly where the deployed Shipment_Status rows do not include the script-visible value.

Performance and concurrency

This is an immutable compiled value. Access and the short fixed-case conversions are constant-time for practical purposes and carry no shared mutable lifecycle state.

Remarks

The example is source-reviewed and non-destructive. It performs only fixed in-process conversion; it does not test or change a live shipment.

Related entries

Created 2026-07-15