POD_Cancelled_String
POD_Cancelled_String = 'Cancelled'
Example
procedure ScriptEvent(var Value: variant);
begin
Value := GetPODStatusNum(POD_Cancelled_String); // 3
end;
Usage
POD_Cancelled_String provides the canonical Cancelled text paired with POD_Cancelled for the Velox proof-of-delivery state.
Value
| Property | Value |
|---|---|
| Script type | String |
| Text value | Cancelled |
| Paired number | POD_Cancelled = 3 |
| Database domain | Shipment_POD_Status.Num |
| Data fields | Shipment_POD.StatusNum and Shipment_POD_Event.StatusNum |
Additional Technical Info
POD_Cancelled_String is the canonical script-visible String for the Cancelled proof-of-delivery state. Its exact value is Cancelled, paired with POD_Cancelled value 3.
It identifies a shipment POD record and its 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 Cancelled. GetPODStatusNum compares text with Delphi SameText and returns 3 for this token; GetPODStatusCode performs the reverse mapping. The String name is not added to the Velox tag map.
Fresh-build SQL seeds only row 1=Delivered in Shipment_POD_Status, although product source exposes Updated=2 and Cancelled=3. Shipment_POD.StatusNum and Shipment_POD_Event.StatusNum reference that table. This page's value 3 is therefore recognised by product code but is not seeded by that fresh-build script.
Behaviour
Use the token when a Velox API expects the POD status code rather than its number. Text-to-number conversion is case-insensitive, so variants such as CANCELLED are recognised, but the converter does not trim leading or trailing whitespace. Unsupported text returns Null.
POD lifecycle StatusNum is separate from the general issue/presentation Status column on POD and event rows.
Edge cases and quirks
- POD and tracking use the same three numbers and text, but have separate constants, converters and database tables.
- 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
Nullfor aNullor unsupported number rather than selecting a default. POD_Cancelled_Stringis not a tag-map entry. Use the numeric identifier's tag only when an integer expansion is required.- Before persisting
POD_UpdatedorPOD_Cancelled, verify that the target deployment has corresponding status rows. On an unextended fresh schema, the foreign key can reject values2and3even though the script converters recognise them.
Side effects
Reading POD_Cancelled_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_POD_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
POD_Cancelledis the paired numeric identifier.GetPODStatusCodeconverts a supported number to text.GetPODStatusNumconverts recognised text to a number.