Skip to main content

Classes

The core building blocks of your Layline JavaScript applications — from data handling and time manipulation to workflow orchestration and external service integration.


Data & Messaging

ClassDescription
Arith64Performs correct 64-bit arithmetic and bitwise operations for large integers.
CompressionUtilsUtility class for compressing and decompressing data.
DataDictionaryNavigate your data dictionary hierarchy through this property. The structure mirrors your project's format and data dictionary definitions.
DataDictionaryEntityRepresents a single node in your data dictionary hierarchy for type-safe access to message fields.
MessageThe message payload. Its structure mirrors the data dictionary definition for this message type.
PackedMessageRestores the packed message to a full Message instance.
StringUtilsUtility class for common string operations: encoding, decoding, validation, and charset conversion.

Date & Time

ClassDescription
DateTimeRepresents a point in time with date, time, and timezone offset information.
DurationRepresents an amount of time — days, hours, minutes, seconds, milliseconds, or nanoseconds.
LocalDateRepresents a date without time or timezone — just year, month, and day.
TimeRepresents a time of day without date or timezone — just hour, minute, second, and nanosecond.
TimeZoneRepresents a timezone for use with DateTime, LocalDate, and Time, handling daylight saving time automatically.
ZoneOffsetRepresents a fixed offset from UTC with no daylight saving time changes.

Workflow & Processing

ClassDescription
CounterA thread-safe counter for tracking numeric values — message counts, totals, or any incrementing/decrementing metric.
JavaScriptProcessorDefines the lifecycle hooks available in a JavaScript Asset — startup, message arrival, stream boundaries, and shutdown.
MetricsRetrieves or creates a counter metric.
OutputPortRepresents a connection from one processor to another within a workflow.
ProcessorProvides access to the current processor's configuration and runtime properties.
StreamRepresents the current data stream being processed.
WorkflowProvides access to the current workflow's metadata — its name and data dictionary.

Services & Integration

ClassDescription
ConnectionRepresents an active link to a service (e.g., JDBC database, HTTP endpoint) with transaction support.
EmailSend emails through a configured Email Service.
ServiceServices linked to your JavaScript Asset are available through the services object using their configured names.
TimerServiceSchedule and manage timers that trigger workflows at specific times or intervals.
VendorGroups related StatusCode definitions together.

Status & Error Handling

ClassDescription
StatusCreates a Status instance from a vendor and status code. Additional arguments fill placeholder positions in the message template.
StatusCodeA single entry in a Resource Status Definition Asset — the template definition for a Status.
StatusRegistryProvides access to all defined vendors and status codes in your project.