Quick Start — Kotlin
One of the five Orvanta Quick Starts shown on an empty workspace’s Home page. Picking the Hello Orvanta (Kotlin) card opens this script as an unsaved draft in the script editor — nothing is deployed until you save it.
What it demonstrates
Section titled “What it demonstrates”A statically typed, compiled runtime on the JVM. Orvanta scripts in Kotlin are a top-level
fun main(...): arguments in, a JSON-serialisable result out.
fun main(name: String = "Orvanta"): Map<String, Any?> { return mapOf( "message" to "Hello, $name! This ran as a Kotlin script on Orvanta." )}The name argument has a default, so the auto-generated input form makes it optional — hit
Run with no input and it prints “Hello, Orvanta!”.
The first run compiles the script, so it’s noticeably slower to start than the scripting-language Quick Starts (TypeScript, Python, Bash) — that’s normal for a compiled JVM language, not a problem with the Quick Start.
Try it
Section titled “Try it”- Open an empty workspace’s Home page and click Hello Orvanta (Kotlin) under Orvanta Quick Starts.
- Press Run (or
Ctrl+Enter) to execute it as-is. The first run takes longer while it compiles. - Edit the
mainfunction and re-run to see the change reflected. - Click Deploy if you want to keep it in the workspace — otherwise navigate away and the draft is discarded.
What next?
Section titled “What next?”- Seed your workspace — back to the full Quick Starts gallery.
- Concepts: Scripts — runtimes, schemas, and versioning in general.